/* Внутренние страницы: «О фонде» (.about-v2) и «Контакты» (.contacts-v2).
   Подключается в самих страницах после programm.css / contacts.css и действует только внутри своих обёрток.
   Чтобы вернуть прежний вид, достаточно убрать класс обёртки. */

/* =========================================================
   О ФОНДЕ
   ========================================================= */
.about-v2 {
    background: #fff9f4;
    font-family: 'Montserrat', sans-serif;
    color: #2b2118;
    padding-bottom: 56px;
}

/* ----- первый экран ----- */
.about-hero {
    padding: 56px 0 0;
    background: linear-gradient(180deg, #fff0e4 0%, #fff9f4 100%);
}

.about-hero__inner {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 48px;
    align-items: end;
}

.about-hero__text {
    position: relative;
    z-index: 1;
    padding-bottom: 56px;
}

.about-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #ffe3d0;
    color: #FF6711;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.about-hero h1 {
    margin: 0 0 18px;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    color: #2b2118;
}

.about-hero h1 span {
    color: #FF6711;
}

.about-lead {
    margin: 0 0 26px;
    font-size: 19px;
    line-height: 1.6;
    color: #4b4239;
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.about-fact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 20px;
    border: 1.5px solid #f1e9e1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(43, 33, 24, 0.06);
}

.about-fact b {
    font-size: 15px;
    font-weight: 800;
    color: #FF6711;
}

.about-fact span {
    font-size: 14.5px;
    line-height: 1.55;
    color: #4b4239;
}

.about-cta {
    display: inline-block;
    padding: 16px 38px;
    border-radius: 14px;
    background: #FF6711;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, box-shadow .2s ease;
}

.about-cta:hover {
    background: #f05a05;
    box-shadow: 0 10px 25px rgba(255, 103, 17, 0.35);
}

.about-hero__image {
    position: relative;
    align-self: end;
}

.about-hero__image::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 120%;
    width: auto;
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #ffe0cc 0%, #ffeee3 70%, rgba(255, 238, 227, 0) 71%);
}

.about-hero__image img {
    position: relative;
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

/* ----- карточки разделов ----- */
.about-v2 .about-section {
    padding-top: 36px !important;
}

.about-v2 .about-section .program-card {
    margin-top: 24px;
    padding: 36px 40px;
    border: 1.5px solid #f1e9e1;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(43, 33, 24, 0.07);
}

.about-v2 .about-section .program-card:first-child {
    margin-top: 0;
}

.about-v2 .program-card__title {
    gap: 16px;
    margin-bottom: 22px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    color: #2b2118;
}

.about-v2 .program-card__title img {
    flex: 0 0 auto;
    box-sizing: content-box;
    width: 30px;
    height: 30px;
    padding: 9px;
    border-radius: 50%;
    background: #fff0e6;
    object-fit: contain;
}

.about-v2 .about-section .program-card__title {
    font-size: 24px;
}

.about-v2 .program-text {
    max-width: 880px;
}

.about-v2 .program-text p {
    margin: 0 0 16px;
    font-size: 16.5px;
    line-height: 1.75;
    color: #4b4239;
}

.about-v2 .program-text p:last-child {
    margin-bottom: 0;
}

.about-v2 .program-text b {
    color: #2b2118;
}

/* ----- документы и отчёты ----- */
.about-v2 .documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.about-v2 .document-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid #f1e9e1;
    border-radius: 16px;
    background: #fcfaf8;
    text-align: left;
    text-decoration: none;
    color: #2b2118;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.about-v2 .document-item:hover {
    transform: none;
    border-color: #FF6711;
    background: #fff6f0;
    box-shadow: none;
}

.about-v2 .document-item i {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff0e6;
    font-size: 20px;
    color: #FF6711;
}

.about-v2 .document-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* ----- команда ----- */
.about-v2 .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.about-v2 .team-card {
    padding: 20px 22px;
    border: 1.5px solid #f1e9e1;
    border-radius: 18px;
    background: #fcfaf8;
    text-align: left;
}

.about-v2 .team-card h4 {
    margin: 0 0 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #FF6711;
}

.about-v2 .team-card p {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: #2b2118;
}

