/* =========================================
       БАЗОВЫЕ ПЕРЕМЕННЫЕ САЙТА
       Здесь собраны основные цвета, тени, радиусы,
       ширина контейнера и скорость анимаций.
       При переносе на Joomla это главный блок для
       централизованной настройки визуального стиля.
       ========================================= */
:root {
    --bg: #ffffff;
    --bg-soft: #f6f9fc;
    --bg-card: rgba(255, 255, 255, 0.88);
    --text: #102033;
    --muted: #5c6c7f;
    --line: rgba(16, 32, 51, 0.08);
    --line-strong: rgba(16, 32, 51, 0.14);
    --primary: #0b5cab;
    --primary-2: #1a8ca8;
    --accent: #dff4ff;
    --shadow: 0 16px 50px rgba(16, 32, 51, 0.08);
    --shadow-hover: 0 20px 60px rgba(11, 92, 171, 0.16);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1360px;
    --transition: 400ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   ОБЩИЙ ФОН И БАЗОВОЕ ОФОРМЛЕНИЕ СТРАНИЦЫ
   Этот блок задаёт основной фон сайта, шрифт,
   базовый цвет текста и защиту от горизонтальной
   прокрутки.
   ========================================= */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 0% 0%, rgba(15, 167, 223, 0.12), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(40, 201, 193, 0.10), transparent 24%),
    linear-gradient(180deg, #f8fcff 0%, #eff6fb 42%, #f7fbff 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(17, 38, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 38, 58, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
    z-index: -1;
}

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

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

h1, h2, h3, p {
    margin: 0;
}

/* =========================================
   КОНТЕЙНЕР
   Ограничивает рабочую ширину контента и центрирует
   все основные секции страницы.
   При переносе в Joomla этот блок можно оставить
   как общий класс-обёртку для модулей и секций.
   ========================================= */
.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

/* =========================================
   УНИВЕРСАЛЬНЫЕ ОТСТУПЫ СЕКЦИЙ
   Используется для всех крупных блоков страницы:
   лаборатории, проекты, лицензии и т.д.
   ========================================= */
.section {
    padding: 88px 0;
    position: relative;
}

/* =========================================
   ЗАГОЛОВКИ СЕКЦИЙ
   Единый стиль для заголовков второго уровня:
   размер, межбуквие, насыщенность, читаемость.
   ========================================= */
.section-title {
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.08;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
    font-weight: 700;
    max-width: 780px;
    font-family: "Segoe UI", Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

.section-lead {
    max-width: 840px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 38px;
}

/* =========================================
   МАЛЫЙ ПОДЗАГОЛОВОК / БЕЙДЖ СЕКЦИИ
   Это маленькая плашка над основным заголовком:
   «О центре», «Лаборатории», «Наши проекты» и т.д.
   ========================================= */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 0 18px rgba(11, 92, 171, 0.35);
}

/* ===== HEADER ===== */

/* =========================================
   ШАПКА САЙТА
   Липкая верхняя панель с логотипом и навигацией.
   При переносе в Joomla этот блок удобно связать
   с шаблонным header сайта.
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(16, 32, 51, 0.06);
}

.site-header > .container {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    min-height: 78px;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-shrink: 0;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(11, 92, 171, .10), rgba(26, 140, 168, .14));
    border: 1px solid rgba(11, 92, 171, .10);
    place-items: center;
    color: var(--primary);
    font-size: 23px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    flex: 0 0 auto;
    display: grid;
}

.brand-mark img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    object-position: center top;
    display: block;
}

.brand-text {
    min-width: 0;
}

.brand-title {
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 800;
    color: var(--text);
}

.brand-subtitle {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    flex-shrink: 0;
    flex-grow: 1;
}

.nav-links a {
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--muted);
    transition: 0.25s ease;
    flex-shrink: 0;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(11, 92, 171, 0.06);
}

.nav-cta {
    padding: 12px 18px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 30px rgba(11, 92, 171, 0.24);
}

.nav-cta:hover {
    color: var(--primary) !important;
    background: rgba(11, 92, 171, 0.10);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(11, 92, 171, 0.14);
}

.lang-switcher {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
}

.lang-switcher::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: var(--muted);
    pointer-events: none;
    opacity: 0.85;
}

.lang-switcher__select {
    width: 68px;
    height: 31px;
    border-radius: 999px;
    border: 1px solid rgba(16, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 18px rgba(16, 32, 51, 0.06);
    backdrop-filter: blur(14px);
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0 24px 0 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.lang-switcher__select:hover {
    border-color: rgba(11, 92, 171, 0.18);
    box-shadow: 0 10px 22px rgba(16, 32, 51, 0.08);
    transform: translateY(-1px);
}

.lang-switcher__select:focus {
    outline: none;
    border-color: rgba(11, 92, 171, 0.28);
    box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.12);
}

#about,
#labs,
#capabilities,
#projects,
#licenses,
#science-links,
#contacts {
    scroll-margin-top: 104px;
}


/* ===== HERO TO ABOUT TRANSITION ===== */

