:root {
    --green: #008765;
    --green-dark: #005c45;
    --ink: #0d1726;
    --muted: #667085;
    --line: #e5e7eb;
    --soft: #f5f7f8;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: var(--site-font), "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(100% - 32px, 1360px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 78px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-dark);
    font-weight: 800;
}

.brand-mark {
    width: 58px;
    height: 66px;
    object-fit: contain;
}

.header-contact {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.phone,
.email {
    color: var(--muted);
    font-size: 14px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 15px;
    font-weight: 700;
}

.main-nav a {
    border-top: 3px solid transparent;
    padding: 28px 0 25px;
}

.main-nav a.is-active,
.main-nav a:hover {
    color: var(--green);
    border-top-color: var(--green);
}

.socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.socials a {
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e7e9ee;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 3px 8px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    overflow: hidden;
    transition:
        background 0.18s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.socials a::before {
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    background: currentColor;
    content: "";
    opacity: 0;
    transform: scale(0.75);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.socials svg {
    position: relative;
    z-index: 1;
    width: 25px;
    height: 25px;
    fill: currentColor;
    transition:
        filter 0.2s ease,
        transform 0.2s ease;
}

.socials a[aria-label="Instagram"] svg {
    fill: none;
    stroke: url("#instagram-gradient");
    stroke-width: 2;
}

.socials a[aria-label="Facebook"] {
    color: #1877f2;
}

.socials a[aria-label="Instagram"] {
    color: #c13584;
}

.socials .youtube-social {
    color: #ff0033;
}

.socials .generic-social {
    color: var(--green);
}

.socials .youtube-social .youtube-shape {
    fill: currentColor;
}

.socials .youtube-social .youtube-play {
    fill: #ffffff;
}

.socials a:hover {
    background: #ffffff;
    border-color: #dfe3ea;
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-3px);
}

.socials a:hover::before {
    opacity: 0.06;
    transform: scale(1);
}

.socials a:hover svg {
    filter: saturate(1.18);
    transform: scale(1.08);
}

.socials a:active {
    transform: translateY(-1px) scale(0.98);
}

.contact-hero {
    padding: 72px 0 64px;
    background:
        linear-gradient(90deg, rgba(4, 27, 22, 0.78), rgba(4, 27, 22, 0.42)),
        url("../img/bandza-center.png") center / cover;
    color: #ffffff;
}

.contact-hero-inner {
    max-width: 760px;
}

.contact-hero span {
    color: #70f0c6;
    font-weight: 900;
}

.contact-hero h1 {
    margin: 8px 0 14px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1;
}

.contact-hero p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.contact-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

.contact-card span {
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.contact-card h2 {
    margin: 10px 0 12px;
    font-size: 24px;
}

.contact-card h2 a {
    color: var(--ink);
}

.contact-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.contact-social-links a {
    padding: 10px 14px;
    border: 1px solid rgba(0, 135, 101, 0.22);
    border-radius: 999px;
    background: rgba(0, 135, 101, 0.08);
    color: var(--green);
    font-weight: 900;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-size: 22px;
}

.hero {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42)),
        var(--home-hero-background, url("../img/martvili-canyon.jpg")) center / cover,
        linear-gradient(120deg, #315d4f, #c68a37);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    min-height: 470px;
    gap: 48px;
    padding: 82px 0 58px;
}

.hero-copy {
    max-width: 620px;
    color: var(--white);
}

.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(48px, 7vw, 76px);
    line-height: 1;
}

.hero-subtitle {
    margin: 0 0 24px;
    font-size: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.button-primary {
    color: var(--white);
    background: var(--green);
}

.button-muted {
    color: var(--white);
    background: rgba(255, 255, 255, 0.24);
}

.hero-widgets {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.live-card,
.weather-card {
    min-height: 192px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.live-card {
    width: 210px;
}

.weather-icon {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.weather-icon-home {
    width: 44px;
    height: 44px;
    margin: 2px auto 3px;
}

.weather-icon-fallback {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e4f1eb, #b9d2c6);
}

.live-card {
    display: flex;
    flex-direction: column;
}

.weather-card {
    display: grid;
    width: 294px;
    align-content: start;
    color: var(--ink);
}

.live-card > span,
.weather-card-title {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.camera-preview {
    height: 72px;
    margin-bottom: 10px;
    border-radius: 6px;
    background:
        linear-gradient(rgba(0, 135, 101, 0.1), rgba(0, 135, 101, 0.1)),
        url("../img/samegrelo-village.jpg") center / cover;
}

.live-card a,
.camera-open {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 9px;
    border: 0;
    border-radius: 6px;
    color: var(--white);
    background: var(--green);
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
}

.live-card strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.35;
}

.weather-card-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.weather-card-meta strong {
    font-size: 17px;
}

.weather-card-meta time,
.weather-card-location {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.weather-card-periods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(71, 84, 103, 0.16);
    border-radius: 7px;
}

.weather-card-period {
    min-width: 0;
    padding: 9px 8px 10px;
    text-align: center;
}

.weather-card-period + .weather-card-period {
    border-left: 1px solid rgba(71, 84, 103, 0.16);
}

.weather-card-period-day {
    background: linear-gradient(180deg, #fff8dd, #fffdf6);
}

.weather-card-period-night {
    background: linear-gradient(180deg, #eef4ff, #f8faff);
}

.weather-card-period span {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.weather-card-period strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.weather-card-period small {
    display: -webkit-box;
    min-height: 30px;
    margin-top: 5px;
    overflow: hidden;
    color: #475467;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.weather-card-location {
    display: block;
    margin-top: 8px;
    text-align: center;
}

.weather-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 9px;
}

.weather-card-actions a,
.weather-card-fallback-link {
    display: grid;
    min-height: 34px;
    padding: 7px 8px;
    place-items: center;
    border-radius: 6px;
    color: var(--white);
    background: var(--green);
    font-size: 10px;
    font-weight: 900;
    text-align: center;
}

.weather-card-actions a:last-child {
    color: var(--green);
    background: #e7f5ef;
}

.weather-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-card:hover,
.weather-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.camera-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.camera-modal.is-open {
    display: flex;
}

.camera-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.72);
}

.camera-dialog {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: min(100%, 980px);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.camera-dialog header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.camera-dialog header span {
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.camera-dialog h2 {
    margin: 2px 0 0;
    font-size: 20px;
}

.camera-dialog header button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.camera-dialog iframe,
.camera-dialog video {
    display: block;
    width: 100%;
    height: min(68vh, 640px);
    border: 0;
    background: #101828;
}

.camera-dialog [hidden] {
    display: none;
}

.camera-dialog p {
    margin: 0;
    padding: 12px 18px;
    color: var(--muted);
    font-size: 14px;
}

.section {
    padding: 56px 0;
}

.section-muted {
    background: var(--soft);
}

.section-heading,
.page-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-heading h2,
.page-title h1 {
    margin: 0;
    font-size: 30px;
}

.page-title {
    border-bottom: 2px solid var(--ink);
    padding-bottom: 12px;
}

.section-heading h2 {
    border-left: 4px solid var(--green);
    padding-left: 12px;
}

.section-heading a {
    color: var(--green);
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.home-sidebar {
    display: grid;
    align-self: start;
    gap: 24px;
}

.card-grid {
    display: grid;
    gap: 26px;
}

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

.content-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.card-media {
    position: relative;
    display: block;
    height: 220px;
    background: #d9dee5;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.date-badge {
    position: absolute;
    left: 20px;
    bottom: -18px;
    display: grid;
    width: 64px;
    min-height: 78px;
    place-items: center;
    padding: 8px;
    border-radius: 6px;
    color: var(--white);
    background: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.date-badge strong {
    font-size: 24px;
    line-height: 1;
}

.card-body {
    padding: 34px 24px 24px;
}

.card-body h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.card-body p {
    min-height: 52px;
    margin: 0 0 20px;
    color: var(--muted);
}

.read-more {
    color: var(--green);
    font-weight: 900;
}

.projects-board-page {
    background:
        linear-gradient(180deg, #f8fbfa 0, #ffffff 340px);
}

.projects-board-head {
    display: grid;
    max-width: 820px;
    gap: 12px;
    margin-bottom: 28px;
}

.projects-board-head > span {
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.projects-board-head h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
}

.projects-board-head p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.projects-board-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.projects-board-stats article {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

.projects-board-stats strong {
    display: block;
    color: #0b2239;
    font-size: 28px;
    line-height: 1;
}

.projects-board-stats span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.news-controls {
    margin: 0 0 28px;
}

.news-controls .projects-search-filter {
    max-width: none;
}

.news-controls .news-search-filter {
    grid-template-columns: minmax(0, 760px) auto;
    align-items: end;
    column-gap: 24px;
}

.news-controls .projects-search-field,
.news-controls .news-filter-chips,
.news-controls .news-sort-form {
    grid-column: 1;
}

.news-controls [data-news-sort-toggle] {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
}

.projects-sort-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 24px;
    margin-bottom: 28px;
}

.projects-sort-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.projects-search-filter {
    display: grid;
    min-width: 0;
    gap: 9px;
}

.projects-search-filter .projects-sort-form {
    width: min(100%, 600px);
    margin-top: 4px;
}

.projects-search-field {
    position: relative;
    display: grid;
    gap: 7px;
}

.projects-sort-form label {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.projects-sort-form label span,
.projects-search-field > span,
.projects-sort-toggle span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.projects-search-field i {
    position: absolute;
    left: 14px;
    bottom: 14px;
    width: 16px;
    height: 16px;
    border: 2px solid #008765;
    border-radius: 50%;
    pointer-events: none;
}

.projects-search-field i::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 8px;
    height: 2px;
    border-radius: 99px;
    background: #008765;
    transform: rotate(45deg);
}

.projects-search-field input {
    min-height: 46px;
    padding: 10px 14px 10px 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #0b2239;
    background: #ffffff;
    font: inherit;
    font-weight: 800;
    outline: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.projects-search-field input:focus {
    border-color: rgba(0, 135, 101, 0.58);
    box-shadow: 0 0 0 4px rgba(0, 135, 101, 0.1);
}

.projects-status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.projects-status-chips button {
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid #d9e3df;
    border-radius: 999px;
    color: #006d52;
    background: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.projects-status-chips button:hover,
.projects-status-chips button.is-active {
    transform: translateY(-1px);
    border-color: rgba(0, 135, 101, 0.48);
    color: #ffffff;
    background: #008765;
    box-shadow: 0 10px 20px rgba(0, 135, 101, 0.16);
}

.projects-sort-form select {
    min-height: 46px;
    padding: 10px 38px 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #0b2239;
    background: #ffffff;
    font: inherit;
    font-weight: 800;
}

.projects-sort-form button,
.projects-sort-toggle {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.projects-sort-form button {
    padding: 10px 18px;
    border: 1px solid var(--green);
    color: #ffffff;
    background: var(--green);
    cursor: pointer;
}

.projects-sort-toggle {
    justify-self: end;
    overflow: hidden;
    flex-direction: row;
    gap: 12px;
    width: auto;
    min-width: 0;
    min-height: 46px;
    margin-top: 0;
    padding: 5px 12px;
    border: 1px solid #d9e3df;
    color: #006d52;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.projects-sort-toggle > span {
    color: #006d52;
    font-size: 15px;
    font-weight: 900;
    order: -1;
}

.projects-sort-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 135, 101, 0.48);
    box-shadow: 0 16px 30px rgba(16, 24, 40, 0.12);
}

.projects-sort-toggle i {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 50%;
    color: #007a5b;
    background: #e9f5f1;
}

.projects-sort-toggle .sort-arrow {
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    border-color: currentColor;
    border-style: solid;
}

.projects-sort-toggle .sort-arrow-up {
    top: 9px;
    border-width: 2px 0 0 2px;
    transform: translateX(-50%) rotate(45deg);
}

.projects-sort-toggle .sort-arrow-down {
    bottom: 9px;
    border-width: 0 2px 2px 0;
    transform: translateX(-50%) rotate(45deg);
}

.projects-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    overflow: hidden;
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.project-card[hidden] {
    display: none;
}

.content-card[hidden] {
    display: none;
}

.projects-filter-empty {
    margin: 26px 0 0;
    padding: 22px;
    border: 1px dashed rgba(0, 135, 101, 0.34);
    border-radius: 8px;
    color: #006d52;
    background: #f4fbf8;
    font-weight: 900;
    text-align: center;
}

.project-card-media {
    position: relative;
    height: 325px;
    background: #e9f2ef;
}

.project-card-media img,
.project-card-placeholder {
    width: 100%;
    height: 100%;
}

.project-card-media img {
    display: block;
    object-fit: contain;
}

.project-card-placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 18% 20%, rgba(0, 135, 101, 0.24), transparent 28%),
        linear-gradient(135deg, #e9f2ef, #d7e8e2);
}

.project-card-placeholder span {
    width: 54px;
    height: 54px;
    border: 3px solid rgba(0, 135, 101, 0.42);
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent 45%, rgba(0, 135, 101, 0.35) 45%, rgba(0, 135, 101, 0.35) 55%, transparent 55%),
        linear-gradient(transparent 45%, rgba(0, 135, 101, 0.35) 45%, rgba(0, 135, 101, 0.35) 55%, transparent 55%);
}

.project-status {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    color: #0b2239;
    background: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.16);
}

.project-status.is-active {
    color: #006d52;
}

.project-status.is-completed {
    color: #155e75;
}

.project-status.is-paused {
    color: #92400e;
}

.project-card-body {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.project-card h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.35;
}

.project-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.project-meta-grid div {
    min-width: 0;
    padding: 12px;
    border: 1px solid #dce7e3;
    border-radius: 8px;
    background: #f8fbfa;
}

.project-meta-grid span,
.project-progress span {
    display: block;
    color: #66756f;
    font-size: 12px;
    font-weight: 900;
}

.project-meta-grid strong {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 4px;
    color: #0b2239;
    font-size: 14px;
}

.project-progress {
    display: grid;
    gap: 8px;
}

.project-progress > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.project-progress strong {
    color: var(--green);
}

.project-progress i {
    overflow: hidden;
    display: block;
    height: 10px;
    border-radius: 999px;
    background: #e4ece9;
}

.project-progress i span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #008765, #25b894);
}

.project-card-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    justify-self: start;
    padding: 9px 16px;
    border: 1px solid rgba(0, 135, 101, 0.24);
    border-radius: 8px;
    color: var(--green);
    background: rgba(0, 135, 101, 0.08);
    font-weight: 900;
    text-decoration: none;
}

.project-card-link:hover {
    border-color: var(--green);
    background: rgba(0, 135, 101, 0.14);
}

.news-feed-page {
    max-width: 980px;
}

.news-feed-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.news-feed-title h1 {
    margin-bottom: 8px;
}

.news-feed-title p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.news-sort-button {
    display: inline-flex;
    min-height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid rgba(0, 135, 101, 0.25);
    border-radius: 8px;
    color: #006d52;
    background: rgba(0, 135, 101, 0.08);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.news-sort-button:hover {
    transform: translateY(-2px);
    border-color: #008765;
    background: rgba(0, 135, 101, 0.14);
}

.news-feed {
    display: grid;
    gap: 30px;
    margin-top: 34px;
}

.news-feed-item {
    display: grid;
    gap: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.news-feed-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.news-feed-date {
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.news-feed-item h2 {
    max-width: 760px;
    margin: 6px 0 0;
    font-size: 28px;
    line-height: 1.35;
}

.news-feed-image {
    width: 100%;
    max-height: 420px;
    border-radius: 8px;
    object-fit: cover;
}

.news-feed-body {
    max-width: 820px;
    color: #40554d;
    font-size: 17px;
    line-height: 1.85;
}

.news-feed-summary {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.news-feed-section {
    display: grid;
    gap: 14px;
    padding-top: 8px;
}

.news-feed-section h3 {
    margin: 0;
    color: #0b2239;
    font-size: 20px;
}

.news-feed-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.news-feed-video-grid video {
    display: block;
    width: 100%;
    border-radius: 8px;
    background: #101828;
    aspect-ratio: 16 / 9;
}

.news-feed-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.news-feed-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #eef4f2;
}

.news-feed-gallery img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform 180ms ease;
}

.news-feed-gallery a:hover img {
    transform: scale(1.04);
}

.history-article-page {
    background: #f7faf9;
}

.about-page-intro {
    position: relative;
    overflow: hidden;
    padding: 72px 0 58px;
    background:
        linear-gradient(90deg, rgba(5, 36, 31, 0.88), rgba(5, 36, 31, 0.55)),
        linear-gradient(180deg, rgba(5, 36, 31, 0.08), rgba(5, 36, 31, 0.72)),
        url("../img/samegrelo-village.jpg") center / cover;
    border-bottom: 1px solid var(--line);
}

.about-page-intro-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    max-width: 860px;
}

.about-page-intro-inner span {
    color: #bdf3df;
    font-size: 14px;
    font-weight: 900;
}

.about-page-intro-inner h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.08;
}

.about-page-intro-inner p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
    line-height: 1.8;
}

.about-stats-band {
    position: relative;
    z-index: 1;
}

.about-article-layout {
    padding-top: 58px;
}

.history-article-hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    color: #ffffff;
}

.history-article-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-article-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 35, 29, 0.82), rgba(6, 35, 29, 0.42)),
        linear-gradient(180deg, rgba(6, 35, 29, 0.18), rgba(6, 35, 29, 0.78));
}

.history-article-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    max-width: 880px;
    min-height: 430px;
    align-content: center;
    gap: 14px;
    padding-top: 52px;
    padding-bottom: 52px;
}

