:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --text: #0f1720;
    --muted: #54616e;
    --border: #d9e0e8;
    --accent: #1f5f8b;
    --accent-dark: #184b6e;
    --accent-soft: #dce9f2;
    --font-sans: "Source Sans 3", "Avenir Next", "Noto Sans", sans-serif;
    --radius: 16px;
    --shadow: 0 14px 36px rgba(15, 23, 32, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-dark);
}

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

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-rainbow {
    height: 4px;
    background: linear-gradient(
        90deg,
        #e40303 0%,
        #ff8c00 16%,
        #ffed00 33%,
        #008026 50%,
        #004dff 67%,
        #750787 84%,
        #e40303 100%
    );
}

.agent-notice {
    background: #eef2f5;
    border-bottom: 1px solid var(--border);
}

.agent-notice p {
    margin: 0;
    padding: 18px 0;
    font-size: clamp(18px, 1rem + 0.8vw, 28px);
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
    background: rgba(246, 248, 251, 0.92);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.site-brand img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
}

.site-header__controls {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.site-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 500;
}

.site-nav__list li {
    margin: 0;
}

.site-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--text);
}

.site-nav__list a:hover {
    color: var(--accent-dark);
    background: rgba(31, 95, 139, 0.08);
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.lang-toggle__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 34px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
}

.lang-toggle__item:hover {
    color: var(--accent-dark);
    background: rgba(31, 95, 139, 0.08);
}

.lang-toggle__item.is-active,
.lang-toggle__item.is-active:hover {
    color: #fff;
    background: var(--accent);
}

.sticky-actions {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 55;
    display: grid;
    gap: 12px;
}

.sticky-actions__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 214px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow);
}

.sticky-actions__btn--help {
    background: var(--accent);
    color: #fff;
}

.sticky-actions__btn--help:hover {
    color: #fff;
    background: var(--accent-dark);
}

.sticky-actions__btn--donate {
    background: var(--accent-soft);
    border: 1px solid #b8ccda;
    color: #143a57;
}

.sticky-actions__btn--donate:hover {
    background: #cdddea;
    color: #102f45;
}

.section {
    padding: 52px 0;
}

.hero {
    padding-top: 34px;
}

.hero__layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 26px;
    align-items: stretch;
}

.hero__media {
    margin: 0;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 340px;
    height: 100%;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__content h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.08;
    text-transform: none;
    letter-spacing: 0.003em;
    font-weight: 600;
}

.hero__content p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.section h2,
.page-head h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.1;
    font-weight: 600;
}

.section-head {
    max-width: 840px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    max-width: 74ch;
}

.help-grid,
.direction-grid,
.news-grid {
    display: grid;
    gap: 16px;
}

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

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

.help-card,
.direction-card,
.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.help-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    color: var(--text);
    text-align: center;
    min-height: 220px;
}

.help-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.help-card span {
    font-weight: 600;
}

.direction-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.direction-card__note {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.direction-card__image {
    border-radius: 12px;
    overflow: hidden;
}

.direction-card h2,
.direction-card h3,
.news-card h2,
.news-card h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
}

.direction-card p,
.news-card p {
    margin: 0;
    color: var(--muted);
}

.direction-card__description {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.about-directions h2 {
    margin-bottom: 18px;
}

.direction-detail-grid {
    display: grid;
    gap: 18px;
}

.direction-detail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
}

.direction-detail__image {
    border-radius: 12px;
    overflow: hidden;
}

.direction-detail h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 600;
}

.direction-detail__description {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.direction-detail__description p {
    margin: 0 0 12px;
}

.direction-detail__description p:last-child {
    margin-bottom: 0;
}

.news-card time,
.single-post time {
    display: inline-block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.news-card__image {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

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

.news-all-link-wrap {
    margin-top: 24px;
    text-align: center;
}

.news-all-link-wrap .link-btn {
    display: inline-flex;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    align-self: flex-start;
    border: 1px solid var(--text);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
}

.link-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.contact-cards {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 600;
}

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

.contact-card__meta {
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

.contact-card__action {
    margin-top: 8px;
    align-self: flex-start;
}

.empty-note {
    margin: 0;
    color: var(--muted);
}

.page-content {
    color: var(--text);
}

.page-content p {
    color: var(--muted);
}

.pagination-wrap {
    margin-top: 20px;
}

.help-intake__intro {
    margin-bottom: 20px;
}

.help-form {
    margin-top: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    display: grid;
    gap: 16px;
}

.help-form__status {
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 14px;
    font-weight: 600;
}

.help-form__status.is-success {
    background: #e9f7ef;
    border: 1px solid #badfc8;
    color: #174d2f;
}

.help-form__status.is-error {
    background: #fbecec;
    border: 1px solid #e8c4c4;
    color: #5c1f1f;
}

.help-alert {
    margin: 0 0 14px;
    background: #fff6f6;
    border: 1px solid #efcaca;
    border-radius: 12px;
    padding: 14px;
    display: grid;
    gap: 8px;
}

.help-alert h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.help-alert p {
    margin: 0;
    color: #5d2c2c;
}

.help-form__group {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 8px;
}

.help-form__group legend {
    font-weight: 600;
    margin-bottom: 4px;
}

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

.help-form__radio-list label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f8fc;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--text);
}

.help-form__field {
    display: grid;
    gap: 6px;
}

.help-form__field label {
    font-weight: 600;
    color: var(--text);
}

.help-form__row {
    display: grid;
    gap: 12px;
}

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

.help-form__input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.help-form__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 95, 139, 0.14);
}

