@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    width: 100%;
    background-color: #0B1120;
    background-image: url('../bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem 3rem;
    position: relative;
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

/* ===== ОСНОВНЫЕ ЭЛЕМЕНТЫ ===== */
.main-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.page-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 700px;
    line-height: 1.5;
}

/* ===== ХЕДЕР ===== */
.glass-header {
    width: 100%;
    max-width: 1280px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(180%);
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem 0.8rem 1rem;
    position: relative;
    z-index: 100;
     margin-top: max(12px, env(safe-area-inset-top));
}
.header-left { display: flex; align-items: center; gap: 1rem; }
.logo-link { width: 48px; height: 48px; display: flex; transition: 0.2s; text-decoration: none; }
.logo-link:hover { transform: scale(1.05); }
.college-logo-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.section-title { font-size: 1.7rem; font-weight: 600; color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.2); white-space: nowrap; }

/* ===== БУРГЕР-МЕНЮ ===== */
.burger-wrapper { position: relative; z-index: 200; }
#burger-toggle { display: none; }
.burger-icon {
    width: 48px; height: 48px; background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px); border-radius: 50%; padding: 14px 10px;
    cursor: pointer; border: 1px solid rgba(255,255,255,0.2);
    display: flex; flex-direction: column; justify-content: space-between;
}
.burger-icon span { height: 3px; background: white; border-radius: 3px; transition: 0.3s; }
#burger-toggle:checked + .burger-icon span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
#burger-toggle:checked + .burger-icon span:nth-child(2) { opacity: 0; }
#burger-toggle:checked + .burger-icon span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
.dropdown-menu {
    position: absolute; top: calc(100% + 10px); right: 0; width: 280px;
    background: rgba(20,30,45,0.95); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.25); border-radius: 24px;
    padding: 0.5rem 0; opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s ease; z-index: 250;
}
#burger-toggle:checked ~ .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-item {
    display: block; padding: 14px 24px; color: white; font-weight: 500;
    text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: rgba(255,255,255,0.15); padding-left: 32px; }
.close-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: transparent; pointer-events: none; z-index: 140;
}
#burger-toggle:checked ~ .close-overlay { pointer-events: all; background: rgba(0,0,0,0.3); }

