@font-face {
    font-family: "Prata";
    src: url("../fonts/Prata.woff2") format("woff2"),
         url("../fonts/Prata.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "HelveticaNeue";
    src: url("../fonts/HelveticaNeueCyrRoman.woff2") format("woff2"),
         url("../fonts/HelveticaNeueCyrRoman.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "HelveticaNeue";
    src: url("../fonts/HelveticaNeueBold.woff2") format("woff2"),
         url("../fonts/HelveticaNeueBold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #2f4cdd;
    --color-secondary: #f3f5ff;
    --color-accent: #fcbf49;
    --color-dark: #1c2132;
    --color-text: #1b1f2a;
    --color-muted: #5f6b8a;
    --color-border: #e2e6f2;
    --color-background: #f7f8fc;
    --shadow-soft: 0 28px 60px rgba(15, 23, 42, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --container-width: min(1140px, calc(100% - 48px));
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "HelveticaNeue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background: var(--color-background);
}

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

body {
    line-height: 1.6;
}

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

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

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: var(--container-width);
    margin: 0 auto;
}

.site-header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-top {
    background: var(--color-dark);
    color: #fff;
    font-size: 14px;
}

.header-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
}

.header-top__contacts,
.header-top__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-top__link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    transition: color 0.2s ease;
}

.header-top__link:hover {
    color: #fff;
}

.header-top__action {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.header-top__action:hover {
    color: #fff;
}

.header-main {
    padding: 20px 0;
}

.header-main__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Prata", Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--color-dark);
}

.site-logo img {
    width: 115px;
    height: 46px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 600;
    color: var(--color-muted);
}

.site-nav__list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav__list li a:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}

.site-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    z-index: 100;
    position: relative;
}

.site-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-dark);
    margin: 0 auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav__toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav__toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.site-nav__toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.page-content {
    flex: 1;
}

.hero {
    padding: 96px 0;
    background: linear-gradient(135deg, #fff 0%, #eef2ff 75%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(47, 76, 221, 0.18), transparent 55%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    align-items: center;
}

.hero__content {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 13px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(36px, 4vw, 50px);
    line-height: 1.12;
    color: var(--color-dark);
    opacity: 0;
    animation: heroFadeIn 0.8s ease forwards;
}

.hero__accent {
    color: #5476a9;
}

.hero__description {
    margin: 0;
    font-size: 18px;
    color: var(--color-muted);
    max-width: 580px;
    opacity: 0;
    animation: heroFadeIn 0.8s ease forwards 0.05s;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeIn 0.8s ease forwards 0.1s;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 18px 32px rgba(47, 76, 221, 0.2);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 44px rgba(47, 76, 221, 0.22);
    color: #fff;
}

.btn--ghost {
    background: rgba(47, 76, 221, 0.1);
    color: var(--color-primary);
}

.btn--ghost:hover {
    background: rgba(47, 76, 221, 0.18);
    transform: translateY(-2px);
}

.btn--secondary {
    background: #fff;
    color: var(--color-primary);
    border: 1px solid rgba(47, 76, 221, 0.2);
}

.hero__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    opacity: 0;
    animation: heroFadeIn 0.8s ease forwards 0.15s;
}

.hero__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-muted);
    position: relative;
    padding-left: 0;
}

.hero__list li::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(47, 76, 221, 0.12);
    box-sizing: content-box;
}

.hero__media {
    grid-column: span 5;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: heroFadeIn 0.8s ease forwards 0.15s;
}

