/* ===== Мосты сотрудничества — дизайн-система ===== */
:root {
    --navy: #0E3552;
    --navy-deep: #08243B;
    --teal: #2A8AA8;
    --teal-dark: #1F6C86;
    --sky: #7FB8D4;
    --sky-soft: #DFEDF5;
    --amber: #B5813A;
    --amber-soft: #F3E7D2;
    --paper: #FAF7F1;
    --surface: #FFFFFF;
    --surface-2: #F3EFE7;
    --border: #E3DCCF;
    --ink: #14222E;
    --muted: #5E6E7B;
    --font-display: 'Source Serif 4', Georgia, serif;
    --font-body: 'Onest', 'Segoe UI', sans-serif;
    --text-xs: 0.8125rem;
    --text-sm: 0.9375rem;
    --text-base: 1.0625rem;
    --text-lg: 1.3rem;
    --text-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
    --text-2xl: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
    --text-hero: clamp(2.6rem, 1.4rem + 5.4vw, 5.2rem);
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-24: 96px;
    --sp-32: 128px;
    --radius-sm: 6px;
    --radius: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(14,53,82,.06), 0 4px 14px rgba(14,53,82,.05);
    --shadow: 0 10px 40px rgba(14,53,82,.10);
    --maxw: 1180px;
}

html[data-theme="dark"] {
    --paper: #0B1A26;
    --surface: #12283A;
    --surface-2: #16324A;
    --border: #234258;
    --ink: #EAF2F7;
    --muted: #9FB6C4;
    --sky-soft: #16324A;
    --amber-soft: #2C2415;
    --navy: #DCEBF3;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
    --shadow: 0 10px 40px rgba(0,0,0,.35);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    transition: background .35s ease, color .35s ease;
}

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

ul[role="list"], ol[role="list"] {
    list-style: none;
}

a {
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    text-wrap: balance;
    font-weight: 600;
    letter-spacing: -.01em;
}

p, li, figcaption, td {
    text-wrap: pretty;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--sky);
    color: var(--navy-deep);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wrap {
    width: min(100% - 40px, var(--maxw));
    margin-inline: auto;
}

.wrap-narrow {
    width: min(100% - 40px, 780px);
    margin-inline: auto;
}

section {
    position: relative;
}

.section {
    padding-block: clamp(56px, 8vw, 112px);
}

.section--tint {
    background: var(--surface-2);
}

.section--navy {
    background: var(--navy-deep);
    color: #E7F1F7;
}

