/* ============================================================
   css/mission.css — стили страницы «Миссия и ценности»
   Использует переменные main.css, паттерны из board/contacts/documents/donate.css
   Подключать после main.css / effects.css.
   ============================================================ */

/* ---------- Хлебные крошки внутри hero ---------- */
.breadcrumbs {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 3;
    padding: 0;
}
.breadcrumbs .container { text-align: left; }
.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.breadcrumbs__item { display: flex; align-items: center; gap: 6px; }
.breadcrumbs__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .68);
    transition: color .25s ease;
}
.breadcrumbs__link:hover { color: var(--color-white); }
.breadcrumbs__icon { width: 14px; height: 14px; }
.breadcrumbs__separator { color: rgba(255, 255, 255, .35); }
.breadcrumbs__current { color: rgba(255, 255, 255, .92); font-weight: 600; }

/* ---------- HERO ---------- */
.mission-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    padding-bottom: 70px;
    overflow: hidden;
    color: var(--color-white);
}
.mission-hero__image-wrapper { position: absolute; inset: 0; z-index: 0; }
.mission-hero__image { width: 100%; height: 100%; object-fit: cover; }
.mission-hero__overlay { position: absolute; inset: 0; background: var(--gradient-hero); }

.mission-hero .container { position: relative; z-index: 2; }
.mission-hero__content { max-width: 760px; margin-top: 46px; }

.mission-hero__title {
    font-family: var(--font-display), var(--font-main);
    font-size: clamp(30px, 4.2vw, 46px);
    color: var(--color-white);
    margin: 14px 0 26px;
    font-weight: 800;
}

.mission-hero__box {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    backdrop-filter: blur(6px);
}
.mission-hero__subtitle {
    font-family: var(--font-display), var(--font-main);
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--color-white);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}
.mission-hero__description {
    font-size: 15px;
    color: rgba(255, 255, 255, .8);
    line-height: 1.65;
    margin-bottom: 10px;
}
.mission-hero__description:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
    .mission-hero { min-height: auto; text-align: left; padding-top: 20px; }
    .breadcrumbs { top: 16px; }
    .mission-hero__content { margin-top: 64px; }
    .mission-hero__box { padding: 24px 20px; }
}

/* ============================================================
   СЕКЦИЯ «ЦЕННОСТИ»
   ============================================================ */
.values { padding: 80px 0 40px; position: relative; }

.values__header { text-align: center; margin-bottom: 56px; position: relative; z-index: 1; }
.values__subtitle {
    max-width: 560px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 16px;
}

.values__wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: center;
}

.values__center { display: flex; justify-content: center; }

/* ---------- Центральное фото + декоративные кольца ---------- */
.values__center-image {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    box-shadow: var(--shadow-card-hover);
}
.values__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.values__center-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250, 160, 194, .25), transparent 70%);
    z-index: -1;
}
.values__center-ring {
    position: absolute;
    inset: -14px;
    border: 2px dashed var(--color-pink);
    border-radius: 50%;
    opacity: .45;
    animation: spin 40s linear infinite;
    pointer-events: none;
}
.values__center-ring--outer {
    inset: -30px;
    border-style: solid;
    border-color: var(--color-border);
    opacity: 1;
    animation: none;
}

/* ---------- Декор секции «Ценности» ---------- */
.values-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.values-deco--heart {
    width: 130px; height: auto;
    top: 6%; right: 4%;
    color: rgba(250, 160, 194, .14);
    animation: floatY 8s ease-in-out infinite;
}
.values-deco--wave {
    width: 240px; height: auto;
    bottom: 8%; left: 2%;
    color: var(--color-plum-soft);
    transform: rotate(-4deg);
}
.values-deco--dot {
    position: absolute;
    border-radius: 50%;
    background: var(--color-pink-soft);
    pointer-events: none;
    z-index: 0;
}
.values-deco--dot-1 { width: 16px; height: 16px; top: 14%; left: 6%; }
.values-deco--dot-2 { width: 10px; height: 10px; bottom: 20%; right: 8%; background: var(--color-plum-mid); }
.values-deco--dot-3 { width: 22px; height: 22px; top: 46%; right: 2%; opacity: .5; }