.history-article-hero-content span {
    color: #bceedd;
    font-size: 14px;
    font-weight: 900;
}

.history-article-hero-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
}

.history-article-hero-content p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.75;
}

.history-article-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 850px);
    gap: 56px;
    align-items: start;
    padding-top: 72px;
    padding-bottom: 88px;
}

.history-article-sidebar {
    position: sticky;
    top: 96px;
    overflow-y: hidden;
    display: grid;
    gap: 18px;
    max-height: calc(100vh - 118px);
    padding-right: 4px;
    scrollbar-color: rgba(0, 135, 101, 0.55) rgba(0, 135, 101, 0.08);
    scrollbar-width: thin;
}

.history-article-sidebar:hover,
.history-article-sidebar:focus-within {
    overflow-y: auto;
}

.history-article-sidebar::-webkit-scrollbar {
    width: 7px;
}

.history-article-sidebar::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(0, 135, 101, 0.08);
}

.history-article-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(0, 135, 101, 0.55);
}

.history-side-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.07);
}

.history-side-panel > strong {
    color: #0b2239;
    font-size: 16px;
}

.history-side-panel nav {
    display: grid;
    gap: 8px;
}

.history-side-panel nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #40554d;
    background: #f4f8f6;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    text-decoration: none;
}

.history-side-panel nav a:hover {
    color: #006d52;
    background: rgba(0, 135, 101, 0.1);
}