html[data-theme="dark"] .section--navy {
    background: #071722;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    width: min(100% - 40px, var(--maxw));
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    min-height: 74px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

    .brand img {
    width: 82px;
    height: 82px;
    object-fit: contain;
	}

html[data-theme="dark"] .brand img {
    background: #fff;
    border-radius: 50%;
    padding: 2px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

    .brand-text strong {
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--ink);
        letter-spacing: -.015em;
    }

    .brand-text span {
        font-size: .72rem;
        color: var(--muted);
        letter-spacing: .06em;
        text-transform: uppercase;
    }

.main-nav {
    margin-left: auto;
}

    .main-nav ul {
        display: flex;
        gap: 2px;
        list-style: none;
        align-items: center;
    }

    .main-nav a {
        display: block;
        padding: 8px 12px;
        font-size: .93rem;
        text-decoration: none;
        color: var(--muted);
        border-radius: 999px;
        transition: .2s;
    }

        .main-nav a:hover {
            color: var(--ink);
            background: var(--surface-2);
        }

        .main-nav a.active {
            color: var(--surface);
            background: var(--teal-dark);
        }

html[data-theme="dark"] .main-nav a.active {
    color: #08243B;
    background: var(--sky);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.main-nav + .header-actions {
    margin-left: 4px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    transition: .2s;
}

    .icon-btn:hover {
        color: var(--ink);
        border-color: var(--teal);
    }

    .icon-btn svg {
        width: 19px;
        height: 19px;
    }

.nav-toggle {
    display: none;
}

html[data-theme="dark"] .sun {
    display: block;
}

html[data-theme="dark"] .moon {
    display: none;
}

.sun {
    display: none;
}

.moon {
    display: block;
}

@media (max-width: 1080px) {
    .main-nav {
        position: fixed;
        inset: 74px 0 auto;
        background: var(--paper);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px 20px;
        display: none;
        box-shadow: var(--shadow);
    }

        .main-nav.open {
            display: block;
        }

        .main-nav ul {
            flex-direction: column;
            align-items: stretch;
            gap: 2px;
        }

        .main-nav a {
            padding: 12px 14px;
            border-radius: var(--radius-sm);
            font-size: 1rem;
        }

    .nav-toggle {
        display: grid;
    }
}

@media (max-width: 620px) {
    .header-inner {
		width: min(100% - 40px, var(--maxw));
		margin-inline: auto;
		display: flex;
		align-items: center;
		gap: var(--sp-6);
		min-height: 74px;
		padding-top: 16px;    /* Добавили отступ сверху */
			padding-bottom: 16px; /* Добавили отступ снизу */
		}

    .brand img {
        width: 38px;
        height: 38px;
    }

    .brand-text span {
        display: none;
    }

    .brand-text strong {
        font-size: .97rem;
    }

    .main-nav {
        inset-block-start: 66px;
    }

    .icon-btn {
        width: 38px;
        height: 38px;
    }

    html {
        scroll-padding-top: 80px;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: grid;
    align-items: end;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

    .hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-media::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(8,36,59,.60) 0%, rgba(8,36,59,.42) 30%, rgba(8,36,59,.96) 100%), linear-gradient(100deg, rgba(6,28,46,.85) 0%, rgba(6,28,46,.55) 42%, rgba(6,28,46,.15) 72%), radial-gradient(120% 70% at 15% 100%, rgba(42,138,168,.45), transparent 65%);
    }

.hero-inner {
    position: relative;
    width: min(100% - 40px, var(--maxw));
    margin-inline: auto;
    padding-block: clamp(48px, 8vw, 96px);
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 500;
}

.hero .eyebrow {
    color: var(--sky);
}

.eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: currentColor;
}

.hero h1 {
    font-size: var(--text-hero);
    margin-top: 18px;
    color: #fff;
    letter-spacing: -.025em;
}

.hero .lede {
    font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem);
    max-width: 44ch;
    margin-top: 20px;
    color: #D6E7F0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: .97rem;
    transition: transform .18s ease, background .2s, color .2s, border-color .2s;
}

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

.btn-primary {
    background: var(--teal);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--sky);
        color: var(--navy-deep);
    }

.btn-ghost {
    border: 1px solid rgba(255,255,255,.45);
    color: #fff;
}

    .btn-ghost:hover {
        background: rgba(255,255,255,.14);
    }

.btn-outline {
    border: 1px solid var(--border);
    color: var(--ink);
    background: var(--surface);
}

    .btn-outline:hover {
        border-color: var(--teal);
        color: var(--teal-dark);
    }

