@font-face {
    font-family: 'ALS Sector';
    src: url('ALS_Sector-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ALS Sector';
    src: url('ALS_Sector-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'ALS Sector Stencil';
    src: url('ALS_Sector-Stencil.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #1A1A19;
    --mstu-blue: #006CDC;
    --mstu-yellow: #2397EA;
    --text-white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(26, 26, 25, 0.7);
    --border-glow: 0 0 10px rgba(0, 108, 220, 0.4);
    --grid-color: rgba(255, 255, 255, 0.03);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'ALS Sector', sans-serif;
    overflow-x: hidden;
    cursor: crosshair;
}

body.modal-open {
    overflow: hidden;
}

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

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--mstu-blue);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease-out;
}

#custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--mstu-yellow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1100;
}

.mstu-logo {
    height: 40px;
}

.logo-divider {
    width: 1px;
    height: 30px;
    background: var(--text-muted);
}

.logo-text {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--mstu-blue);
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.burger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.btn {
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-yellow {
    background: var(--mstu-yellow);
    color: var(--bg-color);
}

.btn-yellow:hover {
    background: #ffd700;
    box-shadow: 0 0 15px rgba(234, 195, 27, 0.5);
}

.btn-blue {
    background: var(--mstu-blue);
    color: var(--text-white);
}

.btn-blue:hover {
    box-shadow: 0 0 20px rgba(0, 108, 220, 0.6);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.btn-full {
    width: 100%;
    margin-top: 20px;
}

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

#map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: 1;
}

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

.coordinate-tracker {
    font-family: 'Courier New', monospace;
    color: var(--mstu-blue);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.coordinate-tracker .label {
    opacity: 0.5;
}

.glitch-text {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-labels {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.label-item {
    background: rgba(0, 108, 220, 0.2);
    border-left: 3px solid var(--mstu-blue);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-family: monospace;
}

.b-box {
    position: relative;
    border: 1px solid rgba(0, 108, 220, 0.3);
    transition: all 0.3s ease;
}

.b-box:hover {
    border-color: var(--mstu-blue);
    box-shadow: var(--border-glow);
}

.node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--mstu-blue);
}

.node.tl { top: -3px; left: -3px; }
.node.tr { top: -3px; right: -3px; }
.node.bl { bottom: -3px; left: -3px; }
.node.br { bottom: -3px; right: -3px; }

.bento-section {
    padding: 80px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
}

.bento-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
}

.bento-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-transform: uppercase;
    color: var(--mstu-blue);
}

.bento-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-medium {
    grid-column: span 2;
}

.item-small {
    grid-column: span 1;
}

.item-full {
    grid-column: span 4;
}

.accent-blue { background: rgba(0, 108, 220, 0.05); }
.accent-yellow { background: rgba(234, 195, 27, 0.05); }

.section-divider {
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0.5;
}

.divider-line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, transparent, var(--mstu-blue), transparent);
}

.decor-block {
    overflow: hidden;
    background: rgba(0, 108, 220, 0.05) !important;
    position: relative;
    min-height: 250px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-scanner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mstu-blue), transparent);
    box-shadow: 0 0 15px var(--mstu-blue);
    z-index: 5;
    animation: scan 4s linear infinite;
}

.scanner-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(0, 108, 220, 0.15) 1px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.5;
}

.scanner-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.target-box {
    width: 120px;
    height: 120px;
    max-width: 40vw;
    max-height: 40vw;
    border: 1px solid rgba(0, 108, 220, 0.5);
    position: relative;
    animation: pulse-target 2s ease-in-out infinite;
}

.target-box::before, .target-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--mstu-blue);
}

.target-box::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.target-box::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.scanner-text {
    font-family: monospace;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 2px;
    border-left: 2px solid var(--mstu-blue);
    max-width: 100%;
    text-align: center;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
    animation: blink 1s step-end infinite;
    flex-shrink: 0;
}

.text-cmd {
    color: var(--text-white);
    font-weight: bold;
    white-space: nowrap;
}

.text-data {
    color: var(--mstu-blue);
    opacity: 0.8;
    white-space: nowrap;
}

@keyframes scan {
    0% { top: -5%; }
    100% { top: 105%; }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes pulse-target {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
}

.form-section {
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(0, 108, 220, 0.1) 0%, transparent 70%);
}

.glass-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: clamp(20px, 5vw, 50px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
}

.career-path {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(0, 108, 220, 0.05);
    border-radius: 4px;
    border-left: 2px solid var(--mstu-blue);
    flex-wrap: wrap;
}

.career-path li {
    list-style: none;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-color);
    position: relative;
}

footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    max-width: 1200px;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-mini-logo {
    height: 45px;
    width: auto;
    filter: brightness(0.9);
}

.footer-status {
    font-family: monospace;
}

.online {
    color: #00ff00;
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .item-full {
        grid-column: span 2;
    }
    .career-path {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .burger-menu {
        display: flex;
    }

    .glass-header nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
    }

    .glass-header nav.active {
        display: flex;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: left;
        padding-top: 120px;
    }

    .hero-labels {
        position: static;
        margin-top: 40px;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        width: 100%;
    }

    .label-item {
        width: fit-content;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-item, .item-large, .item-medium, .item-small, .item-full {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: auto;
        padding: 25px;
    }

    .glitch-text {
        font-size: 2.2rem;
    }

    .career-path {
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
    }

    .glass-form-container {
        width: 100%;
        padding: 25px 15px;
    }

    footer {
        padding: 40px 0;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 15px;
    }

    .footer-mini-logo {
        height: 60px;
    }

    .footer-status {
        margin-top: 10px;
    }
}

/* Стили для системы бронирования */
.workspace-zone { cursor: pointer; }

.workspace-zone .desk-rect {
    fill: rgba(0, 108, 220, 0.1);
    stroke: rgba(0, 108, 220, 0.4);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.workspace-zone:hover .desk-rect {
    fill: rgba(0, 108, 220, 0.25);
    stroke: var(--mstu-blue);
    filter: drop-shadow(0 0 5px var(--mstu-blue));
}

.workspace-zone.selected .desk-rect {
    fill: rgba(35, 151, 234, 0.3);
    stroke: var(--mstu-yellow);
    filter: drop-shadow(0 0 10px var(--mstu-yellow));
}

.zone-label {
    fill: var(--text-muted);
    font-size: 14px;
    font-family: monospace;
    pointer-events: none;
}

.workspace-zone:hover .zone-label,
.workspace-zone.selected .zone-label {
    fill: var(--text-white);
    font-weight: bold;
}

.time-slots-grid {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.time-slots-grid::-webkit-scrollbar {
    width: 4px;
}

.time-slots-grid::-webkit-scrollbar-thumb {
    background: var(--mstu-blue);
    border-radius: 2px;
}

.time-slot-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 108, 220, 0.3);
    color: var(--text-muted);
    padding: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 3px;
    text-align: center;
}

.time-slot-btn:hover {
    border-color: var(--mstu-blue);
    color: var(--text-white);
    background: rgba(0, 108, 220, 0.1);
}

.time-slot-btn.selected {
    background: rgba(0, 108, 220, 0.2);
    border-color: var(--mstu-yellow);
    color: var(--mstu-yellow);
    box-shadow: 0 0 10px rgba(234, 195, 27, 0.2);
}

#submit-booking:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
}

.booking-status {
    border-left: 2px solid var(--mstu-blue);
}

@media (max-width: 992px) {
    .booking-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

