/* Медиарейтинг — спокойный «apple-like» интерфейс */

:root {
    --bg: #fbfbfd;
    --surface: #ffffff;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --border: rgba(0, 0, 0, 0.06);
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max: #0071e3;
    --vk: #34c759;
    --transition: 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.container.narrow {
    width: min(720px, 92vw);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 251, 253, 0.82);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border);
}

/* На главной хедер накладывается поверх первого (hero) блока */
body:has(main > .hero-pro--cover:first-child) .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-img {
    height: 36px;
    width: auto;
    max-width: min(220px, 46vw);
    display: block;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 1.75rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow);
    cursor: pointer;
    position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform var(--transition);
}

.nav-toggle::before {
    top: 14px;
}

.nav-toggle::after {
    bottom: 14px;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 0 4vw 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.nav-mobile a {
    padding: 12px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
    border-bottom: none;
}

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

    .nav-toggle {
        display: block;
    }

    .nav-mobile.is-open {
        display: flex;
    }
}

/* Hero — стек плит в духе Apple / Telegram */
.hero {
    padding: 4.5rem 0 3rem;
    text-align: center;
}

.hero-pro {
    position: relative;
    padding: clamp(2.5rem, 7vw, 4.75rem) 0 clamp(2.25rem, 5vw, 3.75rem);
    overflow: hidden;
    text-align: left;
}

.hero-pro-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 95% 75% at 10% 12%, rgba(0, 113, 227, 0.1), transparent 58%),
        radial-gradient(ellipse 80% 60% at 95% 88%, rgba(52, 199, 89, 0.08), transparent 55%),
        radial-gradient(ellipse 70% 50% at 48% 42%, rgba(255, 255, 255, 0.95), transparent 62%),
        linear-gradient(180deg, #fcfcfe 0%, var(--bg) 38%, #f2f4f9 100%);
    pointer-events: none;
}

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

.hero-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(0.65rem, 2vw, 0.85rem);
    width: 100%;
}

.hero-slab {
    border-radius: 22px;
    padding: clamp(1.35rem, 4.5vw, 2rem);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(185%) blur(22px);
    -webkit-backdrop-filter: saturate(185%) blur(22px);
    border: 1px solid rgba(0, 0, 0, 0.055);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 1px 2px rgba(0, 0, 0, 0.035),
        0 10px 36px -10px rgba(0, 0, 0, 0.07),
        0 32px 72px -28px rgba(0, 113, 227, 0.14);
}

.hero-slab--intro {
    padding-bottom: clamp(1.45rem, 4vw, 2.1rem);
}

.hero-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.hero-pro-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: clamp(2.15rem, 5.4vw, 3.2rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.042em;
}

.hero-title-line {
    display: block;
}

/* Первая строка: плотный заголовок с лёгким «объёмом» */
.hero-title-line:first-child {
    font-weight: 700;
    letter-spacing: -0.044em;
    color: var(--text);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* Акцентная черта — как на промо-страницах Apple */
.hero-title-line:first-child::after {
    content: "";
    display: block;
    width: min(3.25rem, 18vw);
    height: 4px;
    margin-top: 0.65rem;
    margin-bottom: 0.55rem;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(0, 113, 227, 0.35) 72%, transparent 100%);
    box-shadow: 0 1px 2px rgba(0, 113, 227, 0.2);
}

/* Вторая строка: спокойный подзаголовок */
.hero-title-line--soft {
    font-size: clamp(1.28rem, 3.15vw, 1.95rem);
    font-weight: 500;
    letter-spacing: -0.024em;
    line-height: 1.15;
    color: rgba(29, 29, 31, 0.52);
}

.hero-lead {
    margin: 0.5rem 0 0;
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-pro-lead {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.58;
    max-width: none;
    color: var(--text-secondary);
}

.hero-slab-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0.15rem;
}