/* ---------- Page header (interior) ---------- */
.page-head {
    padding-block: clamp(44px, 6vw, 84px) clamp(24px, 3vw, 40px);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

    .page-head h1 {
        font-size: var(--text-2xl);
        margin-top: 14px;
    }

    .page-head .lede {
        color: var(--muted);
        font-size: var(--text-lg);
        max-width: 60ch;
        margin-top: 16px;
    }

    .page-head .eyebrow {
        color: var(--teal-dark);
    }

html[data-theme="dark"] .page-head .eyebrow {
    color: var(--sky);
}

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat {
    background: var(--surface);
    padding: 26px 22px;
}

    .stat b {
        display: block;
        font-family: var(--font-display);
        font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
        color: var(--teal-dark);
        line-height: 1;
        letter-spacing: -.02em;
    }

html[data-theme="dark"] .stat b {
    color: var(--sky);
}

.stat span {
    display: block;
    margin-top: 8px;
    font-size: .87rem;
    color: var(--muted);
}

.stats--onhero {
    margin-top: -56px;
    position: relative;
    z-index: 5;
    box-shadow: var(--shadow);
}

/* ---------- Typography blocks ---------- */
.section-title {
    font-size: var(--text-xl);
    max-width: 22ch;
}

.section-head {
    margin-bottom: clamp(28px, 4vw, 52px);
}
    /* ВОТ ЗДЕСЬ УБРАНО ОГРАНИЧЕНИЕ max-width: 62ch; ТЕПЕРЬ ТЕКСТ ЗАНИМАЕТ 100% ШИРИНЫ */
    .section-head .lede {
        color: var(--muted);
        max-width: 100%;
        margin-top: 14px;
        font-size: var(--text-lg);
    }

.prose p + p {
    margin-top: 1em;
}

.prose p {
    max-width: 66ch;
}

.lead-quote {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1rem + 1.1vw, 1.85rem);
    line-height: 1.35;
    font-style: italic;
}

/* ---------- Split ---------- */
.split {
    display: grid;
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1.05fr .95fr;
    }

        .split.reverse > *:first-child {
            order: 2;
        }
}

.figure {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .figure img {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
    }

    .figure figcaption {
        position: absolute;
        inset-inline: 0;
        bottom: 0;
        padding: 26px 22px 16px;
        font-size: .82rem;
        color: #EAF3F8;
        background: linear-gradient(transparent, rgba(8,36,59,.85));
    }

/* ---------- Cards ---------- */
.grid {
    display: grid;
    gap: 22px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
    }

    .card h3 {
        font-size: var(--text-lg);
        margin-bottom: 10px;
    }

    .card p {
        color: var(--muted);
        font-size: var(--text-sm);
    }

    .card .num {
        display: inline-grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: var(--sky-soft);
        color: var(--teal-dark);
        font-weight: 600;
        margin-bottom: 16px;
        font-size: .95rem;
    }

html[data-theme="dark"] .card .num {
    color: var(--sky);
}

.card--photo {
    padding: 0;
    overflow: hidden;
}

    .card--photo img {
        aspect-ratio: 16/10;
        object-fit: cover;
        width: 100%;
    }

    .card--photo .card-body {
        padding: 24px 26px 28px;
    }

.card-link {
    text-decoration: none;
    display: block;
}

    .card-link .more {
        display: inline-flex;
        gap: 8px;
        margin-top: 16px;
        color: var(--teal-dark);
        font-size: .9rem;
        font-weight: 500;
    }

html[data-theme="dark"] .card-link .more {
    color: var(--sky);
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 500;
    background: var(--sky-soft);
    color: var(--teal-dark);
}

html[data-theme="dark"] .tag {
    color: var(--sky);
}

.tag--amber {
    background: var(--amber-soft);
    color: var(--amber);
}

/* ---------- Timeline ---------- */
.timeline {
    list-style: none;
    position: relative;
    margin-top: 8px;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 124px;
        top: 10px;
        bottom: 10px;
        width: 2px;
        background: var(--border);
    }

@media (max-width: 640px) {
    .timeline::before {
        left: 7px;
    }
}

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 36px;
    padding-block: 16px;
}

    .timeline li::before {
        content: '';
        position: absolute;
        left: 118px;
        top: 26px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: var(--paper);
        border: 3px solid var(--teal);
    }

.timeline time {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .98rem;
    color: var(--teal-dark);
    padding-top: 3px;
    line-height: 1.3;
}

html[data-theme="dark"] .timeline time {
    color: var(--sky);
}

.timeline h3 {
    font-size: 1.12rem;
}

.timeline p {
    color: var(--muted);
    font-size: var(--text-sm);
    margin-top: 4px;
    max-width: 60ch;
}

@media (max-width: 640px) {
    .timeline li {
        grid-template-columns: 1fr;
        gap: 4px;
        padding-left: 30px;
    }

        .timeline li::before {
            left: 1px;
            top: 22px;
        }
}