/* ===== ABOUT ===== */

/* =========================================
   БЛОК «О ЦЕНТРЕ»
   Двухколоночная структура: текст слева,
   видео или медиа-блок справа.
   ========================================= */
.about-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
    align-items: start;
}

.about-text-wrap {
    max-width: 760px;
}

.about-video-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.video-card {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    transition: transform .35s ease;
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-card video {
    width: 100%;
    height: auto;
    min-height: 360px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 39, 64, 0.08);
}

.video-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 32, 51, 0.04), rgba(16, 32, 51, 0.20));
    pointer-events: none;
    border-radius: var(--radius-xl);
}

.video-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(16, 32, 51, 0.12);
}

/* ===== LABS ===== */

/* =========================================
   СЕТКА ЛАБОРАТОРИЙ
   На широких экранах — по две карточки в ряд.
   На более узких — адаптивно перестраивается.
   ========================================= */
.labs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

/* Карточка отдельной лаборатории:
   фон-изображение, затемнение, заголовок и описание. */
.lab-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 30px;
    min-height: 390px;
    background: #ffffff;
    border: 1px solid rgba(16, 32, 51, 0.07);
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

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

.lab-card-media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.01);
    transition: transform 0.8s ease;
}

.lab-card:hover .lab-card-media {
    transform: scale(1.08);
}

.lab-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 32, 51, 0.04) 0%, rgba(16, 32, 51, 0.16) 40%, rgba(16, 32, 51, 0.82) 100%);
}

.lab-card-content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    color: #fff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lab-card-title {
    font-size: clamp(22px, 2.4vw, 31px);
    line-height: 1.12;
    letter-spacing: -0.028em;
    font-weight: 600;
    margin: 0 0 12px;
    max-width: 92%;
    font-family: "Segoe UI", Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

.lab-card-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.90);
    max-width: 92%;
}

.lab-card-more {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 100%;
    margin-top: 14px;
    padding-left: 18px;
    font-size: 15px;
    font-weight: 700;
    color: #dff6ff;
    text-align: right;
    transition: transform .24s ease, color .24s ease, opacity .24s ease;
}

.lab-card:hover .lab-card-more {
    transform: translateX(4px);
    color: #ffffff;
}

/* ===== FEATURES ===== */

/* =========================================
   СЕТКА БЛОКА «ВОЗМОЖНОСТИ ЛАБОРАТОРИЙ»
   Две карточки в ряд на широких экранах.
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* Карточка возможностей лабораторий.
   Здесь задаются фон, тени, hover-эффект и общая
   пластика карточки. */
.feature-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 32, 51, 0.07);
    box-shadow: var(--shadow);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease, background 0.32s ease;
    isolation: isolate;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 92, 171, 0.05), rgba(26, 140, 168, 0.02) 42%, transparent 72%);
    opacity: 0;
    transition: opacity 0.32s ease;
    z-index: -1;
}