.history-sort-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(0, 135, 101, 0.24);
    border-radius: 8px;
    color: #006d52;
    background: rgba(0, 135, 101, 0.08);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.history-article-content {
    display: grid;
    gap: 30px;
}

.history-story-section {
    scroll-margin-top: 92px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.07);
}

.history-story-section header {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.history-story-section header span {
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.history-story-section h2 {
    max-width: 760px;
    margin: 0;
    color: #0b2239;
    font-size: 34px;
    line-height: 1.25;
}

.history-story-image {
    display: block;
    width: 100%;
    max-height: 420px;
    border-radius: 8px;
    object-fit: cover;
}

.history-story-image-link {
    overflow: hidden;
    display: block;
    margin-bottom: 24px;
    border-radius: 8px;
    cursor: zoom-in;
}

.history-story-image-link img,
.history-story-gallery img {
    transition: transform 0.22s ease;
}

.history-story-image-link:hover img,
.history-story-gallery a:hover img {
    transform: scale(1.03);
}

.history-story-body,
.history-story-summary {
    max-width: 760px;
    color: #40554d;
    font-size: 18px;
    line-height: 1.95;
}

.history-story-summary {
    margin: 0;
}

.about-story-summary + .about-story-body {
    margin-top: 18px;
}

.about-story-section .history-story-media {
    max-width: 820px;
}

.about-facts-section .about-story-summary {
    max-width: 820px;
    margin-bottom: 24px;
}

.about-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.about-facts-grid article {
    min-width: 0;
    padding: 18px;
    border: 1px solid #dce7e3;
    border-radius: 8px;
    background: #f7fbf9;
}

.about-facts-grid article span {
    display: block;
    margin-bottom: 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
}

.about-facts-grid article strong {
    display: block;
    color: #0b2239;
    font-size: 22px;
    line-height: 1.3;
}

.about-facts-grid article small {
    display: block;
    margin-top: 6px;
    color: #53655f;
    font-size: 15px;
    line-height: 1.55;
}

.about-fact-body {
    margin-top: 10px;
    color: #40554d;
    font-size: 15px;
    line-height: 1.65;
}

.history-story-media {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.history-story-media h3 {
    margin: 0;
    color: #0b2239;
    font-size: 20px;
}

.history-story-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.history-story-video-grid video {
    display: block;
    width: 100%;
    border-radius: 8px;
    background: #101828;
    aspect-ratio: 16 / 9;
}

.history-story-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.history-story-gallery a {
    overflow: hidden;
    display: block;
    border-radius: 8px;
    background: #eef4f2;
    cursor: zoom-in;
}

.history-story-gallery img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.history-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.history-lightbox.is-open {
    display: flex;
}

.history-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 12, 20, 0.82);
    backdrop-filter: blur(8px);
}

.history-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(1120px, 100%);
    height: min(760px, calc(100vh - 56px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #07131f;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.history-lightbox-dialog header,
.history-lightbox-dialog footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    color: #e8f2ee;
    background: rgba(7, 19, 31, 0.92);
}

.history-lightbox-dialog header strong {
    overflow: hidden;
    font-size: 16px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-lightbox-dialog header button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.history-lightbox-stage {
    overflow: hidden;
    display: grid;
    min-height: 0;
    place-items: center;
    padding: 18px 72px;
    cursor: zoom-in;
    touch-action: none;
}

.history-lightbox-stage.is-zoomed {
    cursor: grab;
}

.history-lightbox-stage.is-dragging {
    cursor: grabbing;
}

.history-lightbox-stage img {
    display: block;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    border-radius: 8px;
    object-fit: contain;
    transform:
        translate(
            var(--history-lightbox-translate-x, 0px),
            var(--history-lightbox-translate-y, 0px)
        )
        scale(var(--history-lightbox-scale, 1));
    transform-origin: 0 0;
    user-select: none;
}

.history-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-grid;
    width: 48px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-size: 46px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.history-lightbox-nav:hover {
    background: rgba(0, 135, 101, 0.8);
    transform: translateY(-50%) scale(1.04);
}

.history-lightbox-prev {
    left: 18px;
}

.history-lightbox-next {
    right: 18px;
}

.history-lightbox-dialog footer {
    color: rgba(232, 242, 238, 0.82);
    font-size: 13px;
    font-weight: 800;
}

.side-panel {
    align-self: start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

.side-panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.side-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: #263445;
}

.donation-card {
    overflow: hidden;
    padding: 24px;
    border-radius: 8px;
    color: var(--white);
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #005c45, #008765);
    box-shadow: 0 12px 28px rgba(0, 92, 69, 0.24);
}

.team-card {
    overflow: hidden;
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.14);
}

.team-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.team-card div {
    padding: 18px;
}

.team-card span {
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.team-card h2 {
    margin: 4px 0 8px;
    font-size: 24px;
}

.team-card p {
    margin: 0;
    color: var(--muted);
}

.team-page {
    max-width: 980px;
}

.team-hero-image {
    width: 100%;
    max-height: 520px;
    border-radius: 8px;
    object-fit: cover;
}

.team-content {
    padding: 30px 0 0;
}

.team-content > span {
    color: var(--green);
    font-weight: 900;
}

.team-content h1 {
    margin: 8px 0 14px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
}

.donation-card img {
    width: 100%;
    height: 190px;
    margin: 0 0 18px;
    padding: 4px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.94);
}

.donation-card > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 20px;
}

.donation-card h2 {
    margin: 16px 0 8px;
    font-size: 24px;
}

.donation-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
}