/* ---------- Tables ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: var(--text-sm);
    min-width: 620px;
}

thead th {
    text-align: left;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    white-space: nowrap;
}

tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--surface-2);
}

.who {
    color: var(--muted);
    font-size: .86rem;
    display: block;
    margin-top: 3px;
    line-height: 1.4;
}

.nowrap {
    white-space: nowrap;
}

.t-time {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--teal-dark);
}

html[data-theme="dark"] .t-time {
    color: var(--sky);
}

/* ---------- Gallery ---------- */
.gallery {
    columns: 3 280px;
    column-gap: 18px;
}

    .gallery figure {
        break-inside: avoid;
        margin-bottom: 18px;
        border-radius: var(--radius);
        overflow: hidden;
        background: var(--surface);
        border: 1px solid var(--border);
    }

    .gallery img {
        width: 100%;
        transition: transform .5s cubic-bezier(.2,.7,.3,1);
    }

    .gallery figure:hover img {
        transform: scale(1.035);
    }

    .gallery figcaption {
        padding: 14px 18px 18px;
        font-size: .86rem;
        color: var(--muted);
    }

.strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

    .strip img {
        aspect-ratio: 1/1;
        object-fit: cover;
        border-radius: var(--radius);
    }

/* ---------- Callout / partner ---------- */
.callout {
    display: grid;
    gap: 30px;
    align-items: center;
    padding: clamp(28px, 4vw, 52px);
    border-radius: var(--radius-lg);
    background: var(--navy-deep);
    color: #E7F1F7;
}

@media (min-width: 860px) {
    .callout {
        grid-template-columns: 1.1fr .9fr;
    }
}

.callout h2 {
    color: #fff;
    font-size: var(--text-xl);
}

.callout p {
    color: #B9D3E2;
    margin-top: 14px;
}

.callout .figure {
    box-shadow: none;
}

/* ---------- Criteria list ---------- */
.criteria {
    display: grid;
    gap: 10px;
}

.crit-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 15px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

    .crit-row b {
        font-weight: 500;
        font-size: .97rem;
    }

    .crit-row span {
        font-family: var(--font-display);
        font-weight: 600;
        color: var(--teal-dark);
        white-space: nowrap;
    }

html[data-theme="dark"] .crit-row span {
    color: var(--sky);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-deep);
    color: #B9D3E2;
    padding-block: clamp(48px, 6vw, 80px) 32px;
    margin-top: 0;
}

html[data-theme="dark"] .site-footer {
    background: #071722;
}

.footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 14px;
}

.site-footer a {
    color: #B9D3E2;
    text-decoration: none;
}

    .site-footer a:hover {
        color: #fff;
        text-decoration: underline;
    }

.site-footer ul {
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: .92rem;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

    .footer-brand img {
        width: 56px;
        height: 56px;
        background: #fff;
        border-radius: 50%;
        padding: 3px;
    }

.footer-bottom {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.14);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    font-size: .83rem;
    color: #85A6BB;
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}

    .reveal.in {
        opacity: 1;
        transform: none;
    }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- School list (ОБНОВЛЕННЫЕ НАСТРОЙКИ СЕТКИ И ЛОГОТИПОВ) ---------- */
.schools {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

.school-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .school-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-sm);
    }

.school-logo {
  flex-shrink: 0;
  width: 85px;  /* Универсальный адекватный размер для всех логотипов */
  height: 85px;
  object-fit: contain;
  /*margin-top: -30px;  /* Смещаем логотип вверх */
  /* margin-left: -120px; /* Смещаем логотип влево */
  /* Мы удалили отрицательные отступы margin-top и margin-left */
}

.school-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 10px;
}

    .school-text b {
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .school-text span {
        color: var(--muted);
        font-size: 0.85rem;
        line-height: 1.3;
    }

/* Адаптивность для мобильных устройств */
@media (max-width: 900px) {
    .schools {
        grid-template-columns: repeat(2, 1fr);
    }
}

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