
/* =========================================
   NEWS ARCHIVE — список всех новостей
   ========================================= */

.news-archive {
    background: var(--cream, #faf9f5);
    color: var(--text, #202522);
}

.news-archive__section {
    padding: 64px 0 88px;
}

.news-archive__header {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.news-archive__eyebrow {
    margin: 0 0 12px;
    color: var(--green, #175b3f);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.news-archive__title {
    margin: 0;
    color: var(--green, #175b3f);
    font-family: inherit;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.15;
}

.news-archive__intro {
    max-width: 560px;
    margin: 16px auto 0;
    color: var(--muted, #6d746f);
    font-size: 16px;
    line-height: 1.7;
}

.news-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
}

.news-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line, #d9ddd8);
    border-radius: 10px;
    background: var(--white, #fff);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgb(32 37 34 / 8%);
}

.news-card__image {
    position: relative;
    display: flex;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    align-items: center;
    justify-content: center;
    background: #eeeee8;
    color: var(--green, #175b3f);
    text-decoration: none;
}

.news-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card__img {
    transform: scale(1.035);
}

.news-card__placeholder {
    padding: 20px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

.news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 22px 24px;
}

.news-card__date {
    margin-bottom: 10px;
    color: var(--muted, #6d746f);
    font-size: 13px;
    line-height: 1.5;
}

.news-card__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.news-card__title a {
    color: var(--text, #202522);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card__title a:hover {
    color: var(--green, #175b3f);
}

.news-card__excerpt {
    margin: 0 0 20px;
    color: var(--muted, #6d746f);
    font-size: 14px;
    line-height: 1.75;
}

.news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--green, #175b3f);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.news-card__link span {
    transition: transform 0.2s ease;
}

.news-card__link:hover span {
    transform: translateX(4px);
}

.news-archive__pagination {
    margin-top: 44px;
}

.news-archive__pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-archive__pagination .page-numbers li {
    margin: 0;
}

.news-archive__pagination .page-numbers a,
.news-archive__pagination .page-numbers span {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--line, #d9ddd8);
    border-radius: 6px;
    background: var(--white, #fff);
    color: var(--text, #202522);
    font-size: 14px;
    text-decoration: none;
}

.news-archive__pagination .page-numbers a:hover,
.news-archive__pagination .page-numbers .current {
    border-color: var(--green, #175b3f);
    background: var(--green, #175b3f);
    color: #fff;
}

.news-archive__empty {
    padding: 48px 24px;
    border: 1px solid var(--line, #d9ddd8);
    border-radius: 10px;
    background: var(--white, #fff);
    text-align: center;
}

.news-archive__empty h2 {
    margin: 0 0 10px;
    color: var(--green, #175b3f);
    font-size: 24px;
}

.news-archive__empty p {
    margin: 0;
    color: var(--muted, #6d746f);
    line-height: 1.7;
}


/* =========================================
   SINGLE NEWS — отдельная новость
   ========================================= */

.news-article {
    padding: 34px 0 80px;
    background: var(--cream, #faf9f5);
    color: var(--text, #202522);
}

.news-article__content {
    max-width: 900px;
    margin: 0 auto;
}

.news-article__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    color: var(--muted, #6d746f);
    font-size: 13px;
    line-height: 1.6;
}

.news-article__breadcrumb a {
    color: var(--green, #175b3f);
    text-decoration: none;
}

.news-article__breadcrumb a:hover {
    text-decoration: underline;
}

.news-article__header {
    max-width: 800px;
    margin: 0 auto 30px;
}

.news-article__date {
    display: block;
    margin-bottom: 14px;
    color: var(--muted, #6d746f);
    font-size: 14px;
}

.news-article__title {
    margin: 0;
    color: var(--green, #175b3f);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.news-article__excerpt {
    margin: 20px 0 0;
    color: var(--muted, #6d746f);
    font-size: 18px;
    line-height: 1.75;
}

.news-article__cover {
    overflow: hidden;
    margin: 0 0 38px;
    border-radius: 10px;
    background: #eeeee8;
}

.news-article__cover-img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.news-article__body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.news-article__body > *:first-child {
    margin-top: 0;
}

.news-article__body p {
    margin: 0 0 22px;
}

.news-article__body h2 {
    margin: 38px 0 16px;
    color: var(--green, #175b3f);
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.35;
}

.news-article__body h3 {
    margin: 30px 0 12px;
    color: var(--green, #175b3f);
    font-size: 21px;
    line-height: 1.4;
}

.news-article__body ul,
.news-article__body ol {
    margin: 0 0 24px;
    padding-left: 26px;
}

.news-article__body li {
    margin-bottom: 8px;
}

.news-article__body a {
    color: var(--green, #175b3f);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.news-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-article__body figure {
    max-width: 100%;
    margin: 28px 0;
}

.news-article__body figcaption {
    margin-top: 8px;
    color: var(--muted, #6d746f);
    font-size: 13px;
    line-height: 1.6;
}

.news-article__body blockquote {
    margin: 28px 0;
    padding: 8px 0 8px 22px;
    border-left: 3px solid var(--green, #175b3f);
    color: var(--muted, #6d746f);
}

.news-article__pages {
    margin-top: 28px;
}

.news-article__footer {
    max-width: 760px;
    margin: 42px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--line, #d9ddd8);
}

.news-article__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green, #175b3f);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.news-article__back:hover {
    text-decoration: underline;
}

.news-article__empty {
    max-width: 760px;
    margin: 40px auto;
}

.news-article__empty h1 {
    color: var(--green, #175b3f);
}

.news-article__empty a {
    color: var(--green, #175b3f);
}


/* =========================================
   NEWS — адаптивность
   ========================================= */

@media (max-width: 900px) {
    .news-archive__section {
        padding: 48px 0 64px;
    }

    .news-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .news-card__body {
        padding: 20px;
    }

    .news-article {
        padding-bottom: 60px;
    }
}

@media (max-width: 560px) {
    .news-archive__section {
        padding: 34px 0 48px;
    }

    .news-archive__header {
        margin-bottom: 26px;
        text-align: left;
    }

    .news-archive__intro {
        margin-top: 12px;
        font-size: 15px;
    }

    .news-archive__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .news-card {
        border-radius: 8px;
    }

    .news-card__image {
        aspect-ratio: 16 / 9;
    }

    .news-card__body {
        padding: 18px;
    }

    .news-card__title {
        font-size: 19px;
    }

    .news-archive__pagination {
        margin-top: 30px;
    }

    .news-archive__pagination .page-numbers {
        gap: 5px;
    }

    .news-archive__pagination .page-numbers a,
    .news-archive__pagination .page-numbers span {
        min-width: 38px;
        min-height: 38px;
        padding: 7px 9px;
    }

    .news-article {
        padding: 24px 0 44px;
    }

    .news-article__breadcrumb {
        gap: 7px;
        margin-bottom: 24px;
        font-size: 12px;
    }

    .news-article__header {
        margin-bottom: 24px;
    }

    .news-article__title {
        font-size: 30px;
    }

    .news-article__excerpt {
        font-size: 16px;
    }

    .news-article__cover {
        margin-bottom: 26px;
        border-radius: 7px;
    }

    .news-article__body {
        font-size: 16px;
        line-height: 1.8;
    }

    .news-article__body h2 {
        margin-top: 30px;
    }

    .news-article__footer {
        margin-top: 32px;
    }
}

/* Кнопка возврата к списку новостей */
.news-article__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--white, #fff);
    color: var(--green, #175b3f);
    border: 1px solid var(--green, #175b3f);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.news-article__back:hover {
    background: var(--green, #175b3f);
    color: var(--white, #fff);
}

.news-article__back:focus-visible {
    outline: 2px solid var(--green, #175b3f);
    outline-offset: 3px;
}


/* Логотип-заглушка для новостей */
.news-card__placeholder-logo {
    display: block;
    width: 100%;
    height: 100%;
    padding: 18px;
    box-sizing: border-box;
    object-fit: contain;
}


/* Логотип-заглушка на странице отдельной новости */
.news-article__cover--placeholder {
    background: var(--cream, #faf9f5);
}

.news-article__placeholder-logo {
    display: block;
    width: 100%;
    height: 300px;
    padding: 24px;
    box-sizing: border-box;
    object-fit: contain;
}
/* =========================================
   Страница планов развития
   ========================================= */

.development-plans-page {
    padding: 34px 0 80px;
    background: var(--cream, #faf9f5);
    color: var(--text, #202522);
}

.development-plans-heading {
    max-width: 900px;
    margin: 0 auto 48px;
}

.development-plans-heading h1 {
    margin: 0 0 20px;
    color: var(--green, #175b3f);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.development-plans-heading p {
    margin: 0;
    color: var(--muted, #6d746f);
    font-size: clamp(23px, 2.8vw, 30px);
    line-height: 1.4;
    font-weight: 500;
}

.development-plans-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.development-plan {
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line, #d9ddd8);
}

.development-plan h2 {
    margin: 0 0 24px;
    color: var(--green, #175b3f);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.5vw, 28px);
    font-weight: 400;
    line-height: 1.35;
}

.development-plan__image {
    width: 100%;
    margin-bottom: 20px;
}

.development-plan__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.development-plan__content {
    color: var(--text, #202522);
    font-size: 17px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.development-plan__content p {
    margin: 0 0 22px;
}

.development-plans-back {
    max-width: 900px;
    margin: 36px auto 0;
}

.development-plans-back a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid var(--green, #175b3f);
    border-radius: 6px;
    background: var(--green, #175b3f);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.development-plans-back a:hover {
    background: transparent;
    color: var(--green, #175b3f);
}

@media (max-width: 768px) {
    .development-plans-page {
        padding: 26px 18px 56px;
    }

    .development-plans-heading {
        margin-bottom: 32px;
    }

    .development-plans-heading h1 {
        font-size: 34px;
    }

    .development-plans-heading p {
        font-size: 23px;
    }

    .development-plans-list {
        gap: 32px;
    }

    .development-plan {
        padding-bottom: 28px;
    }

    .development-plan h2 {
        font-size: 23px;
    }

    .development-plan__content {
        font-size: 16px;
        line-height: 1.75;
    }
}

/* =========================================
   История поселка
   ========================================= */

.history-page {
    padding: 34px 0 80px;
    background: var(--cream, #faf9f5);
    color: var(--text, #202522);
}

.history-heading {
    max-width: 1000px;
    margin: 0 auto 42px;
}

.history-heading h1 {
    margin: 0;
    color: var(--green, #175b3f);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.history-year {
    max-width: 1000px;
    margin: 0 auto 64px;
}

.history-year__title {
    margin: 0 0 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line, #d9ddd8);
    color: var(--green, #175b3f);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.5vw, 40px);
    font-weight: 400;
    line-height: 1.2;
}

.history-entry {
    margin: 0 0 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line, #d9ddd8);
}

.history-entry h3 {
    margin: 0 0 16px;
    color: var(--green, #175b3f);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(21px, 2.4vw, 27px);
    font-weight: 400;
    line-height: 1.4;
}

.history-entry p {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.8;
}

.history-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #eeeee8;
}

.history-photo img,
.history-gallery img,
.history-layout img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.history-photo--wide {
    width: 100%;
    height: clamp(260px, 48vw, 480px);
}

.history-photo--wide img {
    object-position: center;
}

.history-photo--single {
    width: min(100%, 620px);
    height: 440px;
}

.history-photo--small {
    width: min(100%, 320px);
    height: 300px;
}

.history-gallery {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.history-gallery img {
    height: 260px;
}

.history-gallery--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-gallery--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-gallery--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-gallery--five {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.history-gallery--five img {
    height: 220px;
}

.history-layout {
    display: grid;
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.history-layout--entrance {
    grid-template-columns: 1fr .75fr;
}

.history-layout--sunny {
    grid-template-columns: .8fr 1.2fr;
}

.history-stack {
    display: grid;
    gap: 14px;
}

.history-caption {
    margin-top: 8px !important;
    color: var(--muted, #6d746f);
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.history-back {
    max-width: 1000px;
    margin: 36px auto 0;
}

.history-back a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid var(--green, #175b3f);
    border-radius: 6px;
    background: var(--green, #175b3f);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.history-back a:hover {
    background: transparent;
    color: var(--green, #175b3f);
}

@media (max-width: 768px) {
    .history-page {
        padding: 26px 18px 56px;
    }

    .history-heading {
        margin-bottom: 32px;
    }

    .history-year {
        margin-bottom: 48px;
    }

    .history-entry {
        margin-bottom: 34px;
        padding-bottom: 28px;
    }

    .history-entry p {
        font-size: 16px;
        line-height: 1.75;
    }

    .history-gallery {
        gap: 10px;
    }

    .history-gallery img {
        height: 190px;
    }

    .history-gallery--five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-gallery--five img {
        height: 220px;
    }

    .history-layout--entrance,
    .history-layout--sunny {
        grid-template-columns: 1fr;
    }

    .history-photo--single {
        height: 360px;
    }

    .history-photo--small {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .history-gallery--three,
    .history-gallery--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-gallery img {
        height: 160px;
    }

    .history-gallery--five img {
        height: 200px;
    }

    .history-photo--wide {
        height: 250px;
    }
}


/* =========================================
   Документация
   ========================================= */

.documentation-archive {
    padding: 34px 0 80px;
    background: var(--cream, #faf9f5);
    color: var(--text, #202522);
}

.documentation-archive__header {
    max-width: 1000px;
    margin: 0 auto 44px;
}

.documentation-archive__eyebrow {
    margin: 0 0 14px;
    color: var(--muted, #6d746f);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
}

.documentation-archive__title {
    margin: 0 0 18px;
    color: var(--green, #175b3f);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.documentation-archive__intro {
    max-width: 700px;
    margin: 0;
    color: var(--muted, #6d746f);
    font-size: 17px;
    line-height: 1.7;
}

.documentation-sections {
    max-width: 1000px;
    margin: 0 auto;
}

.documentation-category {
    margin: 0 0 28px;
    padding: 28px 30px;
    border: 1px solid var(--line, #d9ddd8);
    border-radius: 10px;
    background: rgba(255, 255, 255, .45);
}

.documentation-category__title {
    margin: 0 0 20px;
    color: var(--green, #175b3f);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.6vw, 29px);
    font-weight: 400;
    line-height: 1.35;
}

.documentation-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.documentation-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-top: 1px solid var(--line, #d9ddd8);
}

.documentation-list__name {
    min-width: 0;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.documentation-list__download {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    color: var(--green, #175b3f);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.documentation-list__download:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.documentation-list__missing,
.documentation-category__empty {
    color: var(--muted, #6d746f);
    font-size: 14px;
    line-height: 1.6;
}

.documentation-category__status {
    display: inline-block;
    margin: 0;
    padding: 7px 12px;
    border-radius: 4px;
    background: #eeeee8;
    color: var(--muted, #6d746f);
    font-size: 14px;
}

.documentation-archive__back {
    max-width: 1000px;
    margin: 36px auto 0;
}

.documentation-archive__back a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid var(--green, #175b3f);
    border-radius: 6px;
    background: var(--green, #175b3f);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.documentation-archive__back a:hover {
    background: transparent;
    color: var(--green, #175b3f);
}

@media (max-width: 768px) {
    .documentation-archive {
        padding: 26px 18px 56px;
    }

    .documentation-archive__header {
        margin-bottom: 32px;
    }

    .documentation-category {
        margin-bottom: 18px;
        padding: 22px 20px;
    }

    .documentation-list__item {
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .documentation-list__item {
        flex-direction: column;
        gap: 8px;
    }

    .documentation-category {
        padding: 20px 16px;
    }
}
