/* ===== Сброс и базовые стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f6fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    /* ===== Фоновое изображение ===== */
    background: url("../img/kgu_university.fb45839d8e68.jpg") no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
}

/* ===== Заголовок ===== */
header {
    background: linear-gradient(135deg, #0061ff, #60efff);
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===== Основная область ===== */
main {
    display: flex;
    flex: 1;
    padding: 1rem;
    gap: 1rem;
}

/* ===== Карта ===== */
#map-container {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

#map-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ===== Точки на плане ===== */
.point {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff3d71;
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.point:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 61, 113, 0.7);
}

/* ===== Панорама ===== */
#panorama-viewer {
    flex: 1;
    background: #111;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

#panorama-viewer img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Панель навигации / кнопки ===== */
.controls {
    margin-top: 1rem;
    text-align: center;
}

button {
    background: #0061ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #004fcc;
}

/* ===== Футер ===== */
footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.9rem;
}

/* ===== Карточки ===== */
.card {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
    background: white;
}

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

.card-body {
    padding: 15px;
    text-align: center;
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.card-text {
    font-size: 16px;
    color: #555;
}

/* ===== Центрирование содержимого шапки ===== */
.container-fluid.text-center.py-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    background: linear-gradient(#0066a3, #009cbf);
    margin-top: -10px;
}

/* ===== Логотип ===== */
.container-fluid.text-center.py-3 img {
    display: block;
    margin: -2px auto 20px auto;
}

/* ===== Заголовок (основная надпись) ===== */
.container-fluid.text-center.py-3 h3 {
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    font-family: "Calibri", "Poppins", sans-serif;
}

/* ===== Подзаголовок ===== */
.container-fluid.text-center.py-3 h5 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    font-family: "Calibri", "Poppins", sans-serif;
    margin-left: 20px;
}

/* ===== Горизонтальное меню ===== */
.nav {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 10px 40px;
    font-family: "Calibri", "Poppins", "Segoe UI", sans-serif;
    margin-top: -10px;
}

.nav-item {
    display: inline-block;
}

.nav-link {
    text-decoration: none;
    color: #f2f6fd;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 16px;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    border-radius: 6px;
    font-family: "Calibri", "Poppins", "Segoe UI", sans-serif;
    position: relative;
}

.nav-link:hover {
    background-color: #0083b2;
    color: #ffffff;
}

/* ===== Активная ссылка в навигации ===== */
.nav-link.active {
    background-color: #0083b2;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 131, 178, 0.4);
    font-weight: 600;
}

.nav-link.active:hover {
    background-color: #006d96;
}

/* ===== Основная область — колонки ===== */
.container-fluid > .row > .col-10 > .container > .row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Левая колонка с текстом */
.col-lg-6 {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: "Calibri", "Poppins", sans-serif;
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-right: 1rem;
    margin-left: 1rem;
}

/* Правая колонка с виджетами */
.col-lg-3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Карточки виджетов */
.card {
    background: #f4f6fa;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 20px;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 16px;
    color: #555;
}

/* Белая панель с текстом и колонками */
.col-10 {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);

    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 0px;
}

/* Заголовок страницы на фоне фото: читаемость */
.page-hero-title {
    font-size: clamp(1.375rem, 2.2vw, 1.5rem);
    line-height: 1.35;
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: #111827;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