@media (min-width: 520px) {
    .hero-slab-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

.hero-slab--tile {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
    min-height: 4.85rem;
    padding: 1.15rem 1.35rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.7) inset,
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hero-slab--tile:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 113, 227, 0.18);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 6px 20px -4px rgba(0, 113, 227, 0.15),
        0 12px 32px -12px rgba(0, 0, 0, 0.08);
}

.hero-slab--tile:active {
    transform: translateY(0);
}

.hero-slab--tile:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.hero-slab--tile-primary:focus-visible {
    outline-color: rgba(255, 255, 255, 0.95);
}

.hero-slab--tile-primary {
    background: linear-gradient(165deg, #0a84ff 0%, #0071e3 42%, #0058b8 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 6px 24px rgba(0, 113, 227, 0.38),
        0 16px 40px -12px rgba(0, 80, 180, 0.35);
}

.hero-slab--tile-primary:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 8px 28px rgba(0, 113, 227, 0.45),
        0 20px 48px -14px rgba(0, 80, 180, 0.38);
}

.hero-tile-label {
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slab--tile,
    .hero-slab--tile:hover,
    .hero-slab--tile:active {
        transition: none;
        transform: none;
    }
}

/* Hero с фото кампуса (главная) */
.hero-pro--cover {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    /* Мало отступа сверху — текст и кнопки у нижней кромки блока */
    padding: clamp(1rem, 4vh, 2rem) 0 clamp(2.75rem, 7vw, 4.5rem);
    overflow: hidden;
}

.hero-pro--cover > .container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
}

.hero-pro--cover .hero-pro-bg {
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.44) 22%,
            rgba(0, 0, 0, 0.24) 42%,
            rgba(0, 0, 0, 0.1) 56%,
            rgba(0, 0, 0, 0) 68%
        ),
        linear-gradient(165deg, rgba(0, 18, 42, 0.14) 0%, rgba(0, 24, 56, 0.09) 42%, rgba(0, 12, 32, 0.14) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.035) 0%, transparent 50%),
        url("../img/RSU.png");
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
}

.hero-pro--cover .hero-pro-content {
    max-width: min(44rem, 100%);
}

.hero-pro--cover .hero-slab--intro {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Заголовок hero: крупная «продуктовая» типографика в духе Apple */
.hero-pro--cover .hero-pro-title {
    gap: 0.18rem;
    align-items: flex-start;
    font-feature-settings: "kern" 1;
}

.hero-pro--cover .hero-title-line:first-child,
.hero-pro--cover .hero-title-line--soft {
    font-size: clamp(1.32rem, 2.4vw + 0.95rem, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.012em;
    line-height: 1.03;
    color: #fff;
    text-shadow: 0 2px 48px rgba(0, 0, 0, 0.38);
}

.hero-pro--cover .hero-title-line:first-child::after {
    display: none;
}

.hero-pro--cover .hero-title-line--soft {
    margin-top: 0;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .hero-pro--cover > .container {
        width: min(1120px, 90vw);
    }

    .hero-pro--cover .hero-title-line:first-child,
    .hero-pro--cover .hero-title-line--soft {
        font-size: clamp(1.16rem, 3.9vw + 0.5rem, 2.1rem);
        letter-spacing: -0.01em;
        line-height: 1.06;
    }

    .hero-pro--cover .hero-title-line--soft {
        white-space: nowrap;
    }

    .hero-pro--cover .hero-pro-lead {
        font-size: clamp(0.92rem, 2.1vw + 0.42rem, 1.03rem);
        line-height: 1.45;
        letter-spacing: -0.008em;
    }
}

@media (max-width: 380px) {
    .hero-pro--cover .hero-title-line:first-child,
    .hero-pro--cover .hero-title-line--soft {
        font-size: clamp(1.03rem, 3.55vw + 0.42rem, 1.78rem);
    }

    .hero-pro--cover .hero-pro-lead {
        font-size: clamp(0.85rem, 2.8vw + 0.28rem, 0.96rem);
        line-height: 1.42;
    }
}

.hero-pro--cover .hero-pro-lead {
    margin-top: 1.15rem;
    font-size: clamp(1.0625rem, 2.4vw, 1.2rem);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.011em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 24px rgba(0, 0, 0, 0.28);
}

.hero-pro--cover .hero-slab-grid {
    margin-top: clamp(1.35rem, 3.5vw, 1.85rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 0.85rem;
}

.hero-pro--cover .hero-slab--tile {
    flex: 0 1 auto;
    flex-direction: row;
    min-height: unset;
    padding: 0.72rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition),
        background var(--transition),
        color var(--transition);
}

.hero-pro--cover .hero-tile-label {
    font-size: 0.98rem;
    letter-spacing: -0.018em;
}

.hero-pro--cover .hero-cta-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    opacity: 0.88;
}

.hero-pro--cover .hero-slab--tile-primary {
    background: #fff;
    color: #0d0d12;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.35) inset,
        0 6px 28px rgba(0, 0, 0, 0.22);
}

.hero-pro--cover .hero-slab--tile-primary:hover {
    background: #fafbff;
    border-color: rgba(255, 255, 255, 0.85);
    color: #000;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 10px 36px rgba(0, 0, 0, 0.28);
}

.hero-pro--cover .hero-slab--tile:not(.hero-slab--tile-primary) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-pro--cover .hero-slab--tile:not(.hero-slab--tile-primary):hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 8px 28px rgba(0, 0, 0, 0.15);
}