.donation-bank-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.donation-bank-list strong {
    padding: 6px 9px;
    border-radius: 7px;
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.92);
    font-size: 12px;
}

.donation-card button {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: var(--green-dark);
    background: var(--white);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.donation-modal {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.donation-modal.is-open {
    display: flex;
}

.donation-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.74);
}

.donation-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    overflow: hidden;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.donation-dialog header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.donation-dialog header span {
    color: #b7f3de;
    font-size: 13px;
    font-weight: 900;
}

.donation-dialog h2 {
    margin: 3px 0 0;
    font-size: 26px;
}

.donation-dialog header button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.donation-dialog > p {
    margin: 0;
    padding: 20px 22px 0;
    color: #344054;
}

.donation-modal-image {
    width: calc(100% - 44px);
    height: 260px;
    margin: 18px 22px 0;
    padding: 6px;
    border-radius: 8px;
    object-fit: contain;
    background: #f9fafb;
}

.donation-dialog dl {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 20px 22px 24px;
}

.donation-dialog dl div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fafb;
}

.donation-dialog dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.donation-dialog dd {
    margin: 4px 0 0;
    color: var(--ink);
    font-weight: 900;
    word-break: break-word;
}

.donation-dialog dd span,
.donation-dialog dd strong,
.donation-dialog dd small {
    display: block;
}

.donation-dialog dd strong {
    margin-top: 4px;
    color: var(--green-dark);
    font-size: 17px;
}

.donation-dialog dd small {
    margin-top: 5px;
    color: var(--muted);
    font-weight: 700;
}

.stats-band {
    padding: 22px 0 24px;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}

.stat-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--green);
    line-height: 1;
}

.stat-icon svg {
    width: 30px;
    height: 30px;
}

.stat-icon svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-icon svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
}

.stats-grid strong {
    display: block;
    color: var(--ink);
    font-size: 25px;
    line-height: 1.15;
}

.stats-grid > div > span:not(.stat-icon) {
    display: inline;
    color: var(--muted);
    font-size: 14px;
}

.page-main {
    min-height: calc(100vh - 152px);
    padding: 56px 0 70px;
}

.page-main.has-configurable-hero {
    padding-top: 0;
}

.page-configurable-content {
    padding-top: 56px;
}

.detail-layout {
    max-width: 980px;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--green);
    font-weight: 800;
}

.detail-image-link {
    display: block;
    cursor: zoom-in;
}

.detail-image {
    width: 100%;
    max-height: 460px;
    border-radius: 8px;
    object-fit: cover;
}

.detail-content {
    padding: 30px 0;
}

.detail-content h1 {
    margin: 8px 0 12px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
}

.meta,
.lead {
    color: var(--muted);
}

.lead {
    font-size: 20px;
}

.rich-text {
    margin: 28px 0;
    font-size: 18px;
}

.rich-text p,
.rich-text ul,
.rich-text ol,
.rich-text blockquote {
    line-height: 1.8;
}

.rich-text a,
.rich-text .content-link {
    color: #2563eb !important;
    font-weight: 800;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.detail-section {
    margin: 34px 0;
}

.detail-section h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.detail-gallery img {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
}

.detail-gallery a {
    display: block;
    cursor: zoom-in;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 14px;
    border-radius: 8px;
    background: #101828;
    aspect-ratio: 16 / 9;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.detail-video-file {
    display: block;
    width: 100%;
    margin-top: 14px;
    border-radius: 8px;
    background: #101828;
    aspect-ratio: 16 / 9;
}

.village-page {
    overflow: hidden;
    background: #ffffff;
}

.village-page-hero {
    position: relative;
    min-height: 430px;
    color: #ffffff;
    background-position: center;
    background-size: cover;
}

.village-page-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(9, 28, 22, 0.88), rgba(9, 28, 22, 0.22));
}

.history-page-hero {
    background-image: url("../img/bandza-church-angle.jpg");
}

.about-page-hero {
    background-image: url("../img/bandza-center.png");
}

.projects-page-hero {
    background-image: url("../img/village-road.jpg");
}

.village-page-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 430px;
    max-width: 820px;
    align-content: end;
    padding-bottom: 58px;
}

.village-page-hero-content span,
.section-kicker {
    color: #00a77e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.village-page-hero-content span {
    color: #9ff0d7;
}

.village-page-hero-content h1 {
    margin: 8px 0 14px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.05;
}

.village-page-hero-content p {
    max-width: 720px;
    margin: 0;
    font-size: 20px;
    line-height: 1.7;
}