/* Декоративную нижнюю линию у карточек возможностей убрали,
   чтобы hover-эффект выглядел спокойнее и чище. */
.feature-card::after {
    content: none;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(16, 32, 51, 0.12);
    border-color: rgba(11, 92, 171, 0.16);
    background: rgba(255, 255, 255, 0.98);
}

.feature-card:hover::before {
    opacity: 1;
}

/* Состояние hover для нижней линии больше не используется. */
.feature-card:hover::after {
    transform: none;
    opacity: 0;
}

.feature-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

/* Иконка внутри карточки возможностей. */
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(11, 92, 171, 0.10), rgba(26, 140, 168, 0.12));
    border: 1px solid rgba(11, 92, 171, 0.10);
    color: var(--primary);
    font-size: 24px;
    transition: transform 0.32s ease, box-shadow 0.32s ease, background 0.32s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 28px rgba(11, 92, 171, 0.12);
    background: linear-gradient(135deg, rgba(11, 92, 171, 0.16), rgba(26, 140, 168, 0.18));
}

/* Заголовок карточки возможностей. */
.feature-title {
    margin: 4px 0 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.022em;
    font-family: "Segoe UI", Arial, sans-serif;
    text-rendering: optimizeLegibility;
    transition: color 0.32s ease, transform 0.32s ease;
}

.feature-card:hover .feature-title {
    color: #123e66;
    transform: translateX(2px);
}

.feature-list {
    margin: 0;
    padding: 0 0 0 20px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 15px;
}

.feature-list li {
    transition: color 0.28s ease, transform 0.28s ease;
}

.feature-card:hover .feature-list li {
    color: #4c6478;
    transform: translateX(1px);
}

.feature-list li + li {
    margin-top: 8px;
}

/* ===== PROJECTS ===== */

/* =========================================
   СЕТКА ПРОЕКТОВ
   Две обычные карточки сверху и одна широкая
   карточка проекта на всю ширину ниже.
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Карточка проекта с фоновой подложкой,
   затемнением и текстом поверх изображения. */
.project-card {
    position: relative;
    min-height: 390px;
    padding: 30px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
    transition: transform .35s ease, box-shadow .35s ease;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--project-image);
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 700ms ease;
    z-index: -3;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 38, 58, 0.08), rgba(17, 38, 58, 0.50) 46%, rgba(17, 38, 58, 0.90) 100%),
    linear-gradient(135deg, rgba(15, 167, 223, 0.10), transparent 38%);
    z-index: -2;
}

.project-card:hover::before {
    transform: scale(1.08);
}

.project-badge {
    align-self: flex-start;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 16px;
    color: #ffffff;
}

.project-card h3 {
    color: #ffffff;
}

.project-card p {
    margin-top: 12px;
    color: rgba(245, 250, 255, 0.90);
    line-height: 1.7;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 24px;
    min-height: 50px;
    min-width: 170px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #dff6ff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: transform .22s ease,
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(7, 17, 29, 0.16);
}

/* Широкая карточка большого проекта на всю ширину.
   Используется как рекламный / акцентный блок. */
.project-card.project-featured {
    grid-column: 1 / -1;
    min-height: 430px;
    padding: 38px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.project-featured-top {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-card.project-featured .project-badge {
    display: inline-flex;
    width: auto;
    max-width: fit-content;
    align-self: center;
    padding-inline: 14px;
}


.project-featured h3 {
    max-width: 1040px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0;
    color: #fff;
}

.project-featured p {
    max-width: 900px;
    margin: 16px auto 0;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(245, 250, 255, 0.92);
    text-align: center;
}


/* ===== LINKS ===== */

/* =========================================
   БЛОК НАУЧНОЙ ДЕЯТЕЛЬНОСТИ
   Карточки-ссылки на отдельные разделы:
   кадры, проекты, публикации, научные работы.
   ========================================= */
.links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.link-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 32, 51, 0.07);
    box-shadow: var(--shadow);
    transition: 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(16, 32, 51, 0.11);
    border-color: rgba(11, 92, 171, 0.12);
}