.hero__media img {
    width: min(420px, 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.section {
    padding: 96px 0;
    scroll-margin-top: 60px;
}

.section--alt {
    background: #fff;
}

.section__heading {
    margin: 0 0 18px;
    font-size: clamp(30px, 3.2vw, 40px);
    color: var(--color-dark);
}

.section__lead {
    margin: 0 0 40px;
    font-size: 18px;
    color: var(--color-muted);
}

.wysiwyg > *:not(:last-child) {
    margin-bottom: 16px;
}

.wysiwyg a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.wysiwyg a:hover {
    color: #5476a9;
    text-decoration: underline;
}

.wysiwyg ul,
.wysiwyg ol {
    padding-left: 20px;
    margin: 0;
    display: grid;
    gap: 10px;
}

.wysiwyg ul li,
.wysiwyg ol li {
    color: var(--color-muted);
}

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

.modal.is-open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.modal__dialog {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
    padding: 36px;
    width: min(520px, 92vw);
    max-height: 92vh;
    overflow-y: auto;
    display: grid;
    gap: 20px;
    z-index: 1;
}

.modal__title {
    margin: 0;
    font-size: clamp(26px, 3vw, 32px);
    color: var(--color-dark);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal__close span {
    position: absolute;
    width: 16px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 999px;
}

.modal__close span:first-child {
    transform: rotate(45deg);
}

.modal__close span:last-child {
    transform: rotate(-45deg);
}

.modal__close:hover {
    background: rgba(84, 118, 169, 0.15);
}

.modal-form {
    display: grid;
    gap: 18px;
}

.modal-form__row {
    display: grid;
    gap: 8px;
}

.modal-form__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
}

.modal-form__input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 14px 16px;
    font-size: 16px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.modal-form__input:focus {
    outline: none;
    border-color: rgba(84, 118, 169, 0.6);
    box-shadow: 0 0 0 3px rgba(84, 118, 169, 0.15);
}

.modal-form__textarea {
    min-height: 140px;
    resize: vertical;
}

.modal-form__date {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-form__input--date {
    padding-right: 48px;
    -webkit-appearance: none;
    appearance: none;
}

.modal-form__input--date::-webkit-calendar-picker-indicator {
    display: none;
}

.modal-form__date-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: none;
    background: rgba(84, 118, 169, 0.12);
    color: #5476a9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-form__date-button:hover {
    background: rgba(84, 118, 169, 0.2);
}

.modal-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--color-muted);
}

.modal-form__checkbox input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
}

.modal-form__checkbox a {
    color: #5476a9;
}

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

.modal-form__success {
    margin: 0;
    padding: 14px 16px;
    background: rgba(84, 118, 169, 0.12);
    border-radius: 12px;
    color: #2f3e60;
    font-size: 15px;
}

.modal-form__error {
    margin: 0;
    padding: 14px 16px;
    background: rgba(231, 76, 60, 0.12);
    border-radius: 12px;
    color: #a83232;
    font-size: 15px;
}

.modal-form__submit[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

body.modal-open {
    overflow: hidden;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

.card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card__content {
    display: grid;
    gap: 10px;
    color: var(--color-muted);
}

.card--outline {
    background: transparent;
    border: 1px solid rgba(47, 76, 221, 0.12);
    box-shadow: none;
}

.card h3 {
    margin: 0;
    font-size: 22px;
    color: var(--color-dark);
}

.card p a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.card p a:hover {
    color: #5476a9;
    text-decoration: underline;
}

.card p {
    margin: 0;
    color: var(--color-muted);
}

.card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.card ul li {
    position: relative;
    padding-left: 20px;
    color: var(--color-muted);
}

.card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.timeline {
    position: relative;
    padding-left: 26px;
    display: grid;
    gap: 24px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, rgba(47, 76, 221, 0.2), rgba(47, 76, 221, 0.5));
}

.timeline__item {
    position: relative;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px 28px;
    box-shadow: var(--shadow-soft);
}

.timeline__item h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(47, 76, 221, 0.2);
}

.timeline__content {
    display: grid;
    gap: 12px;
    color: var(--color-muted);
}

.section__lead--wide {
    max-width: none;
}

.features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.features-list li {
    background: rgba(47, 76, 221, 0.08);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    color: var(--color-muted);
}

.publications {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.publication-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(47, 76, 221, 0.06);
    display: grid;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: default;
}

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

.publication-card[data-link] {
    cursor: pointer;
}

.publication-card[data-link]:hover {
    background-color: rgba(84, 118, 169, 0.04);
}

.publication-card[data-link]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(84, 118, 169, 0.32), var(--shadow-strong);
}

.publication-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: rgba(28, 33, 50, 0.6);
}

.publication-card__category {
    text-transform: uppercase;
    font-weight: 700;
    color: #5476a9;
}

.publication-card__date {
    color: var(--color-muted);
}

.publication-card h3 {
    margin: 0;
    font-size: 24px;
    color: var(--color-dark);
}

.publication-card h2,
.publication-card h3 {
    margin: 0;
}

.publication-card h2 a,
.publication-card h3 a {
    color: inherit;
}

.publication-card h2 a:hover,
.publication-card h3 a:hover {
    color: var(--color-primary);
}

.publication-card p {
    margin: 0;
    color: var(--color-muted);
}

.publication-card__author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(47, 76, 221, 0.1);
}

.publication-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.publication-card__more {
    font-weight: 600;
    color: #5476a9;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.publication-card__more:hover {
    transform: translateX(4px);
    color: var(--color-primary);
}

.publications__footer {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.publications__footer .btn {
    padding-left: 40px;
    padding-right: 40px;
}

.publications__footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(47, 76, 221, 0.18);
}