.village-facts-band {
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.village-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.village-facts-grid > div {
    display: grid;
    gap: 2px;
    min-height: 112px;
    align-content: center;
    padding: 20px 30px;
    border-right: 1px solid var(--line);
}

.village-facts-grid > div:first-child {
    border-left: 1px solid var(--line);
}

.village-facts-grid strong {
    font-size: 24px;
    line-height: 1.25;
}

.village-facts-grid span {
    color: var(--muted);
    font-size: 13px;
}

.village-story-intro,
.about-introduction {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 64px;
    align-items: start;
    padding-top: 72px;
    padding-bottom: 72px;
}

.village-story-intro h2,
.about-introduction h2,
.heritage-feature h2,
.about-community-feature h2,
.about-site-purpose h2,
.project-feature-bands h2 {
    margin: 8px 0 20px;
    font-size: 36px;
    line-height: 1.25;
}

.village-rich-text {
    color: #344054;
    font-size: 18px;
    line-height: 1.9;
}

.village-rich-text p:first-child {
    margin-top: 0;
}

.village-location-panel {
    min-height: 320px;
    padding: 32px;
    color: #ffffff;
    background:
        linear-gradient(rgba(0, 74, 55, 0.82), rgba(0, 74, 55, 0.9)),
        url("../img/samegrelo-village.jpg") center / cover;
}

.village-location-panel span {
    color: #a9f3dc;
    font-size: 13px;
    font-weight: 900;
}

.village-location-panel h2 {
    margin: 66px 0 12px;
    font-size: 30px;
}

.village-location-panel p {
    margin: 0;
    line-height: 1.8;
}

.history-timeline-section,
.projects-priorities-section {
    padding: 72px 0;
    background: #f1f6f4;
}

.village-section-heading {
    align-items: end;
    margin-bottom: 34px;
}

.village-section-heading h2 {
    margin: 6px 0 0;
    font-size: 34px;
    line-height: 1.25;
}

.village-section-heading > p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.history-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 2px solid #008765;
}

.history-timeline article {
    position: relative;
    padding: 34px 24px 4px 0;
}

.history-timeline article::before {
    position: absolute;
    top: -8px;
    left: 0;
    width: 14px;
    height: 14px;
    border: 3px solid #f1f6f4;
    border-radius: 50%;
    content: "";
    background: #008765;
}

.history-timeline time {
    color: #008765;
    font-size: 15px;
    font-weight: 900;
}

.history-timeline h3 {
    margin: 10px 0;
    font-size: 20px;
}

.history-timeline p {
    margin: 0;
    color: #52606d;
}

.heritage-feature,
.about-community-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.heritage-feature img,
.about-community-feature img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.heritage-feature p,
.about-community-feature p,
.about-site-purpose p,
.project-feature-bands p {
    color: #475467;
    font-size: 17px;
    line-height: 1.85;
}

.village-dynamic-sections:empty {
    display: none;
}

.village-content-row {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 46px;
    align-items: center;
    padding: 54px 0;
    border-top: 1px solid var(--line);
}

.village-content-row:not(:has(img)) {
    grid-template-columns: 1fr;
}

.village-content-row img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.village-content-row h2 {
    margin: 8px 0 16px;
    font-size: 30px;
}

.village-gallery-section {
    padding-top: 42px;
    padding-bottom: 84px;
}

.village-gallery {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 0.75fr;
    gap: 16px;
}

.village-gallery figure {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    margin: 0;
    background: #17231f;
}

.village-gallery img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.village-gallery figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 36px 18px 16px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.about-introduction {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    align-items: center;
}

.about-introduction > img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.about-landscape-band {
    padding: 64px 0;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(0, 72, 54, 0.96), rgba(0, 104, 78, 0.82)),
        url("../img/samegrelo-village.jpg") center / cover;
}

.about-landscape-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: end;
}

.about-landscape-grid .section-kicker {
    color: #a9f3dc;
}

.about-landscape-grid h2 {
    max-width: 620px;
    margin: 8px 0 0;
    font-size: 36px;
    line-height: 1.25;
}

.about-landscape-grid p {
    margin: 0;
    font-size: 18px;
    line-height: 1.85;
}

.about-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 76px;
    padding-bottom: 76px;
}

.about-profile-grid article {
    padding: 6px 36px 12px 0;
    border-right: 1px solid var(--line);
}

.about-profile-grid article + article {
    padding-left: 36px;
}

.about-profile-grid article:last-child {
    border-right: 0;
}

.about-profile-number {
    color: #00a77e;
    font-size: 14px;
    font-weight: 900;
}

.about-profile-grid h2 {
    margin: 12px 0;
    font-size: 24px;
}

.about-profile-grid p {
    margin: 0;
    color: #52606d;
    line-height: 1.8;
}

.text-link {
    display: inline-block;
    margin-top: 12px;
    color: #008765;
    font-weight: 900;
}

.about-site-purpose {
    padding: 76px 0;
    text-align: center;
    background: #f1f6f4;
}

.about-site-purpose .container {
    max-width: 860px;
}

.project-context-band {
    padding: 32px 0;
    color: #ffffff;
    background: #006b50;
}

.project-context-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.project-context-grid strong {
    font-size: 20px;
}

.project-context-grid p {
    margin: 0;
    color: #d4f5eb;
}

.projects-current-section {
    padding-top: 72px;
    padding-bottom: 80px;
}

.project-records-grid .content-card {
    border-radius: 0;
    box-shadow: none;
}

.project-priority-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #cddbd6;
}

.project-priority-list article {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    padding: 28px 28px 28px 0;
    border-bottom: 1px solid #cddbd6;
}

.project-priority-list article:nth-child(odd) {
    border-right: 1px solid #cddbd6;
}

.project-priority-list article:nth-child(even) {
    padding-left: 28px;
}

.project-priority-list > article > span {
    color: #008765;
    font-size: 14px;
    font-weight: 900;
}

.project-priority-list h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.project-priority-list p {
    margin: 0;
    color: #52606d;
}

.project-feature-bands {
    padding-top: 80px;
    padding-bottom: 80px;
}

.project-feature-bands article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 390px;
}

.project-feature-bands article + article {
    margin-top: 28px;
}

.project-feature-bands article:nth-child(even) img {
    order: 2;
}

.project-feature-bands img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.project-feature-bands article > div {
    display: grid;
    align-content: center;
    padding: 48px;
    background: #f1f6f4;
}

.empty-state {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: #ffffff;
}

.editorial-page {
    overflow: hidden;
    color: #13221d;
    background: #ffffff;
}

.editorial-hero {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    background: #14251f;
}

.editorial-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 30, 23, 0.9) 0%, rgba(10, 30, 23, 0.62) 50%, rgba(10, 30, 23, 0.18) 100%),
        linear-gradient(0deg, rgba(6, 20, 15, 0.32), transparent 55%);
}

.editorial-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    min-height: 330px;
    max-width: 820px;
    align-content: end;
    padding-bottom: 42px;
    color: #ffffff;
}

.editorial-eyebrow,
.editorial-section-header > span,
.editorial-feature > div > span,
.editorial-article > span,
.editorial-callout .container > span {
    color: #00a87d;
    font-size: 13px;
    font-weight: 900;
}

.editorial-eyebrow {
    color: #9aebd2;
}

