@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #123a63;
    --primary-dark: #0b2948;
	--accent:#D88A1D;
    --accent-hover:#C8790C;
    /*--accent: #c9a65b;*/
    --text: #16202a;
    --muted: #687583;
    --border: #e4e9ee;
    --soft: #f5f7f9;
    --white: #ffffff;
    --shadow: 0 16px 42px rgba(17, 49, 82, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(228, 233, 238, 0.9);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    color: var(--white);
    background: var(--primary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.brand-mark1 {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
}


.brand strong,
.brand span {
    display: block;
}

.brand strong {
    font-size: 16px;
}

.brand span {
    max-width: 360px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
}

.nav a:hover {
    color: var(--primary);
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%, rgba(201, 166, 91, 0.18), transparent 30%),
        linear-gradient(135deg, #0a2949, #174e7e);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px);
    background-size: 42px 42px;
}

.hero-grid {
    position: relative;
    z-index: 1;
    min-height: 610px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 70px;
    padding: 85px 0;
}

.eyebrow,
.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 15px 0 20px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero-content > p {
    max-width: 730px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin: 34px 0 38px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    min-width: 0;
}

.hero-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(15px, 1.45vw, 20px);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.hero-slogan > span:not(.hero-slogan-divider) {
    display: inline-flex;
    align-items: baseline;
}

.hero-slogan-dot {
    color: #ed8b00;
    font-weight: 800;
}

.hero-slogan-divider {
    display: block;
    flex: 0 0 auto;

    width: 1px;
    height: 38px;

    background: rgba(255, 255, 255, 0.3);
}

.hero-right .hero-card {
    width: 100%;
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    min-width: 0;
}

.hero-slogan {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;

    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.hero-slogan span {
    position: relative;
    padding-left: 14px;
    white-space: nowrap;
}

.hero-slogan span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;

    width: 6px;
    height: 6px;
    border-radius: 50%;

    background: #ed8b00;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px rgba(237, 139, 0, 0.12);
}

@media (max-width: 1100px) {
    .hero-slogan {
        gap: 14px;
        padding-left: 18px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .hero-slogan {
        flex-wrap: wrap;
        padding-left: 0;
        gap: 10px 18px;
    }
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 23px;
    border-radius: 12px;
    font-weight: 700;
}

.button-primary {
    /*color: var(--primary-dark);*/
    color: var(--white);
    background: var(--accent);
}

.button-light {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.09);
}

.hero-stats {
    display: flex;
    gap: 40px;
	padding-left: 20px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 26px;
}

.hero-stats span {
    color: rgba(255,255,255,.62);
    font-size: 12px;
}

.hero-card {
    padding: 28px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    background: rgba(255,255,255,.09);
    box-shadow: 0 26px 70px rgba(0,0,0,.18);
    backdrop-filter: blur(12px);
}

.hero-card-title {
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.top-list {
    display: grid;
    gap: 12px;
}

.top-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 13px;
    align-items: center;
    padding: 14px;
    border-radius: 15px;
    background: rgba(255,255,255,.1);
}

.top-place {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    /*color: var(--primary-dark);*/
    color: var(--white);	
    background: var(--accent);
    font-weight: 800;
}

.top-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.top-score {
    font-size: 14px;
    font-weight: 800;
}

.section {
    padding: 90px 0;
}

.section-muted {
    background: var(--soft);
}

.section-heading,
.about-grid {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
    margin-bottom: 35px;
}

.section-heading h2,
.about-grid h2 {
    margin: 7px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-heading p {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 15px;
    margin-bottom: 18px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}

.search-box span {
    color: var(--muted);
    font-size: 24px;
}

.search-box input,
.toolbar select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: inherit;
}

.toolbar select {
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}

.rating-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 19px 22px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--muted);
    background: #f9fafb;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

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

tbody tr:hover {
    background: #fbfcfd;
}

.rank-badge {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    /*color: var(--primary);
    background: #edf3f8;*/
	background:#EEF5FC;
	color:#123B67;
    font-weight: 800;
}

.rank-badge.top {
   /* color: var(--primary-dark);*/
   /* background: #f2dfaa;*/
    background: #D88A1D;
	color:white;
}

.university-name {
    min-width: 360px;
    font-weight: 700;
}

.category-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--primary);
    background: #eef4f8;
    font-size: 12px;
    font-weight: 700;
}

.score-column {
    text-align: right;
}

.score {
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
}

.empty-state {
    padding: 50px 20px;
    color: var(--muted);
    text-align: center;
}

.about-grid {
    align-items: start;
}

.about-grid > div:first-child {
    max-width: 500px;
}