.publication-card--compact {
    padding: 24px;
    box-shadow: none;
    border-radius: var(--radius-md);
    border: 1px solid rgba(47, 76, 221, 0.12);
}

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

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

@media (max-width: 992px) {
    .publications--listing {
        grid-template-columns: 1fr;
    }
}

.publications--listing .publication-card {
    height: 100%;
}

.news-pagination {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.news-pagination__link {
    color: var(--color-primary);
    font-weight: 600;
}

.news-pagination__link--disabled {
    color: rgba(28, 33, 50, 0.4);
    pointer-events: none;
}

.news-pagination__pages {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(47, 76, 221, 0.16);
    color: var(--color-muted);
    font-weight: 600;
}

.news-pagination__page:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.news-pagination__page--current {
    background: var(--color-primary);
    color: #fff;
    border-color: transparent;
}

.news-pagination__dots {
    color: rgba(28, 33, 50, 0.4);
}

.news-detail-breadcrumbs {
    padding: 32px 0 12px;
}

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

.breadcrumbs__item {
    position: relative;
    color: rgba(28, 33, 50, 0.55);
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(28, 33, 50, 0.35);
    transform: translate(-50%, -50%);
}

.breadcrumbs__link {
    color: inherit;
    transition: color 0.2s ease;
}

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

.breadcrumbs__link--current {
    color: var(--color-dark);
    cursor: default;
}

.news-detail-page {
    padding: 60px 0 110px;
    background: rgba(247, 248, 252, 0.7);
}

@media (max-width: 992px) {
    .news-detail-page {
        padding: 60px 0 60px;
    }
}

.news-detail-page .container {
    position: relative;
}

.news-detail-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 48px;
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid rgba(47, 76, 221, 0.06);
    display: grid;
    gap: 24px;
}

.news-detail-card__title {
    margin: 0;
    font-size: clamp(32px, 3.6vw, 44px);
    color: var(--color-dark);
}

.news-detail-card__cover {
    margin: 0;
}

.news-detail-card__cover img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.news-detail-card__lead {
    margin: 0;
    padding: 20px 24px;
    background: rgba(84, 118, 169, 0.12);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--color-dark);
}

.news-detail-card__content {
    display: grid;
    gap: 18px;
}

.news-detail-card__content p {
    margin: 0;
    color: var(--color-muted);
}

.news-detail-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(47, 76, 221, 0.08);
}

.news-detail-card__actions {
    flex-shrink: 0;
}

.news-detail-card__author {
    display: flex;
    align-items: center;
    gap: 18px;
}

.news-detail-card__photo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.news-detail-card__name {
    display: block;
    font-weight: 700;
    color: var(--color-dark);
}

.news-detail-card__role,
.news-detail-card__date {
    display: block;
    font-size: 14px;
    color: rgba(28, 33, 50, 0.55);
}

@media (min-width: 992px) {
    .news-detail-page .full-show__arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .news-detail-page .full-show__arrow--prev {
        left: calc(50% - 560px);
    }

    .news-detail-page .full-show__arrow--next {
        right: calc(50% - 560px);
    }
}

.full-show__arrow {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffffff;
    background-image: url("../images/sprite-slider.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 200% 100%;
    box-shadow: 0 17px 25px rgba(84, 118, 169, 0.2);
    font-size: 0;
    color: #5476a9;
}

.full-show__arrow:hover {
    color: var(--color-primary);
    box-shadow: 0 20px 28px rgba(84, 118, 169, 0.26);
}

.full-show__arrow.is-disabled,
.full-show__arrow[aria-disabled="true"] {
    opacity: 0.35;
    pointer-events: none;
    box-shadow: none;
}

.full-show__arrow--prev {
    background-position: left center;
}

.full-show__arrow--next {
    background-position: right center;
}

@media (max-width: 992px) {
    .news-detail-card {
        padding: 28px;
    }

    .full-show__arrow {
        width: 56px;
        height: 56px;
        background-size: 200% 100%;
    }

    .news-detail-page .container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-detail-page .full-show__arrow--prev {
        order: 1;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .news-detail-page .full-show__arrow--next {
        order: 1;
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
    }

    .news-detail-page .news-detail-card {
        order: 2;
    }

    .news-detail-page .full-show__arrow--prev,
    .news-detail-page .full-show__arrow--next {
        position: static;
        transform: none;
        margin: 0;
    }

    .news-detail-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-detail-card__actions {
        width: 100%;
    }

    .news-detail-card__actions .btn {
        width: 100%;
    }
}

.publication-card__author img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.publication-card__name {
    margin: 0 0 4px;
    font-weight: 700;
    color: var(--color-dark);
}

.publication-card__role {
    margin: 0;
    font-size: 14px;
    color: var(--color-muted);
}

.publications p strong {
    color: var(--color-dark);
}

.services-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 20px;
    border: 1px solid rgba(47, 76, 221, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: default;
}

.service-card[data-link] {
    cursor: pointer;
}

.service-card[data-link]:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
    background-color: rgba(84, 118, 169, 0.04);
}

.service-card[data-link]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(84, 118, 169, 0.32), var(--shadow-strong);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(47, 76, 221, 0.18), rgba(47, 76, 221, 0.4));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.08em;
}

