/* ==========================================================================
   SETI Association — Give Now: четыре вкладки (09.2026).
   Префикс sw26-. Переменные темы: --font-family (Roboto),
   --second-family (Bebas Neue), --second-color (#0019ff), --blue-hover.
   Тема держит глобальное a:hover{color:var(--second-color)!important},
   поэтому свои ховеры приходится помечать !important.
   ========================================================================== */

.sw26-give {
    --sw26-gap: 24px;
    font: 300 18px / 1.6 var(--font-family);
    color: #000;
    padding-top: 56px;
}

.sw26-give__title {
    font: 700 28px / 1.2 var(--font-family);
    letter-spacing: 0;
    text-transform: none;
    color: #000;
    margin: 0 0 28px;
}

/* --------------------------------------------------------------------------
   Кнопки-вкладки
   -------------------------------------------------------------------------- */
.sw26-give__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 40px;
}

/* Рамка, фон и цвета — один в один с кнопками сумм в форме (.buttons label):
   1px solid #7f7f7f, без скругления, прозрачный фон, текст #7f7f7f, высота 63px,
   ховер — заливка #DDD; активная — синяя заливка и белый текст. */
.sw26-give__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 63px;
    padding: 14px 18px;
    background: transparent;
    border: 1px solid #7f7f7f;
    border-radius: 0;
    color: #7f7f7f;
    font: 500 16px / 1.25 var(--font-family);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}

.sw26-give__tab:hover {
    background: #DDD;
    border-color: #7f7f7f;
    color: #7f7f7f !important;
}

.sw26-give__tab.is-active,
.sw26-give__tab.is-active:hover {
    background: var(--second-color);
    border-color: var(--second-color);
    color: #fff !important;
}

.sw26-give__tab:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Панели
   -------------------------------------------------------------------------- */
.sw26-give__panel[hidden] {
    display: none !important;
}

.sw26-give__intro {
    max-width: 1000px;
    margin: 0 0 32px;
}

.sw26-give__intro p {
    margin: 0 0 16px;
}

.sw26-give__intro p:last-child {
    margin-bottom: 0;
}

.sw26-give__intro a {
    color: var(--second-color);
}

.sw26-give .sw26-empty {
    color: #7f7f7f;
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   Цели ежемесячных пожертвований
   -------------------------------------------------------------------------- */
.sw26-give__goals,
.sw26-give__next {
    display: flex;
    flex-direction: column;
    gap: var(--sw26-gap);
}

.sw26-give__next {
    margin-top: var(--sw26-gap);
}

.sw26-give__next[hidden] {
    display: none !important;
}

.sw26-goal {
    padding: 26px 32px 30px;
    background: #f1f1f1;
    color: #000;
}

.sw26-goal--completed {
    background: #eef7e2;
}

.sw26-goal--current {
    background: #ddf6f1;
}

.sw26-goal--next {
    background: #f5e8fc;
}

.sw26-goal__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 14px;
}

/* Плашка фиксированной ширины — иначе заголовки целей начинаются на разной
   вертикали. Ширина взята по самой длинной подписи «Completed goal». */
.sw26-goal__badge {
    flex: 0 0 116px;
    width: 116px;
    box-sizing: border-box;
    display: inline-block;
    text-align: center;
    padding: 5px 8px;
    background: #9a9a9a;
    color: #fff;
    font: 400 12px / 1.4 var(--font-family);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw26-goal--completed .sw26-goal__badge {
    background: #67c000;
}

.sw26-goal--current .sw26-goal__badge {
    background: #12c2b0;
}

.sw26-goal--next .sw26-goal__badge {
    background: #a41ae0;
}

.sw26-goal__title {
    flex: 1 1 320px;
    margin: 0;
    font: 700 24px / 1.25 var(--font-family);
    letter-spacing: 0;
    text-transform: none;
    color: inherit;
}

.sw26-goal__desc {
    max-width: 960px;
    font-size: 17px;
    line-height: 1.55;
}

.sw26-goal__lead {
    display: block;
    font-weight: 700;
}

.sw26-goal__text {
    display: block;
}

/* текущая цель: остаток, шкала, люди */
.sw26-goal__progress {
    margin-top: 26px;
}

.sw26-goal__left {
    margin: 0 0 12px;
    font: 400 24px / 1.3 var(--font-family);
    color: inherit;
}

.sw26-goal__bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sw26-goal__bar {
    flex: 1 1 380px;
    max-width: 520px;
    height: 22px;
    background: #fff;
    border: 1px solid #12c2b0;
}

.sw26-goal__bar-fill {
    display: block;
    height: 100%;
    background: #12c2b0;
}

.sw26-goal__numbers {
    flex: 0 0 auto;
    font: 400 17px / 1.3 var(--font-family);
    color: inherit;
    white-space: nowrap;
}

.sw26-goal__people {
    margin: 12px 0 0;
    font: 300 17px / 1.4 var(--font-family);
    color: inherit;
}

/* ссылка «See next goals» */
.sw26-give__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    background: none;
    border: 0;
    color: var(--second-color);
    font: 400 18px / 1.4 var(--font-family);
    text-decoration: none;
    cursor: pointer;
}