.hero-pro--cover .hero-slab--tile-primary:focus-visible {
    outline-color: #fff;
    outline-offset: 3px;
}

.hero-pro--cover .hero-slab--tile:not(.hero-slab--tile-primary):focus-visible {
    outline-color: rgba(255, 255, 255, 0.95);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-pro--cover .hero-slab--tile,
    .hero-pro--cover .hero-slab--tile:hover,
    .hero-pro--cover .hero-slab--tile:active {
        transform: none;
    }
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
}

.prose {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.prose.lead {
    font-size: 1.15rem;
}

.more-intro-panel .page-title {
    margin-top: 0;
}

.more-intro-panel .more-intro-lead {
    margin-bottom: 0;
    max-width: none;
    line-height: 1.62;
}

.more-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 4%, rgba(0, 113, 227, 0.08) 0%, rgba(0, 113, 227, 0) 38%),
        radial-gradient(circle at 94% 14%, rgba(61, 130, 234, 0.1) 0%, rgba(61, 130, 234, 0) 36%),
        linear-gradient(180deg, #f7f9ff 0%, #f5f7fc 55%, #f9fbff 100%);
}

.more-page::before,
.more-page::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

.more-page::before {
    width: min(1080px, 120vw);
    height: min(1080px, 120vw);
    top: -620px;
    left: -360px;
    border: 28px solid rgba(0, 113, 227, 0.13);
    opacity: 0.9;
}

.more-page::after {
    width: min(860px, 96vw);
    height: min(860px, 96vw);
    top: 260px;
    right: -340px;
    border: 22px solid rgba(74, 149, 255, 0.16);
    transform: rotate(-14deg);
    opacity: 0.82;
}

.more-page > .section {
    position: relative;
    z-index: 1;
}

.more-page .more-intro-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.more-page .section {
    padding: 1.2rem 0;
}

@media (max-width: 860px) {
    .more-page::before {
        top: -520px;
        left: -440px;
        border-width: 22px;
        opacity: 0.65;
    }

    .more-page::after {
        top: 340px;
        right: -430px;
        border-width: 18px;
        opacity: 0.6;
    }
}

.more-page .hero-slab {
    border-radius: 20px;
    padding: clamp(1.2rem, 3vw, 1.75rem);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 10px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.more-intro-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.7rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 113, 227, 0.22);
    background: linear-gradient(180deg, rgba(0, 113, 227, 0.12) 0%, rgba(0, 113, 227, 0.06) 100%);
    color: #0a5fbe;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 1px 10px rgba(0, 113, 227, 0.08);
}