.link-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(11, 92, 171, 0.10), rgba(26, 140, 168, 0.10));
    border: 1px solid rgba(11, 92, 171, 0.10);
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 24px;
}

.link-card-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-family: "Segoe UI", Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

.link-card-text {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.link-card-arrow {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

/* ===== LICENSES ===== */

/* =========================================
   БЛОК ЛИЦЕНЗИЙ
   Сетка карточек с разрешительной документацией.
   ========================================= */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.license-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 32, 51, 0.07);
    box-shadow: var(--shadow);
    transition: 0.28s ease;
}

.license-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(16, 32, 51, 0.11);
}

/* Фоновые watermark-иконки для двух лицензий.
   1-я карточка: ионизирующее излучение.
   2-я карточка: опасные/ядовитые вещества. */
.license-card::after {
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 88px;
    line-height: 1;
    color: rgba(16, 32, 51, 0.08);
    pointer-events: none;
    user-select: none;
}

.licenses-grid .license-card:nth-child(1)::after {
    content: "\f7b9";
    transform: rotate(-10deg);
}

.licenses-grid .license-card:nth-child(2)::after {
    content: "\f071";
    transform: rotate(8deg);
}

.license-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.license-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(11, 92, 171, 0.10), rgba(26, 140, 168, 0.12));
    border: 1px solid rgba(11, 92, 171, 0.10);
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 22px;
}

.license-number {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-family: "Segoe UI", Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

.license-text {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 15px;
}


/* ===== EQUIPMENT SHOWCASE ===== */

.equipment-section {
    position: relative;
    overflow: hidden;
}

.equipment-shell {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 34px;
    background: radial-gradient(circle at top right, rgba(11, 92, 171, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90));
    border: 1px solid rgba(16, 32, 51, 0.08);
    box-shadow: var(--shadow);
}

.equipment-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(rgba(17, 38, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 38, 58, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0));
    opacity: .5;
}

.equipment-head {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin-bottom: 26px;
}

.equipment-head .section-lead {
    margin-bottom: 0;
}

.equipment-stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: stretch;
}

.equipment-main {
    position: relative;
    min-height: 500px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(16, 32, 51, 0.10);
    background: #dde6ee;
    box-shadow: 0 20px 50px rgba(16, 32, 51, 0.12);
    isolation: isolate;
}

.equipment-main-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(20px) saturate(0.9) brightness(0.78);
    transform: scale(1.12);
    opacity: 0.92;
    z-index: -3;
    transition: background-image 300ms ease;
}

.equipment-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 44%, rgba(15, 26, 42, 0.36) 44%, rgba(15, 26, 42, 0.58) 100%);
    z-index: -2;
}

.equipment-main-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 0.80fr) minmax(300px, 1.2fr);
    align-items: center;
    min-height: 500px;
    gap: 18px;
    padding: 20px 20px 20px 22px;
}

.equipment-photo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.equipment-photo-card {
    width: 100%;
    max-width: 360px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 40px rgba(16, 32, 51, 0.16);
}

.equipment-photo-card img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    background: #f3f6fa;
}

.equipment-copy-panel {
    align-self: center;
    padding: 22px 24px 20px;
    background: linear-gradient(180deg, rgba(20, 32, 48, 0.72), rgba(20, 32, 48, 0.62));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(10, 18, 29, 0.16);
}

.equipment-badge {
    display: inline-flex;
    align-items: center;
    padding: 11px 18px;
    border-radius: 999px;
    background: #2d63f0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.equipment-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 800;
    max-width: 520px;
}

.equipment-subtitle {
    margin-top: 10px;
    color: rgba(241, 246, 253, 0.96);
    font-size: clamp(19px, 2vw, 28px);
    line-height: 1.28;
    letter-spacing: -0.02em;
    max-width: 520px;
    font-weight: 500;
}

.equipment-line {
    width: 104px;
    height: 6px;
    margin: 18px 0 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #245dff, #2f79ff);
    box-shadow: 0 0 18px rgba(47, 121, 255, 0.28);
}