.sw26-give__more:hover {
    text-decoration: underline;
}

/* строка про людей, когда все цели уже закрыты и текущей цели нет */
.sw26-give__people-all {
    margin: 22px 0 0;
    font: 300 17px / 1.4 var(--font-family);
    color: #000;
}

.sw26-give__more-icon {
    transition: transform .2s;
}

.sw26-give__more[aria-expanded="true"] .sw26-give__more-icon {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Синяя кнопка (Become a Search Supporter, Download Bank Details)
   -------------------------------------------------------------------------- */
.sw26-give__action {
    margin-top: 36px;
}

.sw26-give__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 38px;
    background: var(--second-color);
    color: #fff !important;
    border: 1px solid var(--second-color);
    font: 700 16px / 1.2 var(--font-family);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.sw26-give__btn:hover {
    background: #fff;
    color: var(--second-color) !important;
}

/* --------------------------------------------------------------------------
   Вкладка «Support a Specific Project» — компактная карточка проекта
   -------------------------------------------------------------------------- */
.sw26-give__projects {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sw26-pcard {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    background: #0a0f1c;
    color: #fff;
    overflow: hidden;
}

.sw26-pcard--noimg {
    grid-template-columns: minmax(0, 1fr);
}

.sw26-pcard--noimg .sw26-pcard__media {
    display: none;
}

.sw26-pcard--noimg .sw26-pcard__body {
    border-left: 0;
}

.sw26-pcard__media {
    position: relative;
    min-height: 320px;
    background: #0a0f1c;
}

.sw26-pcard__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw26-pcard__body {
    display: flex;
    flex-direction: column;
    padding: 34px 38px 36px;
    border-left: 1px solid #1c2740;
}

.sw26-pcard__eyebrow {
    margin: 0 0 8px;
    font: 400 12px / 1 var(--font-family);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #8d97b4;
}

.sw26-pcard__title {
    margin: 0 0 12px;
    font: 700 26px / 1.25 var(--font-family);
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
}

.sw26-pcard__text {
    margin: 0 0 16px;
    font: 300 17px / 1.55 var(--font-family);
    color: #c9d0e2;
}

.sw26-pcard__more {
    margin: 0;
}

.sw26-pcard__more a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5b78ff;
    font: 400 16px / 1.3 var(--font-family);
    text-decoration: none;
}

.sw26-pcard__more a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* рамка со сбором */
.sw26-pcard__fund {
    margin: 22px 0 0;
    padding: 20px 22px 18px;
    border: 1px solid #1f2b47;
    background: rgba(255, 255, 255, .03);
}

.sw26-pcard__figures {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.sw26-pcard__fig {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sw26-pcard__fig--right {
    text-align: right;
}

.sw26-pcard__num {
    font: 700 30px / 1.1 var(--font-family);
    color: #fff;
    white-space: nowrap;
}

.sw26-pcard__cap {
    margin-top: 4px;
    font: 300 15px / 1.2 var(--font-family);
    color: #9aa3bd;
}

.sw26-pcard__bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.sw26-pcard__bar {
    flex: 1 1 auto;
    height: 10px;
    border-radius: 6px;
    background: #2b3552;
    overflow: hidden;
}

.sw26-pcard__bar-fill {
    display: block;
    height: 100%;
    border-radius: 6px;
    background: var(--second-color);
}

.sw26-pcard__percent {
    flex: 0 0 auto;
    font: 700 16px / 1 var(--font-family);
    color: #fff;
}

.sw26-pcard__stage {
    margin: 14px 0 0;
    font: 300 15px / 1.4 var(--font-family);
    color: #c9d0e2;
}

/* единственная кнопка карточки */
.sw26-pcard__action {
    margin: 22px 0 0;
}

.sw26-pcard__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    background: var(--second-color);
    border: 1px solid var(--second-color);
    color: #fff !important;
    font: 700 18px / 1.2 var(--font-family);
    text-decoration: none;
    transition: background .15s, color .15s;
}

.sw26-pcard__btn:hover {
    background: #fff;
    color: var(--second-color) !important;
}

/* --------------------------------------------------------------------------
   Вкладка «Make a Bank Transfer»
   -------------------------------------------------------------------------- */
.sw26-bank {
    max-width: 900px;
}

.sw26-bank__list {
    margin: 0 0 28px;
    padding: 0;
}

.sw26-bank__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0;
}

.sw26-bank__label {
    margin: 0;
    font: 700 18px / 1.5 var(--font-family);
    color: #000;
}

.sw26-bank__value {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 300 18px / 1.5 var(--font-family);
    color: #000;
    word-break: break-word;
}

.sw26-bank__copy {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: none;
    border: 1px solid transparent;
    color: #7f7f7f;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.sw26-bank__copy:hover {
    color: var(--second-color);
    border-color: #d5d5d5;
}

.sw26-bank__copy-done {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    padding: 3px 8px;
    background: #000;
    color: #fff;
    font: 400 12px / 1.3 var(--font-family);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}

.sw26-bank__copy.is-copied .sw26-bank__copy-done {
    opacity: 1;
}

.sw26-bank__copy.is-copied {
    color: #12a05a;
}

.sw26-bank__note {
    margin-bottom: 32px;
}

.sw26-bank__action {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Мобильные
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
    .sw26-give__tab { font-size: 15px; }
    .sw26-pcard__body { padding: 28px 26px 30px; }
    .sw26-pcard__title { font-size: 23px; }
    .sw26-pcard__num { font-size: 26px; }
    .sw26-pcard__btn { font-size: 16px; padding: 16px 20px; }
}

@media screen and (max-width: 900px) {
    .sw26-give__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

    /* карточка проекта: картинка сверху, контент под ней */
    .sw26-pcard { grid-template-columns: minmax(0, 1fr); }
    .sw26-pcard__media { min-height: 260px; aspect-ratio: 16 / 9; }
    .sw26-pcard__body { border-left: 0; border-top: 1px solid #1c2740; }
}

/* на телефоне у кнопок сумм в форме скругление 5px — повторяем для вкладок */
@media screen and (max-width: 624px) {
    .sw26-give__tab { border-radius: 5px; }
}

@media screen and (max-width: 560px) {
    .sw26-give { padding-top: 36px; font-size: 16px; }
    .sw26-give__title { font-size: 22px; margin-bottom: 20px; }
    .sw26-give__tabs { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 28px; }
    .sw26-give__tab { min-height: 52px; font-size: 15px; }

    .sw26-goal { padding: 20px 20px 24px; }
    .sw26-goal__head { gap: 10px; margin-bottom: 12px; }
    .sw26-goal__title { flex-basis: 100%; font-size: 20px; }
    .sw26-goal__desc { font-size: 15px; }
    .sw26-goal__left { font-size: 20px; }
    .sw26-goal__bar { flex-basis: 100%; height: 18px; }
    .sw26-goal__numbers { font-size: 15px; }
    .sw26-goal__people { font-size: 15px; }

    .sw26-give__more { font-size: 16px; }
    .sw26-give__btn { width: 100%; padding: 16px 20px; font-size: 15px; }

    .sw26-give__projects { gap: 24px; }
    .sw26-pcard__media { min-height: 200px; aspect-ratio: 4 / 3; }
    .sw26-pcard__body { padding: 22px 18px 24px; }
    .sw26-pcard__title { font-size: 20px; }
    .sw26-pcard__text { font-size: 15px; }
    .sw26-pcard__more a { font-size: 15px; }
    .sw26-pcard__fund { padding: 16px 16px 14px; }
    .sw26-pcard__num { font-size: 22px; }
    .sw26-pcard__cap { font-size: 14px; }
    .sw26-pcard__stage { font-size: 14px; }
    .sw26-pcard__btn { font-size: 15px; padding: 15px 16px; }

    .sw26-bank__label,
    .sw26-bank__value { font-size: 16px; }
    .sw26-bank__row { padding: 7px 0; }
}

/* совсем узкие экраны: суммы сбора в столбик, чтобы не рвались переносом */
@media screen and (max-width: 400px) {
    .sw26-pcard__num { font-size: 20px; }
}

/* Правки клиента 28.09: блоки «Are we alone?» и «Your support will help us implement
   the following projects» больше не актуальны — после вкладок сразу подвал */
.checkit-section:has(.checkit_are_we),
.projects-section#projects { display: none; }