.more-intro-title {
    margin: 0;
    font-size: clamp(1.8rem, 3.2vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
}

.more-intro-meta {
    margin: 0.7rem 0 0;
    color: #5f6672;
    font-size: clamp(1rem, 1.45vw, 1.16rem);
    letter-spacing: -0.012em;
}

.more-chart-panel .more-chart-heading {
    margin-top: 0;
    margin-bottom: 0;
}

.more-weights-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
    gap: clamp(1rem, 3.5vw, 2rem);
    align-items: stretch;
    border-radius: 28px;
    border: 1px solid rgba(61, 130, 234, 0.14);
    background:
        radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 44%),
        linear-gradient(145deg, rgba(61, 130, 234, 0.08) 0%, rgba(61, 130, 234, 0.03) 52%, rgba(255, 255, 255, 0.85) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 16px 34px rgba(15, 23, 42, 0.08);
}

.more-purpose-panel {
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(61, 130, 234, 0.08) 0%, rgba(255, 255, 255, 0.98) 58%, rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid rgba(61, 130, 234, 0.14);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.88) inset,
        0 14px 30px rgba(15, 23, 42, 0.06);
}

.more-purpose-copy {
    margin: 0;
    max-width: 58rem;
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    line-height: 1.58;
    letter-spacing: -0.01em;
    color: #252831;
}

.more-purpose-copy + .more-purpose-copy {
    margin-top: 1rem;
}

.more-purpose-copy--accent {
    padding-top: 1rem;
    border-top: 1px solid rgba(61, 130, 234, 0.14);
    font-weight: 600;
    color: #234c80;
}

.more-weights-text {
    color: #2a2a2f;
    padding: clamp(0.95rem, 1.8vw, 1.2rem) clamp(1rem, 2.2vw, 1.35rem);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(61, 130, 234, 0.14);
}

.more-weights-copy,
.more-weights-accent {
    margin: 0;
    font-size: clamp(1.01rem, 1.12vw, 1.2rem);
    line-height: 1.56;
    letter-spacing: -0.008em;
    max-width: 38rem;
}

.more-weights-accent {
    margin-top: clamp(0.85rem, 1.6vw, 1.1rem);
    padding-top: clamp(0.8rem, 1.4vw, 0.95rem);
    border-top: 1px solid rgba(61, 130, 234, 0.16);
    color: #234c80;
    font-weight: 600;
}

.weights-card {
    border-radius: 26px;
    padding: clamp(1rem, 2vw, 1.25rem);
    background: linear-gradient(170deg, #4a8ff0 0%, #2f75df 58%, #2767ca 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.26) inset,
        0 14px 28px rgba(24, 56, 112, 0.32);
}

.weights-pie {
    position: relative;
    width: min(100%, 230px);
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.16),
        0 10px 28px rgba(10, 28, 66, 0.32);
    overflow: visible;
}