.editorial-hero-content h1 {
    width: 100%;
    min-width: 0;
    max-width: 760px;
    margin: 10px 0 14px;
    font-size: clamp(40px, 4.8vw, 60px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    white-space: normal;
}

.editorial-hero-content p {
    width: 100%;
    min-width: 0;
    max-width: 720px;
    margin: 0;
    color: #edf8f4;
    font-size: 19px;
    line-height: 1.75;
    overflow-wrap: break-word;
    white-space: normal;
}

.editorial-intro {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 72px;
}

.history-main-content {
    display: grid;
    grid-template-columns: 180px minmax(0, 850px);
    gap: 48px;
    justify-content: center;
    align-items: start;
    padding-top: 72px;
    padding-bottom: 72px;
}

.history-main-content > aside {
    display: grid;
    gap: 28px;
    padding-top: 8px;
    border-top: 2px solid #008765;
    color: #466057;
    font-size: 12px;
    font-weight: 900;
}

.history-church-card {
    position: sticky;
    top: 94px;
    margin-top: 44px;
}

.history-church-card a {
    display: grid;
    overflow: hidden;
    border: 1px solid #d7e0dd;
    border-radius: 8px;
    color: #0b2239;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.history-church-card a:hover {
    transform: translateY(-4px);
    border-color: #008765;
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.16);
}

.history-church-card img {
    width: 100%;
    height: 132px;
    object-fit: cover;
}

.history-church-card span,
.history-church-card strong,
.history-church-card small {
    margin-right: 12px;
    margin-left: 12px;
}

.history-church-card span {
    margin-top: 16px;
    color: #008765;
    font-size: 12px;
    font-weight: 900;
}

.history-church-card strong {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.35;
}

.history-church-card small {
    margin-top: 8px;
    margin-bottom: 18px;
    color: #64756f;
    font-size: 13px;
    line-height: 1.5;
}

.editorial-intro-with-media {
    grid-template-columns: 150px minmax(0, 0.95fr) minmax(360px, 0.8fr);
    align-items: start;
}

.editorial-intro-with-media > img {
    width: 100%;
    height: 260px;
    border-radius: 8px;
    object-fit: cover;
}

.editorial-section-label {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 8px;
    border-top: 2px solid #008765;
    color: #466057;
    font-size: 12px;
    font-weight: 800;
}

.editorial-section-label strong {
    color: #008765;
}

.editorial-prose,
.editorial-small-prose {
    color: #40554d;
    line-height: 1.9;
}

.editorial-prose {
    max-width: 850px;
    font-size: 19px;
}

.editorial-prose > :first-child,
.editorial-small-prose > :first-child {
    margin-top: 0;
}

.editorial-prose > :last-child,
.editorial-small-prose > :last-child {
    margin-bottom: 0;
}

.editorial-small-prose {
    font-size: 16px;
}

.editorial-small-prose a,
.editorial-prose a {
    color: #007a5b;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.editorial-facts {
    color: #ffffff;
    background: #075f49;
}

.editorial-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.editorial-facts article {
    display: grid;
    min-height: 116px;
    align-content: center;
    padding: 22px 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.editorial-facts article:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.editorial-facts strong {
    font-size: 25px;
    line-height: 1.25;
}

.editorial-facts span {
    margin-top: 4px;
    color: #c8e9df;
    font-size: 13px;
}

.editorial-section-header {
    display: grid;
    gap: 4px;
    margin-bottom: 36px;
}

.editorial-section-header h2 {
    max-width: 820px;
    margin: 0;
    font-size: 34px;
    line-height: 1.3;
}

.editorial-timeline-section,
.editorial-profile-section,
.managed-projects-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.editorial-timeline {
    border-top: 1px solid #cad8d3;
}

.editorial-timeline article {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 42px;
    padding: 28px 0;
    border-bottom: 1px solid #cad8d3;
}

.editorial-timeline time {
    color: #008765;
    font-size: 17px;
    font-weight: 900;
}

.editorial-timeline h3 {
    margin: 0 0 7px;
    font-size: 22px;
}

.editorial-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding-top: 20px;
    padding-bottom: 80px;
}

.editorial-feature {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.editorial-feature + .editorial-feature {
    margin-top: 0;
}

.editorial-feature.is-reversed > img {
    order: 0;
}

.editorial-feature > img {
    width: 100%;
    height: 220px;
    min-height: 220px;
    object-fit: cover;
}

.editorial-feature > div {
    display: grid;
    flex: 1;
    align-content: center;
    padding: 26px;
}

.editorial-feature:only-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 760px;
    justify-self: center;
}

.editorial-feature:only-child > img {
    height: 220px;
    min-height: 220px;
}

.editorial-feature h2,
.editorial-article h2,
.editorial-callout h2 {
    margin: 8px 0 16px;
    font-size: 28px;
    line-height: 1.3;
}

.editorial-articles {
    padding-bottom: 72px;
}

.editorial-article {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 30px 48px;
    padding: 42px 0;
    border-top: 1px solid #d7e0dd;
}

.editorial-article > span {
    grid-row: 1 / span 2;
}

.editorial-article h2 {
    margin-top: 0;
}

.editorial-gallery-section,
.editorial-priorities {
    padding: 80px 0;
    background: #eef4f2;
}

.editorial-video-section {
    padding-top: 16px;
    padding-bottom: 80px;
}

.editorial-video-section,
.editorial-gallery-section .container {
    display: grid;
    justify-items: center;
}

.editorial-video-section .editorial-section-header,
.editorial-video-grid,
.editorial-gallery-section .editorial-section-header,
.editorial-gallery {
    width: 100%;
    max-width: 850px;
}

.editorial-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.editorial-video-grid article {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.editorial-video-grid article:only-child {
    width: 100%;
    max-width: 760px;
    justify-self: center;
}

.editorial-video-grid .video-frame {
    margin-top: 0;
    border-radius: 0;
}

.editorial-video-grid video {
    display: block;
    width: 100%;
    background: #101828;
    aspect-ratio: 16 / 9;
}

.editorial-video-grid h3 {
    margin: 0;
    padding: 16px 18px 18px;
    font-size: 18px;
}

.editorial-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.editorial-gallery figure {
    margin: 0;
    background: #ffffff;
}

.editorial-gallery-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.editorial-gallery-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.14);
}

.editorial-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.editorial-gallery figcaption {
    display: grid;
    gap: 2px;
    padding: 16px 18px 18px;
}

.editorial-gallery figcaption span {
    color: #64756f;
    font-size: 13px;
}

.church-detail-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
    padding: 72px 0;
}

.church-detail-single {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.church-language-panel {
    display: grid;
    align-content: start;
    gap: 16px;
    position: sticky;
    top: 96px;
}

.church-language-panel > span {
    color: #008765;
    font-size: 13px;
    font-weight: 900;
}

.church-story {
    max-width: 860px;
}

.church-language-content {
    display: none;
}

.church-language-content.is-active {
    display: block;
}

.church-language-content h2 {
    margin: 8px 0 22px;
    font-size: 34px;
}

.church-language-content p {
    margin: 0 0 22px;
    color: #263d4f;
    font-size: 18px;
    line-height: 1.9;
}

.church-interior-section {
    padding: 76px 0 88px;
    background: #eef4f2;
}

.church-interior-card {
    overflow: hidden;
    margin: 0;
    border: 1px solid #d7e0dd;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.church-interior-card img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.church-interior-card figcaption {
    display: grid;
    gap: 6px;
    padding: 22px 26px 26px;
}

.church-interior-card strong {
    font-size: 22px;
}

.church-interior-card span {
    color: #64756f;
    line-height: 1.7;
}

.editorial-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #cad8d3;
}

.editorial-profile-grid article {
    min-height: 280px;
    padding: 28px 34px 28px 0;
    border-right: 1px solid #cad8d3;
}