.service-card h3 {
    margin: 0;
    font-size: 24px;
    color: var(--color-dark);
}

.service-card__content {
    display: grid;
    gap: 12px;
}

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

.service-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.service-card ul li {
    position: relative;
    padding-left: 18px;
    color: var(--color-muted);
}

.service-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

.section__placeholder {
    margin-top: 24px;
    color: var(--color-muted);
    font-style: italic;
}

.site-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 96px;
}

.site-footer__inner {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    padding: 64px 0;
}

.site-footer__inner p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__links ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 10px;
}

.site-footer__links a,
.site-footer__legal a {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.site-footer__links a:hover,
.site-footer__legal a:hover {
    color: #fff;
}

.site-footer__contacts a {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
}

.site-footer__contacts p {
    margin: 10px 0 16px;
    white-space: pre-line;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__legal {
    display: flex;
    align-items: center;
    gap: 18px;
}

@media (max-width: 992px) {
    .site-nav__toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        z-index: 99;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 80px 24px 24px;
        display: none;
    }

    .site-nav[data-open="true"] {
        display: flex;
        transform: translateX(0);
    }

    .site-nav__list {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 400px;
    }

    .site-nav__list li {
        width: 100%;
    }

    .site-nav__list li a {
        width: 100%;
        padding: 16px 20px;
        border-radius: var(--radius-md);
        color: rgba(255, 255, 255, 0.9);
        justify-content: center;
        font-size: 18px;
    }

    .site-nav__list li a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero__content {
        grid-column: span 1;
        order: 1;
    }

    .hero__media {
        grid-column: span 1;
        order: 2;
    }

    .hero__media img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 32px);
    }

    .hero {
        padding: 48px 0;
    }

    .section {
        padding: 48px 0;
    }

    .header-top {
        display: none;
    }

    .header-top__inner {
        gap: 12px;
    }

    .header-top__contacts,
    .header-top__actions {
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: clamp(28px, 6vw, 36px);
    }

    .hero__description {
        font-size: 16px;
    }

    .hero__media {
        order: 1;
        margin-bottom: 24px;
    }

    .hero__content {
        order: 2;
    }

    .hero__media img {
        max-width: 240px;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__legal {
        flex-wrap: wrap;
    }
}

.scroll-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 32px rgba(47, 76, 221, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    box-shadow: 0 22px 38px rgba(47, 76, 221, 0.32);
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.error-page {
    padding: 80px 0 120px;
    position: relative;
}

.error-page::before {
    content: "";
    position: absolute;
    inset: 40px 10% auto;
    height: 320px;
    background: radial-gradient(circle at center, rgba(84, 118, 169, 0.15), rgba(84, 118, 169, 0));
    pointer-events: none;
    z-index: 0;
}

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

.error-page__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 56px;
    text-align: center;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 32px 80px rgba(12, 27, 50, 0.1);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.error-page__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #5476a9, #7295cd);
    color: #ffffff;
    font: 700 40px/1 "HelveticaNeue", "HelveticaNeueCyr", Arial, sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    box-shadow: 0 20px 40px rgba(84, 118, 169, 0.35);
}

.error-page h1 {
    margin: 0;
    font: 600 32px/1.2 "Prata", "Times New Roman", serif;
    color: var(--color-primary);
}

.error-page__lead {
    margin: 0 auto;
    max-width: 540px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-muted);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.error-page__note {
    margin-top: 8px;
    font-size: 16px;
    color: var(--color-muted);
}

.error-page__link {
    border: none;
    background: none;
    color: #5476a9;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.error-page__link:hover,
.error-page__link:focus {
    color: #2f4b7b;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .error-page {
        padding: 60px 0 80px;
    }

    .error-page::before {
        inset: 20px 5% auto;
        height: 240px;
    }

    .error-page__inner {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .error-page__badge {
        width: 96px;
        height: 96px;
        font-size: 32px;
    }

    .error-page h1 {
        font-size: 26px;
    }

    .error-page__lead {
        font-size: 16px;
    }
}