/* ===== КАРУСЕЛЬ ===== */
.carousel-container {
    position: relative;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto 3rem;
    z-index: 1;
}
.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.event-card {
    flex: 0 0 calc(20% - 1.2rem);
    min-width: 220px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 1.2rem;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.event-card:hover {  background: rgba(255,255,255,0.15); }
.event-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.event-description { font-size: 0.95rem; line-height: 1.5; opacity: 0.9; margin-bottom: 1.5rem; flex-grow: 1; }
.event-datetime {
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.15s ease;
    z-index: 10;
}
.arrow-left { left: -10px; }
.arrow-right { right: -10px; }

/* ===== КНОПКИ ПОД ЛЕНТОЙ ===== */
.buttons-grid {
    max-width: 1280px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}
.action-card {
    width: 218px;
    height: 186px;
    display: block;
    text-decoration: none;
    color: white;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
}
.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.8) 90%);
    z-index: 1;
    border-radius: 28px;
    pointer-events: none;
}
.action-card:hover {  box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.action-card:hover::before { background: linear-gradient(180deg, transparent 10%, rgba(0,0,0,0.9) 90%); }
.action-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 1rem;
    z-index: 2;
    pointer-events: none;
}
.action-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.4rem; text-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.action-description { font-size: 0.8rem; line-height: 1.4; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

/* ===== ДОСТИЖЕНИЯ СТУДЕНТОВ ===== */
.achievements-section {
    max-width: 1280px;
    width: 100%;
    margin: 2rem auto 3rem;
}
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.section-header p { font-size: 1rem; color: rgba(255,255,255,0.6); }
.achievements-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.achievement-card {
    position: relative;
    width: 280px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 32px;
    padding: 1.8rem 1.2rem 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    overflow: visible;
    margin-top: 60px;
    cursor: pointer;
}
.achievement-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,215,0,0.4);
    box-shadow: 0 25px 40px rgba(0,0,0,0.3);
}
.achievement-photo {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,215,0,0.6);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    background: #1a2a3a;
    transition: all 0.3s ease;
    z-index: 10;
}
.achievement-card:hover .achievement-photo {
    transform: translateX(-50%) scale(1.05);
    border-color: #ffd700;
}
.achievement-title { font-size: 1.2rem; font-weight: 700; color: white; margin: 0.8rem 0 0.3rem; }
.achievement-student { font-size: 0.85rem; color: #ffd700; font-weight: 500; margin-bottom: 0.5rem; }
.achievement-desc { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.4; }
.achievement-date { margin-top: 0.8rem; font-size: 0.7rem; color: rgba(255,255,255,0.45); }

/* Модальное окно для грамот (слайдер) */
.cert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.cert-modal-content {
    max-width: 90%;
    max-height: 90%;
    background: rgba(20,30,45,0.95);
    border-radius: 32px;
    border: 1px solid rgba(255,215,0,0.5);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}
.cert-slider-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}
.cert-slider {
    display: flex;
    transition: transform 0.3s ease;
}
.cert-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
}
.cert-slide img {
    width: 100%;
    border-radius: 20px;
    display: block;
}
.cert-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,215,0,0.3);
}
.cert-modal-header h3 { color: #ffd700; font-size: 1.2rem; }
.cert-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
.cert-modal-close:hover { color: #ffd700; }
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,215,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    z-index: 10;
}
.slider-btn:hover { background: rgba(255,215,0,0.3); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
}
.dot.active { background: #ffd700; }

/* ===== ЧАТ-ПОДДЕРЖКА ===== */
.chat-support {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.chat-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.chat-button:hover { transform: scale(1.05); background: rgba(255,255,255,0.3); }
.chat-button img { width: 70%; height: 70%; object-fit: contain; }
.chat-window {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 350px;
    height: 500px;
    max-width: calc(100vw - 40px);
    background: rgba(20,30,45,0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    z-index: 1001;
}
.chat-window.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-header {
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 0.6rem; }
.chat-header-icon { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
.chat-header-icon img { width: 100%; height: 100%; object-fit: cover; }
.chat-header-title { color: white; font-weight: 600; font-size: 0.95rem; }
.chat-header-sub { font-size: 0.65rem; color: rgba(255,255,255,0.6); }
.chat-close {
    background: none; border: none; color: white; font-size: 1.3rem;
    cursor: pointer; width: 30px; height: 30px; display: flex;
    align-items: center; justify-content: center; border-radius: 50%; transition: 0.2s;
}
.chat-close:hover { background: rgba(255,255,255,0.2); }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.message {
    max-width: 85%; padding: 0.6rem 0.9rem; border-radius: 18px;
    font-size: 0.8rem; line-height: 1.4;
}
.message-bot {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    color: white; align-self: flex-start; border-bottom-left-radius: 4px;
}
.message-user {
    background: rgba(100,150,200,0.3); border: 1px solid rgba(100,150,200,0.4);
    color: white; align-self: flex-end; border-bottom-right-radius: 4px;
}
.chat-input-area {
    padding: 0.8rem; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; gap: 0.5rem;
}
.chat-input {
    flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px; padding: 0.5rem 1rem; color: white; font-size: 0.8rem; outline: none;
}
.chat-input:focus { border-color: rgba(255,255,255,0.5); }
.chat-send {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px; padding: 0.5rem 1rem; color: white; cursor: pointer; transition: 0.2s;
}
.chat-send:hover { background: rgba(255,255,255,0.25); }

/* ===== PWA УСТАНОВКА ===== */
.pwa-modal {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(20,30,45,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,215,0,0.4);
    border-radius: 28px;
    padding: 1.2rem;
    z-index: 1002;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.pwa-modal.hidden { display: none; }
.pwa-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.pwa-icon { width: 50px; height: 50px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.pwa-title { color: #ffd700; font-weight: 700; font-size: 1.2rem; }
.pwa-desc { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-bottom: 1rem; }
.pwa-instructions { background: rgba(255,255,255,0.1); border-radius: 20px; padding: 0.8rem; margin: 0.8rem 0; }
.pwa-step { color: white; font-size: 0.75rem; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; }
.pwa-buttons { display: flex; gap: 0.8rem; margin-top: 0.8rem; }
.pwa-btn { flex: 1; text-align: center; padding: 0.6rem; border-radius: 40px; cursor: pointer; font-weight: 600; }
.pwa-install { background: #ffd700; color: #1a2a3a; }
.pwa-close { background: rgba(255,255,255,0.2); color: white; }

/* ===== СТИЛИ ДЛЯ indexv4.html (Найди кабинет) ===== */
.tour-main-btn {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,255,255,0.1));
    border: 2px solid rgba(255,215,0,0.5);
    border-radius: 60px;
    padding: 0.8rem 2rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    backdrop-filter: blur(8px);
}
.tour-main-btn:hover {
    background: rgba(255,215,0,0.3);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.buildings-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.building-card {
    flex: 0 1 300px;
    min-width: 280px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 32px;
    padding: 1.8rem 1.5rem;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.building-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}
.building-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}
.floor-section { margin-bottom: 1.5rem; }
.floor-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.2);
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.15);
}
.rooms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.room-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    transition: 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.room-badge:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.5);
}
.sport-hall {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}
.employees-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.employee-card {
    flex: 0 1 280px;
    min-width: 260px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 28px;
    padding: 1.5rem;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.employee-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
}
.employee-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
}
.employee-photo-img { width: 100%; height: 100%; object-fit: cover; }
.employee-photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; background: rgba(255,255,255,0.1);
}
.employee-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem; }
.employee-position { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-bottom: 0.8rem; font-weight: 500; }
.employee-room {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    color: white;
    transition: 0.2s;
}
.employee-room:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}
.tabs-container {
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.tab-button {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 60px;
    padding: 0.9rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;
}
/*.tab-button:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }*/
.tab-button.active {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.tab-content { display: none; width: 100%; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hint-text {
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ===== СТИЛИ ДЛЯ indexv5.html (Связь с куратором) ===== */
.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}
.course-sidebar {
    flex: 0 0 200px;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.course-tab {
    padding: 0.9rem 1.5rem;
    margin: 0.2rem 0;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 1rem;
}
.course-tab:hover { background: rgba(255,255,255,0.05); color: white; }
.course-tab.active {
    background: rgba(255,255,255,0.1);
    border-left-color: #aaccff;
    color: white;
}
.curator-info-panel { flex: 1; padding: 1.8rem; min-width: 260px; }
.curator-name { font-size: 1.6rem; font-weight: 600; color: white; margin-bottom: 0.5rem; }
.curator-position { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.groups-section { margin-bottom: 2rem; }
.section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.5); margin-bottom: 0.8rem; }
.groups-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.group-tag {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: white;
}
.group-spec { font-size: 0.7rem; color: rgba(255,255,255,0.6); display: block; }
.contact-card { background: rgba(255,255,255,0.05); border-radius: 20px; padding: 1.2rem; margin-top: 1rem; }
.phone-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    font-family: monospace;
    margin: 0.5rem 0;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem;
    border-radius: 12px;
    text-align: center;
}
.show-phone-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 40px;
    padding: 0.7rem 1.5rem;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.show-phone-btn:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }
.contact-links { margin-top: 1rem; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: none; }
.contact-links.visible { display: block; }
.email-link, .telegram-link {
    display: inline-block;
    color: #aaccff;
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}
.email-link:hover, .telegram-link:hover { text-decoration: underline; }

/* ===== СТИЛИ ДЛЯ indexv6.html (Анонимная запись к психологу) ===== */
.form-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 28px;
    padding: 2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 500; margin-bottom: 0.5rem; }