.equipment-description {
    margin: 0;
    color: rgba(245, 249, 255, 0.94);
    font-size: 18px;
    line-height: 1.55;
    max-width: 520px;
}

.equipment-side {
    display: grid;
    grid-template-rows: 1fr;
    gap: 0;
    align-items: stretch;
}

.equipment-thumb {
    position: relative;
    min-height: 0;
    padding: 16px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 254, 0.88));
    border: 1px solid rgba(16, 32, 51, 0.08);
    box-shadow: 0 14px 28px rgba(16, 32, 51, 0.08);
    cursor: pointer;
    transition: transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease,
    opacity .28s ease;
}

.equipment-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(16, 32, 51, 0.12);
    border-color: rgba(11, 92, 171, 0.16);
}

.equipment-thumb.is-active {
    border-color: rgba(11, 92, 171, 0.26);
    box-shadow: 0 18px 36px rgba(11, 92, 171, 0.12);
}

.equipment-thumb-media {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #eef3f8;
}

.equipment-thumb-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f5f8fb;
}

.equipment-thumb-title {
    color: var(--text);
    font-size: 18px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.equipment-thumb-subtitle {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.equipment-controls {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.equipment-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.equipment-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(16, 32, 51, 0.14);
    cursor: pointer;
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.equipment-dot.is-active {
    background: #2d63f0;
    transform: scale(1.14);
    box-shadow: 0 0 0 5px rgba(45, 99, 240, 0.12);
}

.equipment-nav {
    display: inline-flex;
    gap: 10px;
}

.equipment-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(16, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.equipment-arrow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(16, 32, 51, 0.10);
    border-color: rgba(11, 92, 171, 0.16);
}


/* ===== CONTACTS ===== */

.contacts-section {
    padding: 0 0 90px;
}

/* =========================================
   КОНТАКТНЫЙ БЛОК
   Общая карточка с адресом, телефоном, почтой
   и дополнительной контактной информацией.
   ========================================= */
.contacts-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 34px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(16, 32, 51, 0.08);
    box-shadow: var(--shadow);
}

.contacts-card::before {
    content: "";
    position: absolute;
    inset: auto -100px -100px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 92, 171, 0.10), transparent 65%);
    pointer-events: none;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.contact-item {
    position: relative;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(16, 32, 51, 0.07);
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.04);
    transition: transform .28s ease, box-shadow .28s ease;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(16, 32, 51, 0.09);
}

.contact-item-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-item-label i {
    font-size: 16px;
}

.contact-item-value,
.contact-item-value a {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
}

/* ===== FOOTER ===== */

/* =========================================
   ПОДВАЛ САЙТА
   Нижняя часть страницы с краткой информацией
   об институте и иконками соцсетей.
   ========================================= */
.site-footer {
    padding: 40px 0 60px;
    border-top: 1px solid rgba(16, 32, 51, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(246, 249, 252, 0.8));
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer-brand {
    max-width: 640px;
}

.footer-brand strong {
    display: block;
    color: var(--text);
    font-weight: 800;
    margin-bottom: 6px;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.94));
    border: 1px solid rgba(16, 32, 51, 0.08);
    box-shadow: 0 10px 24px rgba(16, 32, 51, 0.08);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(16, 32, 51, 0.12);
    border-color: rgba(11, 92, 171, 0.18);
}

.social-button i,
.social-icon i {
    font-size: 17px;
    line-height: 1;
}

.social-button--facebook i,
.social-icon--facebook i {
    color: #1877f2;
}

.social-button--instagram i,
.social-icon--instagram i {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.social-icon {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.94));
    border: 1px solid rgba(16, 32, 51, 0.08);
    box-shadow: 0 12px 26px rgba(16, 32, 51, 0.10);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(16, 32, 51, 0.14);
    border-color: rgba(11, 92, 171, 0.18);
}

/* ===== REVEAL ===== */