.help-form__input.is-invalid {
    border-color: #c55a5a;
}

.help-form__error {
    margin: 0;
    font-size: 14px;
    color: #8f2b2b;
}

.help-form__conditional[hidden] {
    display: none !important;
}

.help-form__consent label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
}

.help-form__actions {
    margin-top: 4px;
}

.help-form__submit {
    appearance: none;
    border: 0;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.help-form__submit:hover {
    background: var(--accent-dark);
}

.help-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.help-form__turnstile {
    min-height: 65px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #eef2f5;
    margin-top: 40px;
}

.site-footer__inner {
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer p {
    margin: 0;
    color: #4c5a67;
    font-size: 14px;
}

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

    .hero__media {
        min-height: 0;
        height: auto;
    }

    .hero__media img {
        height: auto;
        object-fit: contain;
    }

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

    .site-nav__list {
        gap: 8px;
        font-size: 14px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .site-header__controls {
        gap: 10px;
    }

    .site-nav__list a {
        min-height: 36px;
        padding: 6px 9px;
    }

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

    .direction-detail h3 {
        font-size: 24px;
    }

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

@media (max-width: 680px) {
    .section {
        padding: 38px 0;
    }

    .hero {
        padding-top: 22px;
    }

    .hero__layout {
        gap: 16px;
    }

    .hero__content h1 {
        margin-bottom: 12px;
        line-height: 1.05;
    }

    .hero__content p {
        font-size: 16px;
    }

    .section h2,
    .page-head h1 {
        margin-bottom: 10px;
        line-height: 1.15;
    }

    .section-head {
        margin-bottom: 16px;
        gap: 10px;
    }

    .section-head p {
        font-size: 16px;
    }

    .agent-notice p {
        font-size: 16px;
        padding: 14px 0;
    }

    .site-header__inner {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 10px 0 12px;
        min-height: 0;
        gap: 10px;
    }

    .site-brand {
        gap: 10px;
        font-size: 14px;
        max-width: min(68vw, 280px);
    }

    .site-brand img {
        width: 40px;
        height: 40px;
    }

    .site-header__controls {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 8px 10px;
        margin-left: 0;
    }

    .lang-toggle {
        justify-self: end;
    }

    .site-nav {
        grid-column: 1 / -1;
        width: 100%;
    }

    .site-nav__list {
        width: 100%;
        gap: 8px;
        justify-content: flex-start;
    }

    .site-nav__list li {
        flex: 1 1 calc(50% - 8px);
    }

    .site-nav__list li:last-child {
        flex-basis: 100%;
    }

    .site-nav__list a {
        width: 100%;
        justify-content: center;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 14px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.72);
    }

    .help-grid,
    .direction-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .help-card,
    .direction-card,
    .news-card,
    .contact-card {
        padding: 16px;
        border-radius: 14px;
    }

    .help-card {
        min-height: 0;
    }

    .help-card img {
        width: 78px;
        height: 78px;
    }

    .direction-card h2,
    .direction-card h3,
    .news-card h2,
    .news-card h3,
    .contact-card h3 {
        font-size: 21px;
    }

    .news-card__image img {
        height: 190px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-news .news-grid .news-card:nth-child(n + 4) {
        display: none;
    }

    .site-main {
        padding-bottom: 124px;
    }

    .sticky-actions {
        right: 12px;
        left: 12px;
        bottom: 12px;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sticky-actions__btn {
        min-width: 0;
        width: 100%;
        padding: 12px 8px;
        font-size: 14px;
    }

    .direction-detail {
        padding: 16px;
    }

    .direction-detail h3 {
        font-size: 22px;
    }

    .direction-detail__description {
        font-size: 16px;
    }

    .help-form {
        padding: 16px;
        gap: 14px;
    }

    .help-form__radio-list {
        flex-direction: column;
    }

    .help-form__radio-list label {
        width: 100%;
        border-radius: 12px;
    }
}