textarea, select, input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 0.9rem 1.2rem;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}
textarea:focus, select:focus, input:focus { outline: none; border-color: rgba(255,255,255,0.5); }
textarea { resize: vertical; min-height: 120px; }
.date-time-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.date-time-group .form-group { flex: 1; min-width: 150px; }
.submit-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 40px;
    padding: 0.9rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
}
.submit-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.success-message {
    background: rgba(100,200,100,0.2);
    border: 1px solid rgba(100,200,100,0.4);
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    color: #aaffaa;
    margin-top: 1rem;
    display: none;
}
.privacy-note { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-align: center; margin-top: 1rem; }
.tips-section {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    padding: 1.8rem;
    max-width: 900px;
    margin: 0 auto;
}
.tips-title { font-size: 1.3rem; font-weight: 600; color: white; margin-bottom: 1.2rem; text-align: center; }
.tips-grid { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.tip-card {
    flex: 0 1 280px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1.2rem;
    transition: all 0.2s ease;
}
.tip-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.tip-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.tip-title { font-size: 1rem; font-weight: 600; color: white; margin-bottom: 0.5rem; }
.tip-text { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* ===== СТИЛИ ДЛЯ indexv7.html (Советы для студентов) ===== */
.section { margin-bottom: 2.5rem; }
.section-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(255,255,255,0.15);
    justify-content: center;
}
.section-icon { font-size: 1.8rem; }
.section-title-text { font-size: 1.5rem; font-weight: 600; color: white; }
.section-desc { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; text-align: center; }
.tips-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.tip-card {
    flex: 0 1 320px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.25s ease;
}
.tip-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.tip-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.tip-emoji { font-size: 2rem; }
.tip-subject { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); padding: 0.2rem 0.6rem; border-radius: 20px; }
.tip-title { font-size: 1.1rem; font-weight: 600; color: white; margin-bottom: 0.75rem; }
.tip-text { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.5; margin-bottom: 1rem; }
.tip-author { font-size: 0.75rem; color: rgba(255,255,255,0.45); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.8rem; margin-top: 0.5rem; }
.tip-author span { color: #aaccff; }
.life-tip-card { flex: 0 1 350px; }

/* ===== СТИЛИ ДЛЯ indexv8.html (Ресурсы колледжа) ===== */
.resources-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.8rem; max-width: 1000px; margin: 0 auto; }
.resource-card {
    flex: 0 1 280px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 28px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.25s ease;
    text-decoration: none;
    display: block;
}
.resource-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.resource-icon { width: 80px; height: 80px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.resource-icon-img { width: 100%; height: 100%; object-fit: contain; border-radius: 20px; }
.resource-icon-emoji { font-size: 3rem; line-height: 1; }
.resource-name { font-size: 1.3rem; font-weight: 600; color: white; margin-bottom: 0.5rem; }
.resource-desc { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.4; }
.resource-badge { display: inline-block; margin-top: 1rem; padding: 0.3rem 1rem; background: rgba(255,255,255,0.1); border-radius: 30px; font-size: 0.7rem; color: rgba(255,255,255,0.7); }
.info-block {
    margin-top: 3rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.info-text { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.5; }
.info-text a { color: #aaccff; text-decoration: none; }
.info-text a:hover { text-decoration: underline; }

/* ===== СТИЛИ ДЛЯ indexv9.html (Проверь себя) ===== */
.games-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.8rem; margin-bottom: 2rem; max-width: 1000px; margin-left: auto; margin-right: auto; }
.game-card {
    flex: 0 1 300px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 28px;
    padding: 1.5rem;
    text-align: center;
    transition: 0.25s;
    cursor: pointer;
}
.game-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.game-icon { font-size: 3rem; margin-bottom: 0.8rem; }
.game-name { font-size: 1.3rem; font-weight: 600; color: white; margin-bottom: 0.5rem; }
.game-desc { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    justify-content: center; align-items: center; z-index: 1000;
}
.modal-content {
    background: rgba(20,30,45,0.98); backdrop-filter: blur(20px);
    border-radius: 32px; border: 1px solid rgba(255,255,255,0.25);
    width: auto; max-width: 550px; max-height: 85vh; overflow-y: auto;
    padding: 1.5rem; position: relative;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal-header h2 { color: white; font-size: 1.5rem; }
.close-modal { background: none; border: none; color: white; font-size: 2rem; cursor: pointer; line-height: 1; }
.quiz-question { color: white; margin-bottom: 1.5rem; font-size: 1.1rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.8rem; }
.quiz-option {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 40px; padding: 0.8rem 1.2rem; color: white; cursor: pointer;
    transition: 0.2s;
}
.quiz-option:hover { background: rgba(255,255,255,0.2); }
.quiz-result { margin-top: 1rem; padding: 1rem; border-radius: 20px; text-align: center; }
.next-btn {
    background: rgba(255,255,255,0.2); border: none; border-radius: 40px;
    padding: 0.6rem 1.5rem; color: white; cursor: pointer; margin-top: 1rem;
}
.snake-container { text-align: center; }
.snake-canvas-wrapper { display: flex; justify-content: center; margin-bottom: 1rem; }
canvas { background: #1a2a3a; border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.3); width: 400px; height: 400px; max-width: 100%; height: auto; }
.score-board { color: white; font-size: 1.3rem; margin: 0.8rem 0; font-weight: 600; }
.event-message { color: #ffaa66; font-size: 0.9rem; margin: 0.5rem 0; min-height: 2.5rem; font-weight: 500; }
.restart-btn {
    background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
    border-radius: 40px; padding: 0.6rem 1.5rem; color: white; cursor: pointer;
    margin-top: 0.8rem; transition: 0.2s;
}
.restart-btn:hover { background: rgba(255,255,255,0.3); }
.touch-controls { display: none; justify-content: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.touch-btn {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px; padding: 0.8rem 1.5rem; color: white; font-size: 1.2rem;
    font-weight: 600; cursor: pointer; min-width: 70px;
}
.touch-btn:active { transform: scale(0.95); background: rgba(255,255,255,0.3); }
.rating-section {
    margin-top: 2rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    padding: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.rating-title { font-size: 1.3rem; font-weight: 600; color: white; margin-bottom: 1rem; text-align: center; }
.rating-table { width: 100%; border-collapse: collapse; color: white; }
.rating-table th, .rating-table td { padding: 0.8rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); }
.rating-table th { color: rgba(255,255,255,0.7); font-weight: 500; }
.rating-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.rating-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 40px; padding: 0.5rem 1.2rem; color: white; cursor: pointer; font-size: 0.85rem; }
.rating-btn:hover { background: rgba(255,255,255,0.2); }

/* ===== АДАПТАЦИЯ (МЕДИА-ЗАПРОСЫ) ===== */
@media (max-width: 768px) {
    body { padding: 1rem; }
    .glass-header { padding: 0.7rem 1rem; }
    .section-title { font-size: 1.2rem; white-space: normal; }
    
    .arrow-left { left: 5px; }
    .arrow-right { right: 5px; }
    
    .event-card { flex: 0 0 70%; }
    .dropdown-menu { width: 260px; }
    
    .action-content { padding: 1rem 0.9rem; }
    .action-title { font-size: 1.1rem; }
    .action-description { font-size: 0.7rem; }
    .achievement-card { width: 260px; margin-top: 55px; }
    .achievement-photo { width: 90px; height: 90px; top: -55px; }
    .section-header h2 { font-size: 1.6rem; }
    .chat-window { width: calc(100vw - 30px); height: 70vh; bottom: 70px; right: 15px; left: 15px; max-width: none; }
    .chat-button { width: 48px; height: 48px; bottom: 15px; right: 15px; }
    .message { max-width: 90%; font-size: 0.75rem; }
    
    /* indexv4.html */
    .building-card { flex: 0 1 280px; min-width: 260px; }
    .tab-button { padding: 0.7rem 1.5rem; font-size: 1rem; min-width: 150px; }
    .employee-card { flex: 0 1 260px; }
    .tour-main-btn { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
    
    /* indexv5.html */
    .dashboard { flex-direction: column; max-width: 100%; }
    .course-sidebar {
        flex: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 0.5rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .course-tab {
        padding: 0.6rem 1rem;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 30px;
    }
    .course-tab.active { border-left-color: transparent; border-bottom-color: #aaccff; }
    .curator-info-panel { padding: 1.5rem; }
    .curator-name { font-size: 1.3rem; }
    
    /* indexv6.html */
    .form-card { padding: 1.5rem; margin: 0 1rem; }
    .date-time-group { flex-direction: column; gap: 0; }
    .tips-grid { flex-direction: column; align-items: center; }
    .tip-card { width: 100%; max-width: 320px; }
    
    /* indexv7.html */
    .section-title-text { font-size: 1.2rem; }
    .tip-card { flex: 0 1 100%; max-width: 380px; }
    
    /* indexv8.html */
    .resource-card { flex: 0 1 260px; padding: 1.5rem; }
    .resource-icon { width: 60px; height: 60px; }
    .resource-icon-emoji { font-size: 2.5rem; }
    .resource-name { font-size: 1.1rem; }
    
    /* indexv9.html */
    .game-card { flex: 0 1 260px; }
    .modal-content { width: 95%; max-width: 95%; padding: 1rem; }
    canvas { width: 100%; height: auto; max-width: 350px; }
    .touch-controls { display: flex; }
    .rating-table th, .rating-table td { padding: 0.5rem; font-size: 0.85rem; }
}

@media (max-width: 700px) {
    .form-card { padding: 1.5rem; }
    .date-time-group { flex-direction: column; gap: 0; }
}

@media (max-width: 480px) {
    .event-card { flex: 0 0 85%; }
    .dropdown-menu { width: 240px; right: -10px; }
    .buttons-grid { gap: 0.8rem; }
    .action-card { width: 145px; height: 140px; }
    .action-content { padding: 0.8rem 0.7rem; }
    .action-title { font-size: 0.9rem; margin-bottom: 0.2rem; white-space: normal; word-break: keep-all; }
    .action-description { font-size: 0.65rem; }
    .achievement-card { width: 100%; max-width: 280px; margin-top: 55px; }
    .achievement-photo { width: 90px; height: 90px; top: -55px; }
    
    /* indexv4.html */
    .building-title { font-size: 1.5rem; }
    .room-badge { padding: 0.4rem 1rem; font-size: 0.85rem; }
    .employee-card { flex: 0 1 100%; max-width: 280px; }
    
    /* indexv5.html */
    .dropdown-menu { width: 240px; right: -10px; }
    
    /* indexv6.html */
    .tip-card { width: 100%; max-width: 280px; }
    
    /* indexv7.html */
    .dropdown-menu { width: 240px; right: -10px; }
    
    /* indexv8.html */
    .resource-card { flex: 0 1 100%; max-width: 300px; }
    
    /* indexv9.html */
    .touch-btn { padding: 0.6rem 1.2rem; font-size: 1rem; min-width: 60px; }
}

@media (max-width: 400px) {
    .glass-header {
        padding: 0.5rem 0.6rem;
        gap: 0.5rem;
    }
    .section-title {
        font-size: 0.8rem;
        max-width: 120px;
    }
    .dropdown-menu {
        width: 200px;
        right: -10px;
    }
    .menu-item {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .header-left {
        gap: 0.5rem;
    }
    .logo-link {
        width: 36px;
        height: 36px;
    }
}

/* ===== ЖЁСТКОЕ ОТКЛЮЧЕНИЕ ВСЕХ ЭФФЕКТОВ ДЛЯ СТРЕЛОК НА ТЕЛЕФОНАХ ===== */
@media (max-width: 768px) {
    .carousel-arrow {
        transition: none !important;
        transform: none !important;
        scale: 1 !important;
    }
    
    .carousel-arrow:active,
    .carousel-arrow:focus,
    .carousel-arrow:visited,
    .carousel-arrow:hover {
        transform: none !important;
        scale: 1 !important;
        background: rgba(255, 255, 255, 0.15) !important;
        transition: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}
/* ===== УМЕНЬШАЕМ ШАПКУ НА СТРАНИЦАХ ВИРТУАЛЬНОЙ ЭКСКУРСИИ ===== */

/* Для indexv4.html */
@media (max-width: 768px) {
    .glass-header {
        padding: 0.4rem 0.8rem !important;
        border-radius: 40px !important;
        margin-bottom: 1rem !important;
    }
    
    .glass-header .logo-link {
        width: 36px !important;
        height: 36px !important;
    }
    
    .glass-header .section-title {
        font-size: 0.9rem !important;
        white-space: normal !important;
        max-width: 140px !important;
    }
    
    .glass-header .back-link {
        padding: 0.3rem 0.8rem !important;
        font-size: 0.7rem !important;
    }
    
    .burger-icon {
        width: 36px !important;
        height: 36px !important;
        padding: 10px 7px !important;
    }
    
    .page-title {
        font-size: 1.4rem !important;
        margin-top: 0.5rem !important;
    }
    
    .tour-main-btn {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }
}