/* =========================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ БЛОКОВ ПРИ ПРОКРУТКЕ
   Класс .reveal скрывает элемент до попадания
   в область видимости. JS добавляет .is-visible.
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(46px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */

/* =========================================
   АДАПТИВ ДЛЯ ПЛАНШЕТОВ И НЕБОЛЬШИХ НОУТБУКОВ
   Здесь перестраиваются крупные сетки и секции.
   ========================================= */

@media (max-width: 1100px) {
    .links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .link-card {
        min-height: 260px;
    }
}

@media (max-width: 1200px) {
    .equipment-stage {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 16px;
    }

    .equipment-side {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .equipment-main-inner {
        grid-template-columns: minmax(200px, 0.88fr) minmax(260px, 1.12fr);
        min-height: auto;
        gap: 16px;
    }

    .equipment-main {
        min-height: auto;
    }

    .equipment-photo-card {
        max-width: 320px;
    }

    .equipment-photo-card img {
        max-height: 360px;
    }

    .equipment-copy-panel {
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .equipment-shell {
        padding: 20px;
    }

    .equipment-stage {
        grid-template-columns: minmax(0, 1fr) 210px;
        gap: 14px;
    }

    .equipment-main-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .equipment-photo-card {
        max-width: 280px;
    }

    .equipment-photo-card img {
        max-height: 300px;
    }

    .equipment-main-inner {
        padding: 18px;
        gap: 18px;
    }

    .equipment-copy-panel {
        padding: 22px;
    }

    .equipment-title {
        font-size: clamp(28px, 6vw, 42px);
    }

    .equipment-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .equipment-shell {
        padding: 18px;
        border-radius: 26px;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .link-card {
        min-height: auto;
        padding: 18px;
    }

    .link-card-title {
        font-size: 28px;
    }

    .equipment-side {
        display: none;
    }

    .equipment-stage {
        grid-template-columns: 1fr;
    }

    .equipment-stage {
        gap: 14px;
    }

    .equipment-main-inner {
        padding: 14px;
    }

    .equipment-photo-card {
        padding: 10px;
    }

    .equipment-photo-card img {
        max-height: 280px;
    }

    .equipment-copy-panel {
        padding: 18px 18px 16px;
    }

    .equipment-title {
        font-size: clamp(24px, 8vw, 34px);
    }

    .equipment-subtitle {
        font-size: 18px;
    }

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

    .equipment-side {
        grid-template-columns: 1fr;
    }

    .equipment-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 1200px) {
    .hero-stage {
        grid-template-columns: 1fr;
        gap: 22px;
        min-height: auto;
    }


    .hero-spotlight {
        justify-content: flex-start;
        min-height: 280px;
        padding-left: 0;
    }

    .about-layout,
    .projects-grid,
    .licenses-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .about-video-wrap {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {

    .nav {
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 56px 0 88px;
    }

    .spotlight-stage {
        width: min(100%, 340px);
        height: 292px;
    }

    .spotlight-item {
        width: min(100%, 320px);
        padding: 20px 22px 18px;
    }

    .section {
        padding: 88px 0;
    }

    .video-card {
        max-width: 100%;
    }
}

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

/* =========================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   Уменьшает отступы, размеры заголовков и карточек.
   ========================================= */
@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    .project-card.project-featured {
        min-height: 380px;
        padding: 24px;
    }

    .project-featured h3 {
        font-size: clamp(24px, 7.2vw, 34px);
    }

    .project-featured p {
        font-size: 15px;
        line-height: 1.7;
    }


    .spotlight-stage {
        width: 100%;
        height: 280px;
    }

    .spotlight-item {
        width: min(100%, 300px);
    }

    .spotlight-item h3 {
        font-size: 20px;
        max-width: 240px;
    }

    .spotlight-item p {
        font-size: 13px;
        max-width: 248px;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding-top: 20px;
    }

    .hero-inner {
        width: min(1240px, calc(100% - 24px));
        padding: 56px 0 0;
    }

    .hero-copy h1 {
        font-size: clamp(34px, 11vw, 52px);
    }

    .hero-sub {
        font-size: 16px;
        line-height: 1.7;
    }

    .feature-card,
    .link-card,
    .license-card,
    .contacts-card,
    .contact-item {
        padding: 22px;
    }

    .lab-card,
    .project-card {
        min-height: 340px;
    }

    .lab-card-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .lab-card-more {
        margin-top: 12px;
        font-size: 14px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
    }

    .brand-mark img {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}


.section.border > .container {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(16, 32, 51, .08);
    padding: 28px;
}

.method-strip{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:stretch;
  gap:12px;
}

.method-pill{
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
  width:fit-content;
  max-width:min(100%, 460px);
  min-height:46px;
  padding:8px 14px;
  border-radius:14px;
  background:linear-gradient(135deg, #1b6eb8 0%, #277cb9 52%, #2d8db2 100%);
  border:none;
  box-shadow:0 10px 22px rgba(11,92,171,.16);
  transition:none;
  isolation:isolate;
  animation:none;
}

.method-pill::before{
  content:none;
}

.method-pill:hover{
  transform:none;
  background:linear-gradient(135deg, #1b6eb8 0%, #277cb9 52%, #2d8db2 100%);
  box-shadow:0 10px 22px rgba(11,92,171,.16);
}

.method-pill:hover::before{
  animation:none;
}

.method-pill i{
  width:24px;
  height:24px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:11px;
  color:#ffffff;
  flex:0 0 auto;
  background:rgba(255,255,255,.16);
  border:none;
  box-shadow:none;
  position:relative;
  z-index:1;
}

.method-pill span{
  color:#ffffff;
  font-size:12.5px;
  line-height:1.28;
  font-weight:700;
  position:relative;
  z-index:1;
  display:block;
  white-space:normal;
  overflow:visible;
  text-wrap:balance;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

@keyframes tagFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-1px)}
}

@keyframes tagShine{
  from{transform:translateX(-135%)}
  to{transform:translateX(135%)}
}

.section + .section {
    padding: 44px 0;
}

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

.other-lab-card{
      position:relative;
      min-height:250px;
      padding:24px;
      border-radius:26px;
      overflow:hidden;
      border:1px solid rgba(16,32,51,.08);
      background:rgba(255,255,255,.90);
      box-shadow:var(--shadow);
      transition:transform .28s ease, box-shadow .28s ease;
      display:flex;
      flex-direction:column;
      justify-content:flex-end;
    }

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

    .other-lab-media{
      position:absolute;
      inset:0;
      background-size:cover;
      background-position:center;
      transform:scale(1.02);
      transition:transform .8s ease;
    }

    .other-lab-card:hover .other-lab-media{
      transform:scale(1.08);
    }

    .other-lab-overlay{
      position:absolute;
      inset:0;
      background:linear-gradient(180deg, rgba(16,32,51,.04), rgba(16,32,51,.22) 44%, rgba(16,32,51,.82) 100%);
    }

    .other-lab-content{
      position:absolute;
      inset:auto 0 0 0;
      z-index:2;
      padding:24px;
      color:#fff;
      display:flex;
      flex-direction:column;
      align-items:flex-start;
    }

    .other-lab-content h3{
      font-size:26px;
      line-height:1.08;
      font-weight:800;
      letter-spacing:-.03em;
      margin-bottom:10px;
    }

    .other-lab-content p{
      color:rgba(255,255,255,.88);
      line-height:1.7;
      font-size:14px;
      margin-bottom:16px;
    }

    .other-lab-link{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:10px 14px;
      border-radius:999px;
      background:rgba(255,255,255,.92);
      color:var(--text);
      font-size:13px;
      font-weight:800;
    }

    @media (max-width: 1280px){
      .other-labs-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
      }

      .other-lab-content h3{
        font-size:24px;
        line-height:1.1;
      }
    }

    @media (max-width: 820px){
      .other-labs-grid{
        grid-template-columns:1fr;
      }

      .other-lab-content h3{
        font-size:26px;
      }
    }