/*==========  Desktop First Method  ==========*/
@media screen and (max-width: 1290px) {
  .header-socials {
    display: none;
  }
  .header-search {
    width: 290px;
  }
}
/* Large Devices, Wide Screens */
@media only screen and (max-width: 1200px) {
  
  .header-menu {
    display: none !important;
  }
  #main {
    padding-top: 100px;
  }
  .main-block__articles-list .articles-list li:last-child{
    display: none;
  }
  .footer-bottom__links {
    flex: unset;
  }
  .header-inner__right {
    display: none;
  }
  .header-inner__toggle {
    display: block;
  }
  .header-inner__left {
    flex-wrap: wrap;
  }
  .header-menu {
    flex: 0 0 100%;
  }
  .header-inner__left {
    justify-content: space-between;
  }
  .header-inner {
    width: 100%;
  }
  .header-inner {
    display: block;
  }

  #single-post,
  .about-page {
    padding-top: 160px;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .socials-banner__right img {
    width: 60%;
    top: 0vw;
    right: -4%;
  }
  .subscribe-banner_s1,
  .subscribe-banner_s2,
  .subscribe-banner_s3,
  .subscribe-banner_s4 {
    width: 150px;
  }
}
@media only screen and (max-width: 1020px) {
  .articles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .articles-grid:has(.--first-big) > .card:nth-child(1),
  .articles-grid:has(.--first-big) > .card:nth-child(2) {
    grid-column: span 3;
  }
  .articles-grid.--with-big > .card:nth-child(1),
  .articles-grid.--with-big > .card:nth-child(2),
  .articles-grid.--with-big > .card:nth-child(8n + 1),
  .articles-grid.--with-big > .card:nth-child(8n + 2) {
    grid-column: span 3;
  }

  .subscribe-banner__inner {
    grid-template-columns: 1fr;
  }
  .footer-top__left {
    flex-wrap: wrap;
  }

  .footer-pwd.mobile {
    display: block;
    text-align: left;
  }
  .footer-pwd.desktop {
    display: none;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom__links {
    order: -2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
    margin-bottom: 20px;
  }
  .footer-copyright {
    margin-bottom: 10px;
  }

  /* .footer-bottom__right{
    order: -1
  } */
}
/* Medium Devices, Desktops */
@media only screen and (max-width: 992px) {
  .articles-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .header__toggle {
    display: block;
  }
  .header-search-button,
  .header-mob__burger {
    height: 34px;
  }
  .header-search button {
    margin-top: 0;
  }
  .about-page .container {
    grid-template-columns: 1fr;
  }
  .subscribe-banner_s1,
  .subscribe-banner_s2,
  .subscribe-banner_s3,
  .subscribe-banner_s4 {
    width: 100px;
  }

  .main-block {
    grid-template-columns: 1fr;
  }
  .header-inner__left {
    gap: 15px;
  }
  #socials-banner {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .socials-banner__right img {
    width: 64%;
    top: 0vw;
    right: -19%;
  }
  .articles-list.--columns {
    grid-template-columns: 1fr;
  }

  .header-logo img {
    width: 180px;
  }
  header {
    padding: 15px;
    border-radius: 0;
  }
  .header-mob {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    background: #000;
  }
  .header-inner {
    display: none;
  }
  .header-mob {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 15px;
  }
  header .container {
    padding-left: 0;
    padding-right: 0;
  }
  .header-menu {
    overflow-x: scroll;
    margin-left: -15px;
    margin-right: -15px;
    flex: 0 0 100vw;
  }
  .header-menu li a {
    white-space: nowrap;
  }
  .header-menu li:first-child {
    margin-left: 15px;
  }

  .header-search {
    left: 64px;
    top: 11px;
    width: calc(100% - 85px);
  }
  .header-search input {
    padding: 9px 12px;
  }
}