.editorial-profile-grid article + article {
    padding-left: 34px;
}

.editorial-profile-grid article:last-child {
    border-right: 0;
}

.editorial-profile-grid article > span,
.editorial-priority-grid article > span {
    color: #008765;
    font-size: 13px;
    font-weight: 900;
}

.editorial-profile-grid h3,
.editorial-priority-grid h3 {
    margin: 18px 0 10px;
    font-size: 22px;
}

.editorial-callout {
    padding: 78px 0;
    color: #ffffff;
    background: #0d3026;
}

.editorial-callout .container {
    max-width: 900px;
}

.editorial-callout .container > span {
    color: #81ddc1;
}

.editorial-callout h2 {
    color: #ffffff;
}

.editorial-callout .editorial-small-prose {
    color: #d2e6df;
    font-size: 18px;
}

.managed-project-list {
    border-top: 1px solid #cad8d3;
}

.managed-project-row {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    padding: 28px 0;
    border-bottom: 1px solid #cad8d3;
}

.managed-project-row > img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.managed-project-row > div > span {
    color: #667a72;
    font-size: 13px;
}

.managed-project-row h3 {
    margin: 6px 0 10px;
    font-size: 26px;
}

.managed-project-row a {
    display: inline-block;
    margin-top: 16px;
    color: #008765;
    font-weight: 900;
}

.editorial-priority-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #c6d6d0;
    border-left: 1px solid #c6d6d0;
}

.editorial-priority-grid article {
    min-height: 260px;
    padding: 26px;
    border-right: 1px solid #c6d6d0;
    border-bottom: 1px solid #c6d6d0;
    background: rgba(255, 255, 255, 0.46);
}

.editorial-priority-grid small {
    display: block;
    margin-top: 30px;
    color: #6b7f77;
    font-weight: 800;
}

.weather-page {
    background:
        linear-gradient(180deg, rgba(0, 135, 101, 0.08), rgba(245, 247, 248, 0)),
        var(--soft);
}

.weather-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: stretch;
}

.weather-hero > div:first-child {
    display: grid;
    align-content: end;
    min-height: 260px;
    padding: 34px;
    border-radius: 8px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(0, 62, 47, 0.92), rgba(0, 135, 101, 0.7)),
        url("../img/bandza-center.png") center / cover;
}

.weather-hero span {
    font-weight: 900;
}

.weather-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
}

.weather-hero p {
    max-width: 680px;
    margin: 0;
    font-size: 18px;
}

.weather-source-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    font-weight: 900;
}

