:root {
    --bg-primary: #0d0f1a;
    --bg-secondary: #131524;
    --bg-card: #1a1d2f;
    --bg-card-hover: #21243b;
    --text-primary: #eef0fa;
    --text-secondary: #a1a4bd;
    --text-muted: #6b6e89;
    --accent: #818cf8;
    --accent-light: #a5b4fc;
    --accent-deep: #6366f1;
    --accent-soft: #c7d2fe;
    --accent-gradient: linear-gradient(135deg, #818cf8, #a5b4fc);
    --border: #252846;
    --border-light: #353a5e;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 2px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 36px rgba(0,0,0,0.4);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --canvas-line: 129, 140, 248;
    --canvas-glow: 165, 180, 252;
}

[data-theme="light"] {
    --bg-primary: #fafbff;
    --bg-secondary: #f1f3fb;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f6fd;
    --text-primary: #14172a;
    --text-secondary: #4d5170;
    --text-muted: #797d99;
    --accent: #5b67ed;
    --accent-light: #6366f1;
    --accent-deep: #4338ca;
    --accent-soft: #818cf8;
    --accent-gradient: linear-gradient(135deg, #5b67ed, #818cf8);
    --border: #e3e5f0;
    --border-light: #c8cbdc;
    --shadow: 0 1px 8px rgba(20, 23, 42, 0.06);
    --shadow-lg: 0 8px 28px rgba(20, 23, 42, 0.10);
    --canvas-line: 91, 103, 237;
    --canvas-glow: 67, 56, 202;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Не давать мобильным браузерам автоматически увеличивать мелкие шрифты —
       сохраняет одинаковую типографику между desktop и mobile */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html, body {
    max-width: 100%;
    overflow-x: hidden; /* iOS Safari иногда даёт phantom horizontal scroll даже без видимого overflow */
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== NAVBAR ==================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: color-mix(in srgb, var(--bg-primary) 85%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
    transition: var(--transition);
}

.logo:hover {
    color: var(--accent-light);
}

.logo-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-mark {
    transform: rotate(22.5deg);
}

.logo-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1;
    color: var(--text-primary);
}

.logo-j8 {
    font-weight: 700;
    letter-spacing: -0.01em;
    display: none; /* временно скрыт везде — оставляем только TEAM как wordmark. Откат: убрать display:none */
}

.logo-team {
    /* временно крупный wordmark вместо J8. Откат: вернуть color: var(--text-muted), font-size: 0.65rem */
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* visually-hidden — стандарт для SEO/screenreader контента, который не виден визуально */
.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;
}

.footer-logo {
    color: var(--accent);
}

.footer-logo .logo-mark {
    width: 36px;
    height: 36px;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-light);
}

.nav-cta {
    background: var(--accent);
    color: var(--bg-primary) !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--accent-light);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.theme-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.theme-icon-sun {
    display: none;
}

[data-theme="light"] .theme-icon-moon {
    display: none;
}

[data-theme="light"] .theme-icon-sun {
    display: block;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== HERO ==================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg canvas {
    width: 100%;
    height: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(129, 140, 248, 0.05) 0%, transparent 65%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-emblem {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.hero-title {
    margin: 0;
    line-height: 1;
}

.hero-emblem-svg {
    width: clamp(160px, 22vw, 220px);
    height: auto;
    color: var(--accent);
    display: block;
}

.hero-emblem-octagon {
    opacity: 0.7;
}

.hero-emblem-text {
    letter-spacing: -0.04em;
}

/* === LIVE HERO EMBLEM ===========================================
   Чтобы откатить:
   1) Убрать класс "hero-emblem--live" с <div class="hero-emblem hero-emblem--live"> в index.html
   2) Удалить блок между маркерами LIVE HERO EMBLEM START / END в styles.css
================================================================ */
/* LIVE HERO EMBLEM START */
.hero-emblem--live .hero-emblem-svg {
    transition: filter 0.4s ease;
}

.hero-emblem--live .hero-emblem-octagon {
    /* pathLength="100" → можно работать в "процентах" длины */
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transform-box: fill-box;
    transform-origin: 50% 50%;
    opacity: 0.7;
    animation: hero-draw 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards,
               hero-breathe 6s ease-in-out 2.2s infinite;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-emblem--live .hero-emblem-text {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: hero-text-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards;
}

.hero-emblem--live:hover .hero-emblem-octagon {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: rotate(45deg);
}

.hero-emblem--live:hover .hero-emblem-svg {
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 35%, transparent));
}

@keyframes hero-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes hero-breathe {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 0.95; }
}

@keyframes hero-text-in {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-emblem--live .hero-emblem-octagon,
    .hero-emblem--live .hero-emblem-text {
        animation: none;
        stroke-dashoffset: 0;
        opacity: 1;
        transform: none;
    }
    .hero-emblem--live .hero-emblem-octagon { opacity: 0.7; }
}
/* LIVE HERO EMBLEM END */

.hero-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    width: 100%;
    max-width: 320px;
}

.hero-rule span {
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.hero-rule em {
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--text-secondary);
    padding-right: 0;
    text-indent: 0.4em;
}

.hero-meta {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-meta-dot {
    color: var(--accent);
    opacity: 0.7;
}

.hero-slogan {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 18px;
    letter-spacing: 0.01em;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(129, 140, 248, 0.22);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

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

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--accent);
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: left;
    line-height: 1.4;
    font-weight: 500;
}

/* ==================== SECTIONS COMMON ==================== */

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--accent-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.accent {
    color: var(--accent);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-main {
    padding-right: 20px;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 500;
}

.about-main p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-card {
    /* Grid: иконка слева занимает обе строки, h3 и p — справа колонкой.
       Без этого на узких экранах h3 и p становятся flex-siblings и сжимаются в две узкие колонки. */
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    row-gap: 4px;
    align-items: start;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.value-card .value-icon { grid-row: 1 / span 2; align-self: start; }
.value-card h3 { grid-column: 2; }
.value-card p  { grid-column: 2; }

.value-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.value-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.value-icon svg {
    width: 28px;
    height: 28px;
}

.value-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== SERVICES ==================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
}

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

.service-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 18px;
    opacity: 0.85;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.service-tags li {
    padding: 3px 10px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==================== PLATFORMS ==================== */

.platforms {
    background: var(--bg-secondary);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.platforms-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

.platform-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

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

.platform-card.featured {
    border-color: rgba(129, 140, 248, 0.45);
    background: var(--bg-card);
}

.platform-badge {
    position: absolute;
    top: -1px;
    right: 24px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 4px 14px;
    border-radius: 0 0 6px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.platform-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.platform-icon svg {
    width: 48px;
    height: 48px;
}

.platform-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.platform-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.platform-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.platform-features li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
}

.platform-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

/* ==================== KNOWLEDGE BASE ==================== */

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.knowledge-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.knowledge-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.knowledge-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 28px 0;
}

.knowledge-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--accent);
}

.knowledge-icon svg {
    width: 24px;
    height: 24px;
}

.knowledge-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.knowledge-body {
    padding: 20px 28px 28px;
}

.knowledge-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.knowledge-highlight {
    background: rgba(129, 140, 248, 0.04);
    border-left: 2px solid var(--accent);
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin-top: 16px;
}

.knowledge-highlight strong {
    color: var(--accent-light);
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.knowledge-highlight {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== CTA ==================== */

.cta-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.cta-block {
    text-align: center;
    padding: 56px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(129, 140, 248, 0.06), transparent 60%);
    pointer-events: none;
}

.cta-block h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.cta-block p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
    position: relative;
}

.cta-block .btn {
    position: relative;
}

/* ==================== CONTACT ==================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item--link {
    text-decoration: none;
    color: inherit;
    padding: 10px 14px;
    margin: 0 -14px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: var(--transition);
}

.contact-item--link:hover {
    border-color: var(--border-light);
    background: var(--bg-card);
}

.contact-item--link:hover svg {
    color: var(--accent-light);
}

.contact-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-item span {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.contact-campus {
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius);
}

.campus-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.campus-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.contact-success[hidden] { display: none !important; }

.contact-success {
    text-align: center;
    padding: 60px 36px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    animation: fadeInUp 0.4s ease-out;
}

.contact-success__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--accent-light);
    flex-shrink: 0;
}

.contact-success__icon svg {
    display: block;
    width: 72px;
    height: 72px;
}

.contact-success h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.contact-success p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    color: var(--text-muted);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6d8a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select.selected {
    color: var(--text-primary);
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

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

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-style: italic;
}

.footer-campus {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
    font-style: normal !important;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ==================== ANIMATIONS ==================== */

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

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 1024px) {
    .services-grid,
    .platforms-grid,
    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-container {
        gap: 12px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 80vw);
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: var(--transition);
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.05rem;
    }

    .nav-cta {
        text-align: center;
        width: 100%;
    }

    .hero {
        padding: 110px 0 60px;
    }

    .hero-emblem-svg {
        width: clamp(150px, 45vw, 200px);
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 12px;
        max-width: 420px;
        margin: 0 auto;
    }

    .stat {
        align-items: flex-start;
        gap: 10px;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-main {
        padding-right: 0;
    }

    .services-grid,
    .platforms-grid,
    .platforms-grid--two,
    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .platform-card {
        padding: 26px 22px;
    }

    .knowledge-header {
        padding: 22px 22px 0;
    }

    .knowledge-body {
        padding: 16px 22px 22px;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .cta-block {
        padding: 40px 24px;
    }

    .cta-block h2 {
        font-size: 1.45rem;
    }

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

    section {
        padding: 60px 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-mark {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 10px;
    }

    .stat-label {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .stat-icon {
        font-size: 1.3rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .service-tags {
        gap: 6px;
    }

    .service-tags li {
        font-size: 0.7rem;
    }


}