/* Small Devices, .table_boxts */
@media only screen and (max-width: 821px) {
  #subscribe.--zaglushka.--shop {
    padding-top: 150px;
    padding-bottom: 150px;
  }
  .subscribe-banner_s4 {
    right: 0;
  }
  .subscribe-banner_s3 {
    left: 0;
  }
  .subscribe-banner_s1 {
    bottom: -60px;
    right: 0;
  }
  .subscribe-banner_s2 {
    bottom: -49px;
    left: 0;
  }
  /* Texts */
  h1,
  .h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 28px; /* 107.692% */
    letter-spacing: -0.52px;
  }

  h2,
  .h2,
  .card.--bigger .card__title,
  #single-post.--page h1,
  .articles-grid.--with-big > .card:nth-child(1) .card__title,
  .articles-grid.--with-big > .card:nth-child(2) .card__title,
  .articles-grid.--with-big > .card:nth-child(8n + 1) .card__title,
  .articles-grid.--with-big > .card:nth-child(8n + 2) .card__title,
  .card.--big .card__title {
    font-size: 18px;
    font-weight: 400;
    line-height: 22px; /* 120% */
    letter-spacing: -0.4px;
  }
  h2,
  .h2 {
    font-weight: 500;
    font-size: 24px;
    line-height: 26px;
  }
  .card.--big.--bigger .card__title {
    font-size: 24px;
    line-height: 26px !important;
  }
  .card.--big.--bigger .card__img {
    border-radius: 15px;
  }
  h3,
  .h3 {
    font-size: 18px;
    font-weight: 400;
    line-height: 24px; /* 133.333% */
    letter-spacing: -0.36px;
  }
  h4,
  .h4 {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px; /* 125% */
    letter-spacing: -0.32px;
  }
  h5,
  .h5,
  .card.--text .card__title {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    letter-spacing: -0.28px;
  }
  .card.--text .card__title {
    font-size: 16px;
    line-height: 20px; /* 125% */
    letter-spacing: -0.32px;
  }

  #aricles-by-categories .card.--text .card__title {
    font-size: 18px;
    line-height: 22px;
  }
  #aricles-by-categories .articles-list-body .button {
    margin-top: 5px;
  }
  .header-menu ul {
    gap: 7px;
  }
  .footer-top__left {
    gap: 20px;
  }

  .h6 {
    font-size: 13px;
    font-weight: 400;
    line-height: 18px; /* 138.462% */
    letter-spacing: -0.26px;
  }

  .h7 {
    font-size: 15px;
    font-weight: 400;
    line-height: 22px; /* 138.462% */
    letter-spacing: -0.26px;
  }
  .h8 {
    font-size: 13px;
    line-height: 16px;
  }
  .--small {
    font-size: 11px;
    line-height: 14px; /* 127.273% */
  }
  .--tiny {
    font-size: 10px;
    line-height: 14px; /* 140% */
    letter-spacing: -0.2px;
  }

  .socials-banner__right img {
    width: 57%;
    top: 14px;
    right: -10%;
  }

  .socials-banner__right img {
    width: 355px;
  }
  .articles-grid {
    grid-template-columns: 1fr 1fr;
  }
  .articles-grid:has(.--first-big) > .card:nth-child(1),
  .articles-grid:has(.--first-big) > .card:nth-child(2) {
    grid-column: span 3;
  }
  #aricles-by-categories .gray-box {
    padding: 0;
    background: none;
  }
  .button {
    font-size: 12px;
    line-height: 14px; /* 127.273% */
  }
  .header-inner__left {
    gap: 14px;
  }
  #main,
  #single-post,
  .about-page {
    /* padding-top: 112px; */
    padding-top: 16px;
  }
  #single-post {
    padding-bottom: 50px;
  }
  body.single #subscribe {
    padding-top: 50px;
  }
  .card:not(.--text) .card__title {
    margin-top: 7px;
    display: block;

    line-height: 22px; /* 125% */
    letter-spacing: -0.32px;
  }
  .card-meta__categories a,
  .label,
  .card-meta__date {
    font-size: 11px;
    line-height: 14px; /* 140% */
    letter-spacing: -0.2px;
  }
  .main-block {
    grid-gap: 20px;
  }
  .card__img {
    border-radius: 15px;
  }
  .articles-list-wrapper {
    padding: 20px 20px 10px 20px;
    border-radius: 15px;
  }
  .socials-banner__inner {
    padding: 182px 35px 30px;
  }
  .socials-banner__right .desktop {
    display: none;
  }
  .socials-banner__right .mobile {
    display: block !important;
  }
  .socials-banner__right img {
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
    right: auto;
    top: -90px;
  }
  .socials-banner__left {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .socials-banner__title {
    text-align: center;
    font-size: 26px;
    line-height: 28px; /* 107.692% */
    letter-spacing: -0.52px;
  }
  .socials-banner__social {
    font-size: 13px;
    font-weight: 300;
    line-height: 18px; /* 138.462% */
    letter-spacing: -0.26px;
  }
  .socials-banner__social img {
    width: 18px;
    height: auto;
  }
  .socials-banner__socials {
    margin: 15px 0;
    gap: 8px;
    justify-content: center;
  }
  .socials-banner__left {
    text-align: center;
  }
  .socials-banner__text {
    font-size: 13px;
    line-height: 14px; /* 127.273% */
  }
  .socials-banner__decors {
    overflow: hidden;
  }
  .socials-banner__decor1 {
    position: absolute;
    right: auto;
    bottom: 6px;
    width: 53px;
    left: -3px;
    transform: rotate(11deg);
  }
  .socials-banner__decor2 {
    position: absolute;
    right: 0px;
    bottom: 0;
    width: 44px;
  }
  .socials-banner {
    border-radius: 15px;
  }
  .socials-banner__decor2 {
    border-radius: 0;
  }
  #socials-banner {
    padding: 120px 0 20px;
  }
  #all-articles {
    padding-top: 20px;
  }
  #all-articles h2 {
    margin-bottom: 15px;
  }
  .card__meta {
    margin-top: 7px;
  }
  .articles-grid {
    grid-gap: 15px;
  }
  .button {
    white-space: nowrap;
  }
  .articles-list-header {
    /* margin-top: 10px; */
    overflow-x: scroll;
    width: 100vw;
    margin-left: -15px;
  }
  .articles-list-header a:first-child {
    margin-left: 15px;
  }
  .articles-list.--columns {
    grid-template-columns: 1fr;
  }
  #aricles-by-categories .articles-list-body {
    padding: 5px 20px 20px;
    border-radius: 15px;
    background: #f9f9f9;
    margin-top: 15px;
  }
  .card-meta__icons img {
    width: 18px;
    height: auto;
  }
  .main-block {
    display: block;
  }
  .main-block__article {
    margin-bottom: 30px;
  }
  .button.--big {
    font-size: 13px;
    line-height: 18px; /* 138.462% */
    letter-spacing: -0.26px;
  }
  #we-recommend {
    padding-top: 50px;
    padding-bottom: 20px;
  }
  #we-recommend .articles-grid {
    margin-top: 15px;
  }
  .articles-grid.--big {
    grid-gap: 20px;
  }
  #subscribe {
    padding-top: 20px;
    padding-bottom: 40px;
  }
  .subscribe-banner {
    border-radius: 15px;
    padding: 25px 25px 30px;
  }
  .subscribe-banner__inner {
    grid-template-columns: 1fr;
    grid-gap: 25px;
    text-align: center;
  }
  .input-text {
    border-radius: 10px;

    font-size: 13px;
    line-height: 18px; /* 138.462% */
    letter-spacing: -0.26px;
    padding: 14px 20px;
  }
  .input-subtext {
    margin-top: 10px;

    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px; /* 127.273% */
  }
  .subscribe-banner__decor-1 {
    top: 110px;
    left: 29px;
  }
  .subscribe-banner__decor-1 svg {
    width: 50px;
  }
  .subscribe-banner__decor-2,
  .subscribe-banner__decor-3 {
    display: none;
  }

  .subscribe-banner__decor-4 {
    top: 90px;
    left: auto;
    right: 29px;
  }
  .subscribe-banner__decor-4 svg {
    width: 50px;
  }
  .header-menu.footer__menu {
    overflow-x: unset;
    margin-left: 0;
    margin-right: 0;
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
  .header-menu.footer__menu ul {
    flex-wrap: wrap;
  }
  .header-menu.footer__menu li:first-child {
    margin-left: 0;
  }
  .footer__logo img {
    width: 180px;
  }
  footer {
    padding-top: 30px;
    /* border-radius: 20px 20px 0 0; */
  }
  .footer-socials__list img {
    width: 35px;
    height: auto;
  }
  .footer-top {
    padding-bottom: 20px;
  }
  .footer-bottom__links a {
  }
  .footer-bottom {
    padding-top: 27px;
  }
  .single-post__meta {
    margin-top: 15px;
  }
  .single-post__meta,
  .single-post__meta div:first-child {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .wp-block-image img {
    border-radius: 15px;
  }
  .wp-block-embed-youtube iframe {
    border-radius: 15px;
  }
  .text-content h2,
  .text-content h3,
  .text-content h4,
  .text-content h5 {
    margin: 30px 0 10px;
  }
  .text-content p,
  .text-content li {
    /* color: #000; */
    font-size: 15px;
    font-weight: 300;
    line-height: 22px; /* 138.462% */
    letter-spacing: -0.26px;
  }
  .wp-block-image {
    margin: 20px 0;
  }
  .wp-element-caption {
    color: #aaacae;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px; /* 140% */
    letter-spacing: -0.2px;
    margin-top: 10px;
    margin-bottom: 0;
  }
  .toc h2 {
    margin-top: 0 !important;
    margin-bottom: 10px;
  }
  .toc li a {
    font-size: 13px;
    font-weight: 300;
    line-height: 18px;
    letter-spacing: -0.26px;
  }
  #archive-articles {
    padding: 16px 0 66px;
  }
  .search-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .search-header__count {
    color: #000;
    font-size: 13px;
    font-weight: 300;
    line-height: 18px;
    letter-spacing: -0.26px;
  }
  .search-articles {
    margin-top: 15px;
  }
  .search-articles .card {
    padding: 15px 20px;
    border-radius: 15px;
    margin-left: -15px;
    width: calc(100vw + 15px);
  }
  .swiper-releated .swiper-slide {
    width: min(410px, calc(100% - 60px)) !important;
    margin-right: 20px;
  }
  .swiper-wrapper.articles-grid-3 {
    display: flex;
    gap: 0;
    max-width: unset;
  }
  h5,
  .h5,
  .card .card__title,
  .main-block__articles-list .card.--text .card__title {
    font-size: 18px;
    line-height: 22px;
  }
  .all-articles__button {
    margin-top: 15px;
  }
  #all-articles {
    padding-bottom: 50px;
  }
  #aricles-by-categories .articles-list-header {
    padding-top: 20px;
    margin-top: 0 !important;
  }
  .about-page .container {
    gap: 20px;
  }
  .about-page__image img {
    border-radius: 15px;
  }
  .about-page {
    padding-bottom: 0px;
  }
  .toc {
    margin: 15px 0;
  }
  .single-post__meta,
  .single-post__meta div:first-child {
    gap: 7px;
  }
  .toc h2 {
    font-size: 16px;
  }
  .toc li a {
    font-size: 16px;
    line-height: 20px;
  }
  #releated-posts .card__title {
    font-size: 20px;
    line-height: 22px;
  }
  .swiper-releated {
    margin-top: 15px;
  }
  :where(.wp-block-columns.is-layout-flex) {
    gap: 10px;
  }
  #single-post h1 {
    margin-top: 15px;
    line-height: 28px;
  }
  .text-content h2 {
    line-height: 26px;
  }
  .mobile-menu__menu .--new.menu-item {
    position: relative;
  }
  .mobile-menu__menu .--new.menu-item:after {
    content: "new";
    color: #000;
    font-size: 10px;
    font-weight: 400;
    line-height: 14px;
    letter-spacing: -0.2px;
    border-radius: 5px;
    background: #ffdb4d;
    padding: 2px 5px;
    display: inline-flex;
    align-items: center;
    height: 18px;
    margin-top: 13px;
    position: absolute;
    right: 0;
    top: 0;
    height: 18px;
  }
  .current-menu-item a {
    color: #4d4d4d !important;
  }
  .--zaglushka .subscribe-banner__decor-4 svg {
    width: 70px;
  }
  .--zaglushka .subscribe-banner__decor-4 {
    border: 0;
    top: auto;
    right: 20px;
  }
  .--zaglushka .subscribe-banner__decor-3 {
    display: block;
    left: 10px;
  }
  .--zaglushka .subscribe-banner__decor-3 svg {
    width: 70px;
  }
  .wp-block-column:not(:last-child) .wp-block-image:last-child {
    margin-bottom: 0;
  }
  .articles-grid.--mt-30 {
    margin-top: 15px;
  }
  #posts-articles {
    padding: 66px 0;
  }
  #posts-articles #subscribe .container {
    padding-left: 0;
    padding-right: 0;
  }
  .articles-list-header.--top {
    display: block;
    padding-top: 10px;
    margin-top: 60px;
    overflow-x: scroll;
    width: 100vw;
    margin-left: 0;
  }
  .articles-list-header.--top ul {
    display: flex;
    align-items: center;
    /* gap: 10px; */
  }
  .articles-list-header.--top a:first-child {
    margin-left: 10px;
  }
  .articles-list-header.--top li:first-child a:first-child {
    margin-left: 15px;
  }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width: 480px) {
  .articles-grid.--with-big > .card {
    grid-column: span 3;
  }

  .header-mob__logo img {
    max-width: 180px;
  }
  .about-page__socials .socials-banner__social {
    font-size: 11px;
    line-height: 14px;
  }
  .about-page__socials {
    left: 10px;
    bottom: 10px;
  }
  .articles-grid.--big {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid:has(.--first-big) > .card:nth-child(1),
  .articles-grid:has(.--first-big) > .card:nth-child(2) {
    grid-column: span 3;
  }
  .footer-top__right {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
  }
  .post-share__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  #we-recommend .card {
    /* display: none; */
  }
  .input-text {
    font-weight: 400;
  }
  body.category #subscribe,
  .page-template-template-posts-page #subscribe {
    padding-top: 40px;
  }
  #archive-articles {
    padding-bottom: 0;
  }
  .single-post__meta {
    margin-top: 7px;
  }
  .wp-block-columns {
    gap: 0;
  }
  .mobile-menu .button {
    line-height: 18px;
  }
  .only-mob {
    display: block;
  }
  #subscribe.--zaglushka.--shop {
    padding-top: 60px;
    padding-bottom: 90px;
  }
  #archive-articles #subscribe.--zaglushka {
    padding-top: 21px;
  }
}

/* Custom, iPhone Retina */
@media only screen and (max-width: 320px) {
}