.weights-pie canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.weights-card-legend {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.weights-card-legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.weights-card-dot {
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.weights-card-dot--max {
    background: #fff;
}

.weights-card-dot--vk {
    background: #171b2c;
}

@media (max-width: 900px) {
    .more-weights-text {
        padding: 0.95rem 1rem;
    }
}

.more-chart-panel .more-pie {
    margin-top: 1.25rem;
}

.more-factors-panel .factor-list {
    margin-top: 0;
    margin-bottom: 1.25rem;
    max-width: none;
}

.more-factors-panel .more-footer-note {
    margin: 0;
    max-width: none;
    line-height: 1.62;
}

.factors-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.factors-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    color: #1d1d1f;
}

.factors-table th,
.factors-table td {
    border: 1px solid rgba(15, 23, 42, 0.1);
    text-align: center;
    vertical-align: middle;
    padding: 0.76rem 0.8rem;
    line-height: 1.3;
}

.factors-table th {
    font-size: clamp(1.16rem, 1.7vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    padding-top: 0.86rem;
    padding-bottom: 0.86rem;
    background: linear-gradient(180deg, #f8f9fb 0%, #f1f3f7 100%);
    color: #111827;
}

.factors-table th:first-child {
    color: #0071e3;
}

.factors-table th:last-child {
    color: #0071e3;
}

.factors-table td {
    font-size: clamp(0.96rem, 1.05vw, 1.05rem);
    font-weight: 500;
    letter-spacing: -0.004em;
    color: #2c2c2e;
}

.factors-table tbody tr:nth-child(odd) td {
    background: #fbfbfd;
}

.factors-table tbody tr:hover td {
    background: #f3f7ff;
}

.factors-note {
    margin: 0.95rem 0 0;
    font-size: clamp(0.92rem, 1.1vw, 1rem);
    line-height: 1.42;
    color: #353a44;
}

.more-content-panel {
    background: rgba(255, 255, 255, 0.96);
}

.more-content-lead,
.more-content-note {
    margin: 0;
    font-size: clamp(1.05rem, 1.7vw, 1.15rem);
    line-height: 1.34;
    letter-spacing: -0.01em;
    color: #23262f;
}

.more-content-title {
    margin: 1.5rem 0 0.8rem;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.more-content-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.more-content-tags li {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    padding: 0.34rem 0.95rem;
    border-radius: 12px;
    background: #3d82ea;
    color: #fff;
    font-size: clamp(0.98rem, 1.7vw, 1.02rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 14px rgba(61, 130, 234, 0.24);
}

.more-content-note {
    margin-top: 1.55rem;
}

.more-contact-panel {
    text-align: left;
}

.more-contact-panel .section-title {
    margin-bottom: 0.75rem;
}

.more-contact-copy {
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    line-height: 1.35;
}

.more-contact-name {
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #1d1d1f;
}

.more-contact-role {
    font-size: 0.95rem;
    color: #6a6a70;
}

.more-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 18% 86%, rgba(0, 224, 255, 0.55) 0%, rgba(0, 224, 255, 0) 42%),
        radial-gradient(circle at 84% 18%, rgba(203, 64, 255, 0.58) 0%, rgba(203, 64, 255, 0) 46%),
        linear-gradient(135deg, #1d5fd7 0%, #3048da 40%, #5a2fd1 72%, #6b1fbe 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.28);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.more-contact-link:hover {
    transform: translateY(-1px);
    background:
        radial-gradient(circle at 18% 86%, rgba(0, 224, 255, 0.62) 0%, rgba(0, 224, 255, 0) 44%),
        radial-gradient(circle at 84% 18%, rgba(216, 78, 255, 0.64) 0%, rgba(216, 78, 255, 0) 48%),
        linear-gradient(135deg, #2a6ceb 0%, #3a53e6 40%, #6536db 72%, #7a26cb 100%);
    box-shadow: 0 9px 22px rgba(0, 113, 227, 0.34);
}

.more-contact-link:focus-visible {
    outline: 2px solid rgba(0, 113, 227, 0.45);
    outline-offset: 3px;
}

.more-contact-link-arrow {
    font-size: 1rem;
    line-height: 1;
}

.more-directions-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.more-directions-lead {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.22;
    letter-spacing: -0.012em;
    color: #22242b;
    max-width: 1040px;
}

.more-directions-grid {
    margin-top: 1.35rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.more-direction-card {
    border-radius: 28px;
    padding: clamp(1rem, 2.4vw, 1.45rem);
    min-height: 14.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.more-direction-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3rem;
}

.more-direction-icons img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.more-direction-sep {
    font-size: 1.7rem;
    line-height: 1;
    opacity: 0.75;
}

.more-direction-card p {
    margin: 1rem 0 0;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.more-direction-card--dark {
    background: #1f2436;
    color: #fff;
}

.more-direction-card--dark .more-direction-sep {
    color: rgba(255, 255, 255, 0.9);
}

.more-direction-card--blue {
    background: #3d82ea;
    color: #fff;
}

@media (max-width: 900px) {
    .more-directions-grid {
        grid-template-columns: 1fr;
    }

    .more-direction-card {
        min-height: 11.5rem;
    }
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

/* Cards & filters */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
    align-items: flex-end;
}

.period-toolbar {
    margin: 0 0 1.35rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--border);
}

.period-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.25rem;
}

.period-toolbar-prefix {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    min-width: 0;
}

.period-toolbar-selects {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.period-select-wrap {
    margin: 0;
}

.period-toolbar-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.35;
    flex-shrink: 0;
}

.select.select-period {
    padding: 0.35rem 1.75rem 0.35rem 0.65rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.045);
    color: var(--text);
    transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.select.select-period:hover {
    background-color: rgba(0, 113, 227, 0.09);
    color: var(--accent);
}

.select.select-period:focus {
    outline: none;
    background-color: rgba(0, 113, 227, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rating-faculty-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem 0.65rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.rating-faculty-name {
    font-weight: 500;
    min-width: 0;
}

.rating-faculty-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.rating-soc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    border: 1px solid transparent;
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease, background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

.rating-soc-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25);
}

.rating-soc-btn--max {
    color: var(--max);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 113, 227, 0.14);
}

.rating-soc-btn--max:hover {
    background: #fff;
    border-color: rgba(0, 113, 227, 0.28);
}

.rating-soc-btn--vk {
    color: #0077ff;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 119, 255, 0.18);
}

.rating-soc-btn--vk:hover {
    background: #fff;
    border-color: rgba(0, 119, 255, 0.35);
}

.rating-soc-icon {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    pointer-events: none;
}

.period-display {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 160px;
}

.filter-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.select {
    appearance: none;
    font: inherit;
    padding: 0.65rem 2rem 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236e6e73' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tab {
    font: inherit;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.2s ease;
}

.tab:hover {
    color: var(--text);
    border-color: rgba(0, 113, 227, 0.35);
}

.tab.is-active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.tab.is-active:hover {
    color: #fff;
    border-color: var(--text);
    background: #2d2d2f;
}

.tab-panels {
    position: relative;
}

.tab-panel {
    animation: fadeIn 0.4s ease;
}

.tab-panel[hidden] {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Table */
.table-wrap {
    padding: 0;
    overflow: hidden;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.rating-table th,
.rating-table td {
    padding: 1rem 1.35rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.rating-table th:nth-child(1),
.rating-table td:nth-child(1),
.rating-table th:nth-child(3),
.rating-table td:nth-child(3) {
    text-align: center;
}

.rating-table th {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, rgba(0, 113, 227, 0.035) 0%, rgba(0, 113, 227, 0.012) 100%);
    border-bottom-color: rgba(0, 113, 227, 0.12);
}

.rating-table th:nth-child(2),
.rating-table td:nth-child(2) {
    box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.035), inset -1px 0 0 rgba(0, 0, 0, 0.035);
}

.rating-table tbody tr {
    transition: background var(--transition);
    cursor: pointer;
}

.rating-table tbody tr:hover {
    background: rgba(0, 113, 227, 0.04);
}

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

.table-empty {
    padding: 2rem 1.25rem;
    margin: 0;
    color: var(--text-secondary);
    text-align: center;
}

/* Pie */
.pie-block {
    margin-top: 2.5rem;
    text-align: center;
}

.pie-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.pie-caption {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pie-chart-wrap {
    max-width: 340px;
    margin: 0 auto;
    padding: 0.25rem;
}

.more-pie {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 720px) {
    .more-pie {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .more-pie .pie-chart-wrap {
        margin: 0;
    }
}

@media (max-width: 900px) {
    .more-weights-showcase {
        grid-template-columns: 1fr;
    }

    .weights-card {
        max-width: 360px;
        width: 100%;
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .factors-table {
        min-width: 620px;
    }
}

.weights-legend {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.75;
}

.weights-legend li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.weights-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.weights-legend .dot.max {
    background: #5b8def;
}

.weights-legend .dot.vk {
    background: #59c48a;
}

.factor-list {
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.factor-list li {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    padding: 2rem 0 2.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg) 0%, #f5f5f7 100%);
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.site-footer-inner {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.footer-brand-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.footer-brand-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-credit {
    margin: 0 0 1.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-contact {
    margin: 0 0 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-contact a {
    color: var(--text);
    text-decoration: none;
}

.footer-contact .footer-contact-site-link {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-contact a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-credit strong {
    color: var(--text);
    font-weight: 600;
}

.footer-social {
    margin-bottom: 1.75rem;
}

.footer-social-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

.footer-social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.32rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color var(--transition), transform 0.2s ease, box-shadow var(--transition);
}

.footer-social-icon {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
    max-width: 100%;
    object-fit: contain;
}

.footer-social-link:hover {
    border-color: rgba(0, 113, 227, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.12);
}

.footer-copy {
    margin: 0;
    font-size: 0.8rem;
    color: #86868b;
}

/* Modal */
.modal[hidden] {
    display: none !important;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(29, 29, 31, 0.4);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 1.75rem;
    animation: modalIn 0.35s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    padding: 0;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background var(--transition), color var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.modal-close::before,
.modal-close::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

.modal-title {
    margin: 0 2rem 0.25rem 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    padding-right: 2rem;
}

.modal-sub {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-chart-wrap {
    margin-top: 0.5rem;
    position: relative;
    height: min(320px, 55vh);
    width: 100%;
}

@media (max-width: 640px) {
    .modal {
        padding: 1rem;
    }

    .modal-dialog {
        padding: 1.1rem;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }

    .modal-close::before,
    .modal-close::after {
        width: 16px;
    }

    .modal-title {
        margin-right: 2.5rem;
        padding-right: 0;
        font-size: clamp(1rem, 4.8vw, 1.16rem);
        line-height: 1.25;
    }

    .modal-sub {
        font-size: 0.84rem;
        line-height: 1.4;
    }
}

/* Admin */
.admin-body {
    background: var(--bg);
    min-height: 100vh;
}

.admin-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
}

.admin-brand-logo {
    height: 32px;
    width: auto;
    max-width: min(200px, 42vw);
    display: block;
    object-fit: contain;
}

.admin-login-logo-wrap {
    margin-bottom: 1.25rem;
}

.admin-login-logo-wrap .admin-brand-logo {
    max-width: 100%;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-nav a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-nav a:hover {
    text-decoration: underline;
}

.admin-main {
    padding: 2rem 0 4rem;
}

.admin-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-card h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
    max-width: 420px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-grid input,
.form-grid select {
    font: inherit;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.btn {
    font: inherit;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition), transform 0.15s ease;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn.btn-ghost:hover {
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent);
    border-color: rgba(0, 113, 227, 0.45);
}

.btn.btn-ghost.btn-ghost-danger:hover {
    background: rgba(255, 59, 48, 0.12);
    color: #b71c1c;
    border-color: rgba(198, 40, 40, 0.45);
}

.btn.btn-admin-primary:hover {
    background: linear-gradient(180deg, #409cff 0%, var(--accent-hover) 100%);
}

.btn.btn-admin-soft:hover {
    background: rgba(0, 113, 227, 0.14);
    color: var(--accent);
    border-color: rgba(0, 113, 227, 0.28);
}

.btn.btn-admin-outline:hover {
    background: var(--surface);
    color: var(--accent);
    border-color: rgba(0, 113, 227, 0.35);
}

.btn.btn-admin-danger:hover {
    background: rgba(255, 59, 48, 0.16);
    color: #c62828;
    border-color: rgba(198, 40, 40, 0.35);
}

.btn.btn-admin-add:hover {
    background: #2d2d2f;
    color: #fff;
}

.btn-secondary {
    background: var(--text);
}

.btn-secondary:hover {
    background: #2d2d2f;
    color: #fff;
}

a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(0, 113, 227, 0.35);
}

.btn-ghost-tight {
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
}

.btn-ghost-danger {
    color: #c62828;
    border-color: rgba(198, 40, 40, 0.35);
}

.faculty-form-wide {
    max-width: 520px;
}

.faculty-edit-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: stretch;
    max-width: 420px;
}

.faculty-edit-name,
.faculty-edit-link {
    font: inherit;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    width: 100%;
}

.faculty-edit-form .btn-ghost-tight {
    align-self: flex-start;
    margin-top: 0.15rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    color: #c62828;
}

.alert-success {
    background: rgba(52, 199, 89, 0.12);
    color: #1b5e20;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.data-table th {
    color: var(--text-secondary);
    font-weight: 500;
}

.scores-grid {
    display: grid;
    gap: 0.75rem;
}

.scores-row {
    display: grid;
    grid-template-columns: 1fr 100px 100px;
    gap: 0.75rem;
    align-items: center;
}

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

.scores-row input {
    font: inherit;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    width: 100%;
}

.btn-scores-save {
    margin-top: 0.35rem;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    padding: 0.42rem 1.05rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    line-height: 1.25;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 113, 227, 0.22);
    white-space: normal;
    text-align: center;
}

.btn-scores-save:hover {
    box-shadow: 0 3px 14px rgba(0, 113, 227, 0.3);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    background: rgba(0, 113, 227, 0.12);
    color: var(--accent);
}

.badge-muted {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
}

.inline-form {
    display: inline;
}

.admin-muted {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.admin-req {
    color: #c62828;
}

.admin-card-hero h2 {
    margin-top: 0;
}

.badge-super {
    background: rgba(0, 113, 227, 0.15);
    color: #0050a3;
}

.btn-admin-primary {
    background: linear-gradient(180deg, #0a84ff 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.35);
}

.btn-admin-primary:hover {
    background: linear-gradient(180deg, #409cff 0%, var(--accent-hover) 100%);
}

.btn-admin-lg {
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
}

.btn-admin-primary-inner {
    display: inline-block;
}

.btn-admin-soft {
    background: rgba(0, 113, 227, 0.08);
    color: var(--accent);
    border: 1px solid rgba(0, 113, 227, 0.2);
}

.btn-admin-soft:hover {
    background: rgba(0, 113, 227, 0.14);
}

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

.btn-admin-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-admin-danger {
    background: rgba(255, 59, 48, 0.1);
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.25);
}

.btn-admin-danger:hover {
    background: rgba(255, 59, 48, 0.16);
}

.btn-admin-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 999px;
}

.btn-admin-add {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--text);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-admin-add:hover {
    background: #2d2d2f;
}

.btn-admin-add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    line-height: 1;
}

.admin-card-create-period {
    border: 1px solid rgba(0, 113, 227, 0.15);
    background: linear-gradient(165deg, #fff 0%, #f5f8ff 100%);
}

.admin-create-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.admin-create-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.admin-create-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.admin-create-desc {
    margin: 0;
}

.admin-create-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

.admin-create-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-create-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 140px;
}

.admin-create-field span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-create-field input,
.admin-create-field select {
    font: inherit;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    min-width: 160px;
}

.admin-periods-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
}

.data-table-periods {
    min-width: 720px;
}

.data-table-spaced th,
.data-table-spaced td {
    padding: 0.75rem 0.65rem;
}

.period-cell-title {
    white-space: nowrap;
    font-size: 0.92rem;
}

.period-slash {
    opacity: 0.35;
    margin: 0 0.15rem;
}

.admin-period-edit-form {
    margin: 0;
}

.admin-period-edit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.admin-period-year {
    width: 5.5rem;
    font: inherit;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.admin-period-month {
    font: inherit;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    max-width: 10rem;
}

.admin-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.admin-inline-create {
    margin: 1rem 0 1.5rem;
}

.admin-inline-create-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: end;
}

.admin-inline-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-inline-field input {
    font: inherit;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.admin-inline-submit .admin-inline-spacer {
    display: block;
    min-height: 1.2rem;
}

@media (max-width: 640px) {
    .admin-create-head {
        flex-direction: column;
    }
}