.about-copy {
    max-width: 590px;
    color: var(--muted);
    font-size: 17px;
}

.about-copy p:first-child {
    margin-top: 0;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.criteria-card {
    min-height: 245px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
}

.criteria-card span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.criteria-card h3 {
    margin: 34px 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.criteria-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.footer {
    padding-top: 55px;
    color: rgba(255,255,255,.75);
    background: var(--primary-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 42px;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand {
    color: var(--white);
    font-size: 25px;
    font-weight: 800;
}

.footer p {
    max-width: 420px;
    margin: 5px 0 0;
}

.footer strong {
    color: var(--white);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 13px;
}

.methodology-section {
    padding: 80px 0 90px;
    background: #ffffff;
}

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

.methodology-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.section-label {
    display: inline-block;
    margin-bottom: 15px;
    color: #f47a16;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.methodology-title {
    max-width: 760px;
    margin: 0;
    color: #071d33;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -2px;
}

.methodology-description {
    max-width: 760px;
    margin: 22px 0 0;
    color: #6d7d8d;
    font-size: 17px;
    line-height: 1.75;
}

.methodology-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    padding-bottom: 7px;
    color: #0b2d4d;
    border-bottom: 1px solid #0b2d4d;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        gap 0.2s ease;
}

.methodology-link:hover {
    gap: 17px;
    color: #f47a16;
    border-color: #f47a16;
}

.methodology-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.methodology-card {
    min-height: 285px;
    padding: 32px 26px;
    border: 1px solid #dbe3ea;
    border-radius: 20px;
    background: #ffffff;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.methodology-card:hover {
    transform: translateY(-6px);
    border-color: #f4b37e;
    box-shadow: 0 20px 45px rgba(7, 29, 51, 0.09);
}

.methodology-number {
    display: block;
    margin-bottom: 40px;
    color: #f47a16;
    font-size: 14px;
    font-weight: 700;
}

.methodology-card h3 {
    margin: 0 0 16px;
    color: #071d33;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.methodology-card p {
    margin: 0;
    color: #788797;
    font-size: 15px;
    line-height: 1.7;
}

/* Блок распределения процентов */

.rating-structure {
    margin-top: 28px;
    padding: 38px;
    border-radius: 22px;
    background: #0c2d4d;
}

.rating-structure-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.rating-structure-label {
    display: inline-block;
    margin-bottom: 9px;
    color: #f5a15d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.rating-structure h3 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.2;
}

.rating-structure-header p {
    max-width: 510px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.7;
}

.rating-sources {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 12px;
}

.rating-source {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.rating-source-main {
    background: #f47a16;
    border-color: #f47a16;
}

.rating-percent {
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.rating-source-name {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* Адаптация */

@media (max-width: 1050px) {
    .methodology-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rating-sources {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rating-source-main {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .methodology-section {
        padding: 60px 0 70px;
    }

    .methodology-section .container {
        width: min(100% - 28px, 1180px);
    }

    .methodology-header,
    .rating-structure-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .methodology-title {
        font-size: 38px;
        letter-spacing: -1.2px;
    }

    .methodology-description {
        font-size: 16px;
    }

    .methodology-link {
        align-self: flex-start;
    }

    .methodology-cards {
        grid-template-columns: 1fr;
    }

    .methodology-card {
        min-height: auto;
    }

    .methodology-number {
        margin-bottom: 28px;
    }

    .rating-structure {
        padding: 26px 20px;
    }

    .rating-sources {
        grid-template-columns: 1fr;
    }

    .rating-source-main {
        grid-column: auto;
    }

    .rating-source {
        min-height: 115px;
    }
}


@media (max-width: 950px) {
    .nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-card {
        max-width: 620px;
    }

    .criteria-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-heading,
    .about-grid {
        display: grid;
        align-items: start;
    }
}

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

    .brand span {
        display: none;
    }

    .hero-grid {
        min-height: auto;
        padding: 62px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-actions,
    .hero-stats {
        flex-wrap: wrap;
    }

    .hero-stats {
        gap: 24px;
    }

    .toolbar {
        grid-template-columns: 1fr;
    }

    .criteria-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 65px 0;
    }

    th,
    td {
        padding: 15px 16px;
    }

    .university-name {
        min-width: 280px;
    }
}
.toolbar-three { grid-template-columns: 190px 1fr 320px; }
.loading-row td { text-align: center; color: var(--muted); padding: 42px 20px; }
.error-box { margin-bottom: 18px; padding: 14px 18px; border-radius: 12px; background: #fff1f1; color: #8a2525; border: 1px solid #f2caca; }
@media (max-width: 680px) { .toolbar-three { grid-template-columns: 1fr; } }
