@font-face {
  font-family: "icons";
  src: url("/static/fonts/icons.eot?p25a3n");
  src: url("/static/fonts/icons.eot?p25a3n#iefix") format("embedded-opentype"), url("/static/fonts/icons.ttf?p25a3n") format("truetype"), url("/static/fonts/icons.woff?p25a3n") format("woff"), url("/static/fonts/icons.svg?p25a3n#icons") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class*=_icon-]:before {
  font-family: "icons";
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[class*=_icon-]:before {
    display: block;
}
[class*=_icon-]:before {
    font-family: "icons";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
  --accent-color: #000;
  --bg-light: #F4F7F9;
  --radius: 24px;
}

._icon-edit-2:before {
  content: "";
}

._icon-trash:before {
  content: "";
}

._icon-arrow-right:before {
  content: "";
  color: #595b5f;
}

* {
  padding: 0px;
  margin: 0px;
  border: 0px;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
}

body {
    color: #202020;
    line-height: 1;
    font-family: "Tektur";
    font-size: 1rem;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
header {
    padding: 20px 0;
}
.header {
    margin-top: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    gap: 50px;
}
.round-btn {
    border: .0625rem solid #595b5f;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    outline: none;
    font-weight: 700;
    display: block;
    height: 3rem;
    background-color: #fff;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 10.6875rem;
    flex: 0 1 10.6875rem;
    text-align: center;
    -webkit-transition: all .3s;
    transition: all .3s;
}
.footer__logo,
.footer__phone,
.footer-social {
    margin-right: auto;
}

.footer__copy {
    font-size: 0.75rem;
    font-weight: 500;
    font-family: "Ubuntu";
    color: #666;
    text-align: center;
}

a {
    color: inherit;
}

a:link, a:visited {
    text-decoration: none;
}

.wrapper {
    display: grid;
    grid-template-columns: auto 300px;
    max-width: 1280px;
    justify-self: center;
}
.wrapper.single {
    display: block;
}
.sidebar {
    padding: 0 0 0 10px;
    font-family: "Roboto", system-ui;
    font-weight: 400;
    color: #333;
}

@media (max-width:767px) {
    .wrapper {
        grid-template-columns: 1fr;
    }
    .sidebar {
        padding: 20px;
    }
    .page .footer {
        display: none;
    }
}

.article-container {
    display: flex;
}


.articles__item {
    background: #f6f6f6;
    border-radius: 2.5rem;
    padding: 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}
.item-posts__image {
    display: block;
    margin-bottom: 0.75rem;
    overflow: hidden;
    width: 100%;
    border-radius: .75rem;
}

/* делает сайдбар скроллимщися */
/* .stickybar {
    position: sticky;
    top: 20px;
    overflow-y: auto;
    max-height: 95vh;
} */

.sidebar__title {
    padding: 10px 0 0 10px;
}

.articles__container {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

.articles__item {
    background: #f6f6f6;
    border-radius: 2.5rem;
    padding: 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}
.item-articles__image img {
    max-width: 100%;
    width: 100%;
    height: 8.75rem;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: .75rem;
    -webkit-transition: -webkit-transform .3s;
    transition: -webkit-transform .3s;
    transition: transform .3s;
    transition: transform .3s, -webkit-transform .3s;
}
@media (max-width:767px) {
    .articles__container {
        grid-template-columns: 1fr 1fr;
    }
    .item-articles__image img {
        width: 100%;
        aspect-ratio: 1.46 / 1;
    }
}

.article__content img:not(:last-child) {
  margin-bottom: 1.25rem;
}

@media (max-width:509px) {
    .articles__container {
        grid-template-columns: 1fr;
    }
}
.item-articles__date {
    color: #595b5f;
    display: block;
    font-weight: 700;
    font-family: "Ubuntu";
    margin-bottom: 0.75rem;
}
.item-articles__title {
    margin-bottom: 0;
}
.item-articles__link-title {
    display: block;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 120%;
    text-transform: uppercase;
    -webkit-transition: color .3s;
    transition: color .3s;
    margin-bottom: 1.8125rem;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}
.item-articles__text:not(:last-child) {
    margin-bottom: 1.8125rem;
}
.item-articles__text {
    font-family: "Ubuntu";
    color: #666;
    line-height: 140%;
}
.item-articles__link {
    font-family: "Ubuntu";
    font-weight: 700;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    color: #595b5f;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-column-gap: 2rem;
    -moz-column-gap: 2rem;
    column-gap: 2rem;
    border: .0625rem solid #595b5f;
    border-radius: .75rem;
    padding: .75rem;
    -webkit-transition: all .3s;
    transition: all .3s;
}
.item-articles__link::before {
    color: #595b5f;
    font-size: 0.75rem;
    -webkit-transition: color .3s;
    transition: color .3s;
}
._icon-arrow-right:before {
    content: "";
    color: #595b5f;
}

#scrollToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #202020;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: background-color 0.3s, opacity 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#scrollToTop svg {
    width: 24px;
    height: 24px;
}

/* стили страницы всех статей */
.articles-title {
    font-size: 5rem;
    font-weight: 500;
    line-height: 100%;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 2rem;
}
.articles-title span {
    color: #595b5f;
}
.articles-list__container {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 20px 0;
}