.current-weather-panel {
    display: grid;
    align-content: center;
    justify-items: start;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.weather-icon-current {
    width: 72px;
    height: 72px;
    margin-bottom: 8px;
}

.current-weather-panel strong {
    display: block;
    font-size: 48px;
    line-height: 1;
}

.current-weather-panel p {
    margin: 10px 0 4px;
    color: var(--ink);
    font-weight: 900;
}

.current-weather-panel small {
    color: var(--muted);
}

.current-weather-panel .weather-current-period,
.current-weather-panel .weather-location-note,
.current-weather-panel .weather-updated-at {
    display: block;
    margin-top: 6px;
    line-height: 1.45;
}

.current-weather-panel a {
    margin-top: 14px;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.weather-section {
    padding-top: 42px;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
}

.forecast-card,
.nearby-weather-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
}

.forecast-card {
    overflow: hidden;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.forecast-card:hover,
.forecast-card:focus-within {
    border-color: rgba(0, 135, 101, 0.36);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.1);
}

.forecast-card-header {
    display: flex;
    min-height: 48px;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    background: #f8faf9;
}

.forecast-card-header time {
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.forecast-card-header span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-align: right;
}

.forecast-periods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.forecast-period {
    display: grid;
    min-width: 0;
    min-height: 218px;
    padding: 17px 14px 16px;
    align-content: start;
    justify-items: center;
    text-align: center;
}

.forecast-period + .forecast-period {
    border-left: 1px solid var(--line);
}

.forecast-period-day {
    background: linear-gradient(180deg, rgba(255, 244, 190, 0.52), rgba(255, 255, 255, 0.92));
}

.forecast-period-night {
    background: linear-gradient(180deg, rgba(222, 232, 255, 0.62), rgba(250, 251, 255, 0.96));
}

.forecast-period-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.weather-icon-forecast {
    display: block;
    width: 64px;
    height: 64px;
    margin: 10px 0 6px;
}

.forecast-period strong {
    font-size: 32px;
    line-height: 1;
}

.nearby-weather-card p {
    min-height: 42px;
    margin: 8px 0 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.forecast-period-wind {
    min-height: 44px;
    margin: 13px 0 0;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.nearby-weather-card small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.nearby-weather-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.nearby-weather-card h3 {
    margin: 0 0 14px;
    font-size: 19px;
}

.nearby-weather-card div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.weather-icon-nearby {
    width: 48px;
    height: 48px;
}

.nearby-weather-card strong {
    font-size: 28px;
}

.empty-weather {
    grid-column: 1 / -1;
    color: var(--muted);
}

.empty-state {
    padding: 80px 0;
    text-align: center;
}

.site-footer {
    padding: 28px 0;
    color: #cbd5e1;
    background: #101828;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .header-contact,
    .socials {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        grid-column: 3;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: 0 18px 32px rgba(16, 24, 40, 0.14);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 18px;
        border-top: 0;
        border-left: 3px solid transparent;
    }

    .main-nav a.is-active {
        border-left-color: var(--green);
    }

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

    .hero-inner,
    .split-layout,
    .weather-hero,
    .village-story-intro,
    .about-introduction,
    .heritage-feature,
    .about-community-feature {
        grid-template-columns: 1fr;
    }

    .village-facts-grid,
    .history-timeline,
    .about-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-timeline article:nth-child(2) {
        padding-right: 0;
    }

    .about-profile-grid article {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .about-profile-grid article + article {
        padding-left: 0;
    }

    .about-profile-grid article:last-child {
        grid-column: 1 / -1;
        padding-top: 32px;
    }

    .village-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .village-gallery figure:first-child {
        grid-column: 1 / -1;
    }

    .editorial-intro,
    .editorial-intro-with-media,
    .history-main-content {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .history-church-card {
        position: static;
    }

    .editorial-intro-with-media > img {
        grid-column: 2;
    }

    .editorial-facts-grid,
    .editorial-profile-grid,
    .editorial-priority-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editorial-profile-grid article:nth-child(2) {
        border-right: 0;
    }

    .editorial-profile-grid article:last-child {
        grid-column: 1 / -1;
        border-top: 1px solid #cad8d3;
    }

    .editorial-feature {
        min-height: 100%;
    }

    .editorial-feature > img {
        min-height: 220px;
        max-height: 220px;
    }

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

    .church-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .church-language-panel {
        position: static;
    }

    .hero-widgets {
        align-items: stretch;
    }

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

    .news-feed-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .projects-card-grid,
    .projects-board-stats {
        grid-template-columns: 1fr;
    }

    .projects-sort-panel,
    .projects-search-filter,
    .news-controls .news-search-filter {
        grid-template-columns: 1fr;
    }

    .news-controls .projects-search-field,
    .news-controls .news-filter-chips,
    .news-controls .news-sort-form,
    .news-controls [data-news-sort-toggle] {
        grid-column: 1;
        grid-row: auto;
    }

    .projects-status-chips button {
        flex: 1 1 auto;
    }

    .projects-sort-toggle {
        justify-self: stretch;
        min-width: 0;
        min-height: 72px;
        margin-top: 0;
        flex-direction: row;
    }

    .history-article-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .history-article-sidebar {
        position: static;
        order: -1;
    }

    .news-feed-video-grid,
    .news-feed-gallery,
    .history-story-video-grid,
    .history-story-gallery,
    .about-facts-grid {
        grid-template-columns: 1fr;
    }

    .history-lightbox {
        padding: 14px;
    }

    .history-lightbox-dialog {
        height: calc(100vh - 28px);
    }

    .history-lightbox-stage {
        padding: 16px 52px;
    }

    .history-lightbox-nav {
        width: 38px;
        height: 54px;
        font-size: 36px;
    }

    .history-lightbox-prev {
        left: 10px;
    }

    .history-lightbox-next {
        right: 10px;
    }

    .forecast-grid,
    .nearby-weather-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

.public-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 24px 0 8px;
    color: var(--muted);
}

.public-pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
}

.public-pagination a:hover,
.public-pagination a:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, 1360px);
    }

    .hero {
        min-height: 620px;
    }

    .hero-inner {
        min-height: 620px;
        padding: 54px 0 30px;
    }

    .hero-widgets {
        flex-direction: column;
    }

    .live-card,
    .weather-card {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-feed-item {
        padding: 20px;
    }

    .news-feed-item h2 {
        font-size: 23px;
    }

    .news-feed-image {
        max-height: 280px;
    }

    .project-card-body {
        padding: 20px;
    }

    .projects-sort-form {
        grid-template-columns: 1fr;
    }

    .projects-sort-form button {
        width: 100%;
    }

    .project-meta-grid {
        grid-template-columns: 1fr;
    }

    .history-article-hero,
    .history-article-hero-content {
        min-height: 420px;
    }

    .about-page-intro {
        padding: 52px 0 42px;
    }

    .about-page-intro-inner p {
        font-size: 17px;
    }

    .history-story-section {
        padding: 22px;
    }

    .history-story-section h2 {
        font-size: 26px;
    }

    .history-story-body,
    .history-story-summary {
        font-size: 16px;
    }

    .detail-gallery {
        grid-template-columns: 1fr;
    }

    .forecast-grid,
    .nearby-weather-grid {
        grid-template-columns: 1fr;
    }

    .village-page-hero,
    .village-page-hero-content {
        min-height: 500px;
    }

    .village-page-hero-content {
        padding-bottom: 38px;
    }

    .village-page-hero-content h1 {
        font-size: 44px;
    }

    .village-page-hero-content p {
        font-size: 17px;
    }

    .village-facts-grid,
    .history-timeline,
    .about-profile-grid,
    .project-priority-list,
    .about-landscape-grid,
    .project-context-grid,
    .village-content-row,
    .project-feature-bands article {
        grid-template-columns: 1fr;
    }

    .village-facts-grid > div {
        min-height: 94px;
        padding: 16px 18px;
        border-left: 1px solid var(--line);
    }

    .village-story-intro,
    .about-introduction {
        gap: 34px;
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .village-story-intro h2,
    .about-introduction h2,
    .heritage-feature h2,
    .about-community-feature h2,
    .about-site-purpose h2,
    .project-feature-bands h2,
    .village-section-heading h2 {
        font-size: 28px;
    }

    .history-timeline {
        border-top: 0;
        border-left: 2px solid #008765;
    }

    .history-timeline article {
        padding: 4px 0 32px 28px;
    }

    .history-timeline article::before {
        top: 4px;
        left: -8px;
    }

    .heritage-feature,
    .about-community-feature {
        gap: 32px;
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .heritage-feature img,
    .about-community-feature img,
    .about-introduction > img {
        height: 300px;
    }

    .village-gallery {
        grid-template-columns: 1fr;
    }

    .village-gallery figure:first-child {
        grid-column: auto;
    }

    .about-landscape-grid {
        gap: 24px;
    }

    .about-profile-grid article,
    .about-profile-grid article + article,
    .about-profile-grid article:last-child {
        grid-column: auto;
        padding: 28px 0;
    }

    .project-context-grid {
        gap: 10px;
    }

    .project-priority-list article,
    .project-priority-list article:nth-child(even) {
        padding: 24px 0;
        border-right: 0;
    }

    .project-feature-bands article:nth-child(even) img {
        order: 0;
    }

    .project-feature-bands article > div {
        padding: 30px 22px;
    }

    .editorial-hero,
    .editorial-hero-content {
        min-height: 360px;
    }

    .editorial-hero-content {
        padding-bottom: 34px;
    }

    .editorial-hero-content h1 {
        max-width: 100%;
        font-size: 36px;
        line-height: 1.18;
    }

    .editorial-hero-content p {
        font-size: 16px;
        line-height: 1.65;
    }

    .editorial-features {
        grid-template-columns: 1fr;
    }

    .editorial-feature:only-child > img {
        height: 200px;
        min-height: 200px;
    }

    .editorial-intro,
    .editorial-intro-with-media,
    .history-main-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .history-main-content > aside {
        max-width: 180px;
    }

    .history-church-card {
        grid-column: auto;
        max-width: 100%;
    }

    .history-church-card img {
        height: 210px;
    }

    .editorial-intro-with-media > img {
        grid-column: auto;
        height: 220px;
    }

    .editorial-section-label {
        max-width: 180px;
    }

    .editorial-prose {
        font-size: 17px;
    }

    .editorial-facts-grid,
    .editorial-profile-grid,
    .editorial-priority-grid,
    .editorial-gallery,
    .editorial-video-grid {
        grid-template-columns: 1fr;
    }

    .editorial-facts article {
        min-height: 90px;
        border-right: 1px solid rgba(255, 255, 255, 0.18);
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .editorial-section-header h2,
    .editorial-feature h2,
    .editorial-article h2,
    .editorial-callout h2 {
        font-size: 27px;
    }

    .editorial-timeline-section,
    .editorial-profile-section,
    .managed-projects-section,
    .editorial-gallery-section,
    .editorial-priorities {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .editorial-timeline article,
    .editorial-article,
    .managed-project-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .editorial-feature > img {
        min-height: 200px;
        max-height: 200px;
    }

    .editorial-feature > div {
        padding: 32px 22px;
    }

    .editorial-article > span {
        grid-row: auto;
    }

    .editorial-profile-grid article,
    .editorial-profile-grid article + article,
    .editorial-profile-grid article:last-child {
        grid-column: auto;
        min-height: auto;
        padding: 28px 0;
        border-right: 0;
        border-top: 0;
        border-bottom: 1px solid #cad8d3;
    }

    .editorial-gallery img {
        height: 210px;
    }

    .church-detail-layout {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .church-language-content h2 {
        font-size: 28px;
    }

    .church-language-content p {
        font-size: 16px;
        line-height: 1.75;
    }

    .church-interior-section {
        padding-top: 54px;
        padding-bottom: 58px;
    }

    .church-interior-card img {
        max-height: 320px;
    }

    .managed-project-row > img {
        height: 210px;
    }

    .editorial-priority-grid article {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .weather-card,
    .forecast-card {
        transition: none;
    }

    .weather-card:hover,
    .weather-card:focus-within,
    .forecast-card:hover,
    .forecast-card:focus-within {
        transform: none;
    }
}
