* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Comfortaa", sans-serif;
    color: #1f2937;
    background: #ffffff;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(8px);
}

.header-inner {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-motto {
    margin: 0;
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.02em;
    color: #23a9bb;
}

.logo-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 92px; /* логотип увеличен */
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #23a9bb;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    background: url("../img/motto-bg.png") center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(35, 169, 187, 0.4) 100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.hero-text h1 {
    margin: 0 0 20px;
    font-size: 52px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
    max-width: 760px;
}

.hero-text p {
    margin: 0;
    font-size: 18px;
    color: #e5e7eb;
    max-width: 700px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #e0f2fe;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #23a9bb;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(35, 169, 187, 0.22);
}

.btn-primary:hover {
    background: #1b97a7;
}

.btn-secondary {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #dbe4ea;
}

.btn-secondary:hover {
    border-color: #bfcfd8;
}

.hero-card {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e6eef2;
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.08);
}

.hero-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    color: #111827;
}

.hero-card p {
    margin: 0;
    color: #4b5563;
}

/* SECTIONS */

.section {
    padding: 78px 0;
}

.section-soft {
    background: #f7fbfc;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading span {
    display: inline-block;
    margin-bottom: 10px;
    color: #23a9bb;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-heading h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
    color: #111827;
}

.section-heading-with-link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 16px 24px;
}

.section-link {
    color: #23a9bb;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: #1b97a7;
}

/* CARDS */

.info-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.info-card,
.news-card {
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e7edf1;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.news-card-date {
    display: block;
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.info-card h3,
.news-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
    color: #111827;
}

.info-card p,
.news-card p {
    margin: 0;
    color: #4b5563;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card-link:hover {
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.1);
    border-color: #23a9bb;
}

.news-card-link h3 {
    color: #111827;
}

/* PARTNERS */

.section-partners {
    background: #f7fbfc;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    align-items: stretch;
}

@media (min-width: 981px) {
    .partners-grid .partner-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 22px) / 2);
    }
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    min-height: 198px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e7edf1;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
    text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-card:hover {
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.1);
    border-color: #23a9bb;
}

.partner-card img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 198px;
    object-fit: contain;
}

/* OUR CHILDREN */

.our-children {
    margin-top: 42px;
    padding-top: 36px;
    border-top: 1px solid #e7edf1;
}

.our-children-title {
    margin: 0 0 24px;
    font-size: 22px;
    line-height: 1.2;
    color: #111827;
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.child-card {
    text-align: center;
}

.child-card-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    background: #e7edf1;
    margin-bottom: 12px;
}

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

.child-card-name {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #111827;
}

/* SUPPORT / DONATE */

.section-support {
    background: linear-gradient(135deg, #ffffff 0%, #eefafb 100%);
}

.section-support .section-heading {
    text-align: center;
}

.section-support .section-heading h2 {
    font-size: 41px;
}

.section-support .support-intro {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
    font-size: 22px;
    color: #4b5563;
    line-height: 1.6;
}

.support-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-large {
    min-height: 56px;
    padding: 0 32px;
    font-size: 17px;
}

.support-qr {
    box-sizing: border-box;
    width: 100%;
    max-width: 558px;
    margin-inline: auto;
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e6eef2;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.support-qr-image {
    width: 100%;
    line-height: 0;
}

.support-qr-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.support-qr-note {
    margin: 14px 0 0;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.45;
}

/* FOOTER */

.site-footer {
    padding: 52px 0;
    background: #0f172a;
    color: #e5eef5;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.footer-block {
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-block h3 {
    margin: 0 0 18px;
    font-size: 22px;
    color: #ffffff;
}

.footer-block p {
    margin: 0 0 10px;
    color: #d4dde6;
}

.footer-block strong {
    color: #ffffff;
}

.footer-link {
    color: #7dd3fc;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #bae6fd;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.footer-vk {
    display: inline-flex;
    line-height: 0;
    border-radius: 50%;
    overflow: hidden;
}

.footer-vk img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: cover;
}

/* INNER PAGES */

.page-section {
    padding: 70px 0;
}

.page-title {
    margin: 0 0 20px;
    font-size: 42px;
    line-height: 1.1;
    color: #111827;
}

.page-text {
    max-width: 860px;
    font-size: 18px;
    color: #4b5563;
}

.page-text p {
    margin: 0 0 1em;
}

.page-text p:last-child {
    margin-bottom: 0;
}

/* ARTICLE (single news) */

.article-content {
    max-width: 720px;
}

.article-back {
    display: inline-block;
    margin-bottom: 24px;
    color: #23a9bb;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.article-back:hover {
    color: #1b97a7;
}

.article-header {
    margin-bottom: 28px;
}

.article-date {
    display: block;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
}

.article-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #23a9bb;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-title {
    margin: 0;
    font-size: 38px;
    line-height: 1.15;
    color: #111827;
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .hero-inner,
    .info-grid,
    .news-grid,
    .partners-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-text h1 {
        font-size: 40px;
    }

    .header-inner {
        min-height: auto;
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-motto {
        font-size: 1.5rem;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 16px;
    }
}

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

    .article-title {
        font-size: 28px;
    }

    .children-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .logo {
        height: 82px;
    }

    .hero {
        padding: 52px 0 44px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p,
    .page-text {
        font-size: 16px;
    }

    .section {
        padding: 56px 0;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .section-support .section-heading h2 {
        font-size: 34px;
    }
}