@media (max-width: 768px) {
    .values-deco--heart,
    .values-deco--wave { display: none; }
}

/* ---------- Сетка карточек ценностей ---------- */
.values__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.value-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 20px 18px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.value-card__index {
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: var(--font-display), var(--font-main), serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-plum-soft);
    line-height: 1;
    transition: color .3s ease;
}
.value-card:hover .value-card__index { color: var(--color-pink-soft); }

.value-card__icon {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-plum-soft), var(--color-pink-soft));
    display: flex; align-items: center; justify-content: center;
    padding: 9px;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.value-card:hover .value-card__icon {
    transform: scale(1.1) rotate(-6deg);
    box-shadow: 0 8px 18px -6px rgba(250, 160, 194, .5);
}
.value-card__icon-img { width: 100%; height: 100%; object-fit: contain; }

.value-card__title {
    font-size: 15px;
    color: var(--color-plum-dark);
    margin-bottom: 4px;
    padding-right: 24px; /* чтобы заголовок не наезжал на индекс 01–08 */
}
.value-card__text {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .values__wrapper { grid-template-columns: 1fr; }
    .values__center { order: -1; margin-bottom: 12px; }
    .values__center-image { width: 220px; height: 220px; }
}
@media (max-width: 560px) {
    .values__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   СЕКЦИЯ «ЦЕЛИ»
   ============================================================ */
.goals { padding: 40px 0 90px; position: relative; overflow: hidden; }

.goals .sponsors-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.goals .sponsors-deco--tr {
    width: 200px;
    height: auto;
    top: -20px;
    right: -20px;
    color: rgba(250, 160, 194, .12);
}

/* ---------- Декор секции «Цели» ---------- */
.goals-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.goals-deco--leaf {
    width: 110px; height: auto;
    top: 4%; left: -20px;
    color: var(--color-plum-soft);
    transform: rotate(150deg);
}
.goals-deco--dots {
    width: 110px; height: auto;
    bottom: 6%; left: 10%;
    color: var(--color-border);
}
.goals-deco--heart {
    width: 150px; height: auto;
    bottom: -20px; right: 8%;
    color: rgba(250, 160, 194, .1);
    animation: floatY 9s ease-in-out infinite;
}
@media (max-width: 768px) {
    .goals-deco--leaf,
    .goals-deco--heart { display: none; }
}

.goals__header { text-align: center; margin-bottom: 48px; position: relative; z-index: 1; }
.goals__subtitle {
    max-width: 560px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 16px;
}

.goals__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}

/* ---------- Карточка цели ---------- */
.goal-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.goal-card:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: var(--shadow-card-hover);
}

.goal-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.goal-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.goal-card:hover .goal-card__image img { transform: scale(1.06); }

.goal-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(62, 31, 50, .45) 100%);
    opacity: 0;
    transition: opacity .35s ease;
}
.goal-card:hover .goal-card__image::after { opacity: 1; }

.goal-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(4px);
    font-family: var(--font-display), var(--font-main);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-plum);
    box-shadow: var(--shadow-soft);
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.goal-card:hover .goal-card__badge {
    background: var(--gradient-btn);
    color: var(--color-white);
    transform: scale(1.08);
}

.goal-card__content { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.goal-card__title {
    font-size: 17px;
    color: var(--color-plum-dark);
    font-family: var(--font-display), var(--font-main);
}
.goal-card__text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------- Мобильный аккордеон целей ---------- */
.goals__accordion { display: none; }

.goal-accordion {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-bottom: 14px;
}
.goal-accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-plum-dark);
}
.goal-accordion__icon {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    color: var(--color-plum);
    display: flex;
    transition: transform .3s ease;
}
.goal-accordion__header[aria-expanded="true"] .goal-accordion__icon { transform: rotate(180deg); }

.goal-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.goal-accordion__content.active { max-height: 480px; }
.goal-accordion__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0 20px;
    border-radius: var(--radius-sm);
}
.goal-accordion__image img { width: 100%; height: 100%; object-fit: cover; }
.goal-accordion__text {
    padding: 14px 20px 20px;
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .goals__grid { display: none; }
    .goals__accordion { display: block; }
}