/* ----- планшет и телефон ----- */
@media (max-width: 993px) {
    .about-hero {
        padding-top: 28px;
    }

    .about-hero__inner {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .about-hero__text {
        padding-bottom: 0;
    }

    .about-hero h1 {
        font-size: 32px;
    }

    .about-lead {
        font-size: 16px;
    }

    .about-facts {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-cta {
        display: block;
        text-align: center;
    }

    .about-hero__image {
        width: 62%;
        max-width: 260px;
        margin: 40px auto 0;
    }

    .about-hero__image::before {
        height: 104%;
    }

    .about-v2 {
        padding-bottom: 32px;
    }

    .about-v2 .about-section {
        padding-top: 20px !important;
    }

    .about-v2 .about-section .program-card {
        margin-top: 16px;
        padding: 22px 18px;
        border-radius: 20px;
    }

    .about-v2 .program-card__title,
    .about-v2 .about-section .program-card__title {
        gap: 12px;
        margin-bottom: 16px;
        font-size: 19px;
    }

    .about-v2 .program-card__title img {
        width: 24px;
        height: 24px;
        padding: 8px;
    }

    .about-v2 .program-text p {
        font-size: 15.5px;
        line-height: 1.7;
    }

    .about-v2 .documents-grid,
    .about-v2 .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .about-hero h1 {
        font-size: 25px;
    }
}

/* длинное слово «Благотворительный» не должно распирать колонку и страницу на самых узких экранах */
.about-hero__text {
    min-width: 0;
}

.about-hero h1 {
    overflow-wrap: break-word;
}

/* =========================================================
   КОНТАКТЫ
   ========================================================= */
.contacts-v2 {
    background: #fff9f4;
    font-family: 'Montserrat', sans-serif;
    color: #2b2118;
    padding: 56px 0 64px;
}

.contacts-v2 .contact-area {
    padding: 0;
}

.contacts-head {
    margin-bottom: 32px;
}

.contacts-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #ffe3d0;
    color: #FF6711;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.contacts-head h1 {
    margin: 0 0 10px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
}

.contacts-head p {
    margin: 0;
    font-size: 18px;
    color: #6b6158;
}

.contacts-v2 .contact-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 28px;
    align-items: stretch;
}

.contacts-v2 .contact-info {
    gap: 16px;
}

.contacts-v2 .info-card {
    padding: 26px 26px 28px;
    border: 1.5px solid #f1e9e1;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(43, 33, 24, 0.07);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.contacts-v2 .info-card h3,
.contacts-v2 .contact-card h3 {
    margin: 0 0 16px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a7f75;
}

/* строки с иконками */
.contact-line {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 0;
    color: #2b2118;
    text-decoration: none;
    transition: color .2s ease;
}

a.contact-line:hover {
    color: #FF6711;
}

.contact-ico {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff0e6;
    color: #FF6711;
}

.contact-ico svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* соцсети: круглые кнопки */
.contacts-v2 .social-links {
    display: flex;
    gap: 12px;
    margin-left: 0;
}

.contacts-v2 .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff0e6;
    transition: background .2s ease;
}

.contacts-v2 .social-link svg {
    width: 26px !important;
    height: 26px !important;
    transform: none !important;
    fill: #FF6711;
    transition: fill .2s ease;
}

.contacts-v2 .social-link:hover {
    background: #FF6711;
}

.contacts-v2 .social-link:hover svg {
    fill: #fff;
}

/* карта */
.contacts-v2 .contact-form {
    min-height: 480px;
    border-radius: 24px;
    background: #fff;
}

.contacts-v2 .contact-form iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 1.5px solid #f1e9e1;
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(43, 33, 24, 0.07);
}

@media (max-width: 1100px) {
    .contacts-v2 .contact-grid {
        grid-template-columns: 340px 1fr;
    }
}

@media (max-width: 993px) {
    .contacts-v2 {
        padding: 28px 0 40px;
    }

    .contacts-head {
        margin-bottom: 20px;
    }

    .contacts-head h1 {
        font-size: 32px;
    }

    .contacts-head p {
        font-size: 16px;
    }

    .contacts-v2 .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contacts-v2 .info-card {
        padding: 20px 18px 22px;
        border-radius: 20px;
        font-size: 16px;
    }

    .contacts-v2 .contact-form {
        height: auto;
        min-height: 0;
    }

    .contacts-v2 .contact-form iframe {
        height: 320px;
        min-height: 0;
        border-radius: 20px;
    }
}
