.news-main,
.article-main {
    color: #202733;
}

.news-main .site-container,
.article-main > .site-container {
    max-width: 1280px;
}

.news-hero {
    padding-top: 42px;
}

.news-hero__heading {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 25px;
}

.news-hero h1 {
    margin: 0;
    color: #20242c;
    font-size: 50px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: -0.045em;
}

.news-hero p {
    margin: 0;
    max-width: 875px;
    color: #374255;
    font-size: 20px;
    line-height: 1.38;
    font-weight: 520;
}

.news-hero__image {
    height: 400px;
    border-radius: 13px;
    background: url('/theme/img/news/news-layout-source.jpg') center -81px / 1200px auto no-repeat;
}

.news-catalog {
    padding: 80px 0 72px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 34px;
}

.news-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.news-card__image {
    position: relative;
    display: block;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    background-image: url('/theme/img/news/news-layout-source.jpg');
    background-size: 1200px auto;
    background-repeat: no-repeat;
}

.news-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    padding: 2px 6px 1px;
    background: #ffe300;
    color: #071821;
    font-size: 12px;
    line-height: 1;
    font-weight: 720;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.news-card__image .news-label {
    position: absolute;
    top: 17px;
    left: 16px;
}

.news-image--woman { background-position: 0 -561px; }
.news-image--family { background-position: -408px -561px; }
.news-image--realtor { background-position: -816px -561px; }
.news-image--building { background-position: 0 -1094px; }
.news-image--meters { background-position: -408px -1094px; }
.news-image--finance { background-position: -816px -1094px; }
.news-image--city { background-position: 0 -1627px; }
.news-image--phone { background-position: -408px -1627px; }
.news-image--construction { background-position: -816px -1627px; }

.news-card h2 {
    margin: 26px 0 7px;
    color: #242932;
    font-size: 15px;
    line-height: 1.18;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.news-card h2 a {
    text-decoration: underline dotted 1px;
    text-underline-offset: 3px;
}

.news-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #465164;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 390;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card time {
    margin-top: 45px;
    color: #8a97aa;
    font-size: 15px;
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 50px;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 44px;
    border-radius: 8px;
    color: #1f2631;
    font-size: 15px;
    font-weight: 570;
}

.news-pagination a:first-child,
.news-pagination a:nth-last-child(-n+2) {
    border: 1px solid #cbd6e5;
    font-size: 28px;
    font-weight: 350;
}

.news-pagination .is-active {
    background: #d9e3f3;
}

/* Article */
.article-main {
    padding-top: 0;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 28px;
    font-size: 15px;
    font-weight: 500;
}

.article-back span {
    font-size: 23px;
    line-height: 1;
}

.article-header {
    margin-top: 49px;
}

.article-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-top: 21px;
}

.article-title-row h1 {
    margin: 0;
    color: #08222e;
    font-size: 36px;
    line-height: 1.3;
    font-weight: 720;
    letter-spacing: -0.03em;
}

.article-title-row time {
    flex: 0 0 auto;
    padding-bottom: 5px;
    color: #8794a8;
    font-size: 15px;
}

.article-hero {
    width: min(1200px, 100%);
    height: 449px;
    margin: 27px auto 0;
    background: url('/theme/img/news/article-layout-source.jpg') center -265px / 1200px auto no-repeat;
}

.article-content {
    width: min(800px, calc(100% - 32px));
    margin: 70px auto 92px;
    color: #354052;
    font-size: 15px;
    line-height: 1.4;
}

.article-content p {
    margin: 0 0 14px;
}

.article-content h2 {
    margin: 34px 0 13px;
    color: #30394a;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 650;
}

.article-content ul {
    margin: -3px 0 13px;
    padding-left: 23px;
}

.article-content strong {
    font-weight: 680;
}

.article-comment {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 76px;
}

.article-comment label {
    margin-bottom: 22px;
    font-size: 18px;
    font-weight: 650;
}

.article-comment textarea {
    width: 100%;
    height: 108px;
    padding: 18px 19px;
    resize: vertical;
    border: 1px solid #c8d3e0;
    border-radius: 8px;
    color: #30394a;
    font: inherit;
    outline: none;
}

.article-comment button {
    height: 44px;
    margin-top: 24px;
    padding: 0 17px;
    border: 0;
    border-radius: 8px;
    background: #d9e3f3;
    color: #273242;
    font: 600 15px var(--nb-font);
}

@media (max-width: 991.98px) {
    .news-hero__heading { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-card__image { background-size: 1200px auto; }
}

@media (max-width: 767.98px) {
    .news-hero { padding-top: 28px; }
    .news-hero h1 { font-size: 38px; }
    .news-hero p { font-size: 16px; }
    .news-hero__image { height: 250px; background-position: center -81px; }
    .news-catalog { padding-top: 48px; }
    .news-grid { grid-template-columns: 1fr; row-gap: 42px; }
    .news-card__image { width: 100%; }
    .news-card time { margin-top: 22px; }
    .article-header { margin-top: 32px; }
    .article-title-row { align-items: flex-start; flex-direction: column; }
    .article-title-row h1 { font-size: 28px; }
    .article-title-row h1 br { display: none; }
    .article-hero { height: 320px; background-position: center -265px; }
    .article-content { margin-top: 44px; }
    .article-comment { margin-top: 50px; }
}
