@media (min-width: 768px) {
  ._only-mobile {
    display: none !important;
  }

  .stages__list {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .header__link {
    padding: 0 20px;
  }

  .stages__wrapper {
    margin: 0;
  }

  .card__swiper .swiper-wrapper {
    max-width: 800px;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  :root {
    --container-offset: 35px;
  }

  .mobile {
    display: flex !important;
  }

  .desktop {
    display: none;
  }

  .title {
    font-size: 24px;
  }

  .button {
    height: 36px;
    font-size: 14px;
    border-radius: 10px;
  }

  .header {
    padding: 10px 0;
  }

  .header__tool {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__nav {
    display: none;
  }

  .header__container {
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }

  .hero {
    height: auto;
    background-position: 0 -90px;
  }

  .hero__container {
    flex-direction: column;
    gap: 28px;
  }

  .hero__logo {
    width: 230px;
  }

  .hero__title {
    font-size: 18px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .hero__info {
    width: 100%;
  }

  .hero .swiper-wrapper {
    max-width: 333px;
  }

  .hero__img {
    max-width: 333px;
    max-height: 172px;
  }

  .hero__text {
    font-size: 14px;
    line-height: 135%;
  }

  .hero__link {
    justify-content: space-between;
    width: 225px;
    height: 40px;
    font-weight: 400;
    font-size: 12px;
    padding-left: 17px;
    padding-right: 7px;
  }

  .hero__link::after {
    width: 25px;
    height: 25px;
  }

  .hero__img {
    clip-path: initial;
    width: 100%;
  }

  .hero__buttons {
    position: static;
  }

  .hero__button {
    position: absolute;
    height: 30px;
    width: 30px;
    top: calc(50% - 15px);
    z-index: 2;
    background-size: 50%;
  }

  .hero__next {
    right: -15px;
  }

  .hero__prev {
    left: -15px;
  }

  .results__container {
    gap: 20px;
  }

  .results__content {
    min-width: max-content;
    grid-template-columns: 217px 217px 331px;
  }

  .results__num {
    font-size: 72px;
  }

  .results__text {
    margin-top: auto;
    font-size: 11px;
  }

  .results__item {
    min-height: 200px;
    height: 200px;
    padding: 20px 25px;
  }

  .results__wrapper {
    overflow: auto;
    display: flex;
    align-items: center;
    height: 240px;
    width: calc(100% + 20px);
    margin-right: -20px;
  }

  .results__wrapper::-webkit-scrollbar {
    display: none;
  }

  .archive__content {
    padding: 15px 0;
    flex-direction: column;
    height: 100%;
  }

  .archive__input--page {
    width: 100%;
    margin: 0;
    max-width: 100%;
    margin-top: 20px;
  }

  .archive__tools {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    display: none;
  }

  .archive__subtitle img {
    display: none;
  }

  .archive__top {
    flex-wrap: wrap;
    height: 100%;
  }

  .archive__top .title {
    width: 100%;
  }

  .archive__link {
    height: 42px;
  }

  .archive__switch {
    height: 42px;
    margin-left: 0;
  }

  .archive__subtitle::after {
    content: "";
    display: block;
    width: 12px;
    height: 10px;
    background: url("../img/arrow-black.svg") no-repeat center;
  }

  .archive__subtitle {
    width: 100%;
    justify-content: space-between;
  }

  .archive__map {
    margin-top: 30px;
  }

  .stages__info {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
  }

  .stages__lines {
    grid-template-columns: 1fr;
    height: 550px;
    width: 30px;
    min-width: 30px;
    margin-right: 40px;
    margin-left: 15px;
  }

  .stages__line {
    /* height: 140px; */
    height: 230px;
  }

  .stages__ico {
    top: 0;
    left: 0;
  }

  .stages__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .stages__line {
    width: 100%;
  }

  .stages__title {
    font-size: 16px;
  }

  .stages__subtitle {
    font-size: 14px;
  }

  .stages__date {
    height: 30px;
    font-size: 14px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .stages__bottom:last-child .stages__line {
    width: 100%;
  }

  .stages__ico {
    left: 0;
    width: 58px;
    height: 58px;
    left: -15px;
    z-index: 4;
  }

  .stages__ico--end {
    top: auto;
    bottom: -26.5px;
  }

  .stages__ico img {
    object-fit: contain;
    max-width: 60%;
  }

  .stages__bottom:first-child .stages__line {
    width: 100%;
    margin-left: 0;
  }

  .stages__line--progress:before {
    z-index: 3;
    height: 55%;
    width: 100%;
  }

  .stages__line--progress:after {
    position: absolute;
    width: 100%;
    height: 60%;
    z-index: 2;
  }

  .stages__list {
    flex-grow: 1;
    grid-template-columns: 1fr;
  }

  .stages__wrapper::before {
    display: none;
  }

  .archive__list {
    grid-template-columns: 1fr;
  }

  .news__big {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 25px;
    height: 150px;
    padding: 0;
  }

  .news__big::after {
    display: none;
  }

  .news__wrapper--big {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
  }

  .news__big>img {
    position: static;
    height: 100%;
    width: 220px;
    min-width: 220px;
    object-fit: cover;
    border-radius: 12px;
  }

  .news__col {
    gap: 30px;
  }

  .news__content {
    height: auto;
    gap: 30px;
  }

  .news__name {
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    color: #000;
  }

  .news__badge {
    gap: 30px;
    background: #e5f2ff;
    font-size: 12px;
  }

  .news__content {
    display: flex;
    flex-direction: column;
  }

  .news__top {
    flex-direction: column;
    align-items: start;
  }

  .news__filter {
    width: 100%;
  }

  .news__link {
    margin: 0;
  }

  .questions__container {
    height: 100%;
    gap: 22px;
    flex-direction: column;
    padding: 25px;
  }

  .questions__title {
    font-size: 24px;
  }

  .questions__subtitle {
    font-size: 14px;
  }

  .questions__link {
    padding: 10px 20px;
  }

  .questions__link {
    font-size: 14px;
  }

  .footer__nav {
    /* display: none; */
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
  }

  .footer__nav a {
    font-size: 14px;
    font-weight: 700;
  }

  .footer {
    height: 100%;
  }

  .footer__container {
    gap: 30px;
    padding-top: 25px;
    padding-bottom: 35px;
  }

  .footer__right {
    grid-column-end: span 2;
    margin-left: 0;
    width: 100%;
  }

  .footer__text br {
    display: none;
  }

  .footer__logo {
    width: 100%;
    height: auto;
  }

  .footer__container {
    display: grid;
    grid-template-columns: 127px auto;
  }

  .warranty__container {
    flex-direction: column;
    gap: 20px;
    height: 100%;
    padding: 25px 25px 30px 25px;
  }

  .faq__header {
    font-size: 14px;
    padding: 11px 25px;
  }

  .faq__text {
    font-size: 14px;
  }

  .card__top {
    flex-direction: column-reverse;
  }

  .card__block {
    min-width: 100%;
    width: 100%;
    padding: 20px 25px;
  }

  .menu__link {
    height: 42px;
    font-size: 14px;
  }

  .menu__social {
    height: 42px;
    font-size: 14px;
  }

  .menu__block {
    width: 42px;
  }

  .archive__tools.open {
    margin-top: 20px;
    display: flex;
    width: 100%;
  }

  .archive__tool {
    max-width: 100%;
    z-index: initial;
    flex-wrap: wrap;
  }

  .archive__tool.active {
    border-radius: 10px;
    padding-top: 8px;
    padding-bottom: 5px;
  }

  .archive__select {
    padding: 0;
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .archive__tool:has(input[type="text"]) {
    flex-wrap: nowrap;
  }

  .card__swipers {
    flex-direction: column-reverse;
  }

  .card__swiper .swiper-wrapper {
    max-width: 100%;
  }

  .card__swiper-wrapper {
    max-width: 100%;
  }

  .card__thumbs {
    width: 100%;
  }

  .card__thumb.swiper-slide {
    min-width: 70px;
    width: 70px;
    height: 70px;
  }

  .card__thumb img {
    border-radius: 5px;
  }

  ._winners ._winners__list>* {
    flex: 0 1 calc(100% / 2 - 8px / 2);
    max-width: calc(100% / 2 - 8px / 2);
  }

  ._under-form-buttons .form__buttons {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-items: center;
    justify-content: center;
  }

  ._under-form-buttons .form__buttons>* {
    margin: 0 !important;
    width: 100% !important;
    height: 40px;
    font-size: 18px;
    justify-content: center;
  }

  .downloaded-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .downloaded-buttons>* {
    margin: 0 !important;
    width: 100% !important;
  }

  .stages__lines {
    height: fit-content;
  }
}

@media (max-width: 767px) {
  .archive__item {
    /*    height: 465px;*/
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .archive__img {
    height: 230px;
  }

  .archive__info {
    padding: 20px 25px;
    flex-grow: 1;
  }

  .archive__name {
    margin-top: auto;
  }

  .news__item {
    flex-direction: column;
    height: auto;
  }

  .news__big {
    flex-direction: column-reverse;
    height: auto;
  }

  .news__big>img {
    width: 100%;
    height: 225px;
  }

  .news__item>img {
    width: 100%;
    height: 225px;
  }

  .news__wrapper {
    gap: 15px;
  }

  .new__tools {
    flex-wrap: wrap;
  }

  .news__content {
    margin-top: 28px;
  }

  .warranty__form {
    display: flex;
    flex-direction: column;
  }

  .warranty__textarea {
    height: 110px;
  }

  .warranty__add {
    display: block;
    height: 56px;
  }

  .warranty__submit {
    height: 56px;
  }

  .beforeAfter-slider {
    border-radius: 7px;
  }

  .beforeAfter-slider img {
    height: 200px;
  }

  .beforeAfter-text {
    font-size: 5px;
    padding: 4px 7px;
    top: 10px;
    left: 10px;
  }

  .beforeAfter-text--end {
    left: auto;
    right: 10px;
  }

  .card__text {
    font-size: 16px;
  }

  .card__photo {
    height: 200px;
  }

  .card__photo img {
    max-height: 100%;
  }

  .card__thumb.swiper-slide {
    min-width: 35px;
    width: 35px;
    height: 35px;
  }

  .card__prev {
    left: 15px;
    background: url(../img/prev.svg) no-repeat center center, rgba(255, 255, 255, 0.5);
  }

  .card__button {
    min-width: 26px;
    width: 28px;
    height: 28px;
    background-size: 35%;
    top: calc(50% - 14px);
  }

  .card__next {
    right: 15px;
  }



  .profile__info.profile__element {
    display: none;
  }

  .profile__container {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    display: block;
  }

  .profile__content {
    padding: 20px;
  }

  #search-projects-block {
    display: none;
  }

  .projects__info,
  .projects__date.projects__date--row,
  .projects__params {
    display: block;
    flex: none;
    max-width: 100%;
  }

  .projects__params>* {
    margin-bottom: 10px;
  }

  .projects__item {
    padding: 20px;
  }

  .projects__item p {
    font-size: 14px;
  }

  .projects__info>.text {
    margin: 8px 0;
    font-size: 14px;
  }

  .projects__params {
    min-width: 0;
    text-align: left;
  }

  .projects__info .text img {
    width: 15px;
    max-width: 15px;
    flex: 0 0 15px;
  }

  .group__top {
    display: block;
  }

  .group__count {
    margin-top: 10px;
  }

  .projects__group {
    padding: 15px
  }

  .projects__buttons {
    display: block;
    flex: none;
  }

  .projects__buttons>* {
    margin: 10px 0;
    display: block;
  }

  .text.projects__button._try-send-to-admin {
    font-size: 17px;
  }

  a.text.projects__button {
    font-size: 17px;
  }

  .form__item> :last-child {
    display: none;
  }

  .form__item,
  .form__content {
    display: block;
    flex: none;
  }

  .form__item:not(:first-child)> :first-child.form__field,
  .form__item> :first-child {
    background: var(--white);
    padding-left: 15px;
    padding-right: 15px;
  }

  body .form__field textarea[disabled],
  body .form__field input[disabled],
  body .form__field input._disabled {
    padding-left: 10px;
  }

  .form__field p {
    font-size: 14px;
  }

  .footer-logo-link>img {
    display: none;
  }

  .status__items {
    display: none;
  }

  .create__link,
  .create__select {
    width: 100%;
  }

  .form__type {
    height: auto;
    padding: 10px;
  }

  .title {
    font-size: 19px;
  }

  body .file-container>table {
    font-size: 12px
  }

  .footer-logo-link {
    display: none;
  }

  .footer__container {
    display: block;
  }

  .footer__col {
    margin-bottom: 20px;
  }

  .footer__text.footer__text--margin {
    display: none;
  }

  section.status {
    display: none;
  }

  .header__tool {
    display: flex;
  }

  .profile__element {
    padding: 23px 45px;
  }

  .fancybox__content#link-modal,
  .fancybox__content#accept-project-modal,
  .fancybox__content#modal {
    max-width: 90vw;
  }

  .form__field {
    display: block;
    width: 100%;
  }

  .form__field input {
    padding-right: 0;
    padding-left: 10px;
  }

  .form__field input,
  .form__field textarea {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 15px;
  }

  .create__link {
    text-align: left;
  }

  .fancybox__content#link-modal .create__row {
    display: block;
  }

  .fancybox__content#link-modal .create__row>* {
    display: block;
    width: 100%;
  }

  .form__item.form__item--offset {
    display: none;
  }

  body ._images ._images-item {
    flex: 0 1 calc(100% / 2 - 20px / 2);
    max-width: calc(100% / 2 - 20px / 2);
    border-radius: 0;
  }

  .footer__text {
    /* font-size: 12px; */
    font-size: 15px;
  }

  .projects__empty {
    margin-top: 0;
  }

  .projects__empty>img {
    display: none;
  }

  .projects__empty--info {
    max-width: 100%;
  }

  .form.show-initiators-block .form__field {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -webkit-align-content: stretch;
    align-content: stretch;
  }

  .form.show-initiators-block .form__field p {
    margin-top: 6px;
  }

  ._winners ._winners__list>* {
    flex: 0 1 100%;
    max-width: 100%;
  }

  .profile__content .profile__top {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 20px !important;
  }

  .form__field input,
  .form__field textarea {
    font-size: 12px;
  }

  .form__field p {
    font-size: 12px;
  }

  .form>.iframe-container iframe {
    width: 100%;
    background-color: #fff;
  }

  ._under-form-buttons {
    display: block;
  }

  ._under-form-buttons .form__buttons {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-items: center;
    justify-content: center;
  }

  ._under-form-buttons .form__buttons>* {
    margin: 0 !important;
    width: 100% !important;
    height: 40px;
    font-size: 18px;
    justify-content: center;
  }

  .downloaded-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100%;
  }

  .downloaded-buttons>* {
    margin: 0 !important;
    width: 100% !important;
    min-width: unset;
    display: flex;
    align-items: center;
  }

  ._only-desktop {
    display: none !important;
  }

  .form__next:after {
    margin-left: 10px;
  }

  .group-bottom-buttons {
    display: flex;
    flex-direction: column;
  }


  .accordion__content.faq__text video,
  .accordion__content.faq__text iframe {
    width: 100%;
    height: 300px;
  }

  .block-documents .block-documents__list .block-documents__item {
    flex: 0 1 100%;
    max-width: 100%;
  }

  /* .profile__top .profile__add {
    display: none;
  } */

  .districts-modal__content.fancybox__content {
    max-width: 100vw;
  }

  .districts-modal__list .districts-modal__item {
    flex: 0 1 100%;
    max-width: 100%;
  }


  .stages__item:not(:first-child) {
    margin-top: 24px;
  }

  .stages__subtitle {
    margin-top: 8px;
  }
}

@media (max-width: 1024px) {
  .archive__tool:has(input[name="mo-search"]) {
    flex-wrap: wrap !important;
  }

  .archive__tools {
    display: flex;
  }

  .project-voting-modal {
    min-width: 100%;
  }

  body>.tech-pod {
    /*    display: none;*/
  }

  li.page-item {

    display: none;
  }

  .page-item:first-child,
  .page-item:nth-child(2),
  .page-item:nth-last-child(2),
  .page-item:last-child,
  .page-item.active,
  .page-item.disabled {

    display: block;
  }

  ._archive__search-button._search-button {
    width: 100%;
    height: 40px
  }

  .fancybox__slide:has(.project-voting-modal) .f-button.is-close-btn {
    top: 20px;
    right: 20px;
  }

  .fancybox__slide.has-html.has-close-btn.is-selected.is-done:has(.project-voting-modal) {
    padding: 0;
  }

  .project-voting-modal.fancybox__content {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .project-voting-modal.fancybox__content .back-button {
    position: absolute;
    top: 10px;
    right: 0;
    box-shadow: 0px 0px 8px 0px rgba(34, 60, 80, 0.2);
    border-radius: 50%;
    background-size: 60%;
    /* padding-right: 10px; */
    background-position: 6px center;
    width: 34px;
    height: 34px;
  }

  .took-part-banner_image {
    width: 100%;
    max-width: 50%;
  }

  .took-part-banner {
    padding-bottom: 90px;
  }

  .took-part-banner_count {
    font-size: 32px;
    line-height: 32px;
  }
}

@media (max-width: 767px) {
  .took-part-banner {
    padding-bottom: 85px;
    min-height: 226px;
  }

  .took-part-banner_image {
    max-width: 80%;
  }

  .card__photos {
    margin-bottom: 40px;
  }

  .card__photos .card__photo {
    height: 340px;
  }

  ._mt-60 {
    margin-top: 20px;
  }

  .archive__filter {
    margin-top: 20px;
  }

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

  .stages__list>* {
    padding-left: 10px;
  }
}