/* 1. ШРИФТЫ */
@font-face {
    font-family: 'Montserrat';
    font-weight: normal;
    src: url('../font/Montserrat-Regular.ttf');
}
@font-face {
    font-family: 'Montserrat';
    font-weight: bold;
    src: url('../font/Montserrat-Bold.ttf');
}

/* 2. БАЗОВЫЕ НАСТРОЙКИ */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

body {
    background: url("../img/bg2.jpg") no-repeat center center fixed;
    background-size: cover;
}

/* 3. ГЛАВНЫЙ КОНТЕЙНЕР */
.main-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 24px 20px;
}

/* центральный блок — заголовок + кнопки вместе */
.center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    flex: 1;
    justify-content: center;
}

/* 4. ШАПКА */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#logo img {
    width: 130px;
    height: auto;
    margin-bottom: 20px;
}

#title {
    color: #1d3d66;
    text-align: center;
    pointer-events: none;
}

#title h1 {
    font-size: clamp(1.6em, 4.5vw, 3.6em);
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

#title h2 {
    font-size: clamp(0.95em, 2vw, 1.7em);
    font-weight: normal;
    margin: 10px 0 0 0;
}

/* 5. КАРТОЧКИ-НАВИГАЦИЯ */
.card-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 150px;
    height: 130px;
    text-decoration: none;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
    cursor: pointer;
}

.nav-card:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.nav-card:active {
    transform: translateY(-2px) scale(0.97);
}

.nav-icon {
    font-size: 36px;
    line-height: 1;
}

.nav-label {
    font-size: 15px;
    font-weight: bold;
    color: #1d3d66;
    text-align: center;
}

/* Акцент на кнопке "Бастау" */
#start-card {
    background: rgba(224, 110, 55, 0.2);
    border: 2px solid #E06E37;
    position: relative;
}

#start-card .nav-label {
    color: #E06E37;
}

#start-card::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 27px;
    border: 2px solid rgba(224, 110, 55, 0.55);
    animation: ring-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ring-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0; transform: scale(1.09); }
}

/* 6. ПОДВАЛ */
#place-year {
    color: #1d3d66;
    font-weight: bold;
    font-size: 0.95em;
    padding-bottom: 4px;
}

#image-credits {
    position: fixed;
    bottom: 5px;
    right: 10px;
    font-size: 0.65em;
    color: rgba(29, 61, 102, 0.45);
}

/* 7. КНОПКА "НА ГЛАВНУЮ" (используется на других страницах) */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.back-button-link {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-size: 1em;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.back-button-link:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}

/* 8. АДАПТИВНОСТЬ */

/* Планшет */
@media (max-width: 768px) {
    #logo img {
        width: 100px;
    }

    .center-block {
        gap: 28px;
    }

    .card-navigation {
        gap: 16px;
    }

    .nav-card {
        width: 130px;
        height: 115px;
        border-radius: 18px;
        gap: 10px;
    }

    .nav-icon {
        font-size: 30px;
    }

    .nav-label {
        font-size: 13px;
    }
}

/* Мобильный */
@media (max-width: 480px) {
    .main-container {
        padding: 20px 16px;
    }

    #logo img {
        width: 85px;
        margin-bottom: 10px;
    }

    .center-block {
        gap: 22px;
    }

    .card-navigation {
        gap: 12px;
    }

    .nav-card {
        width: 100px;
        height: 95px;
        border-radius: 16px;
        gap: 8px;
    }

    .nav-icon {
        font-size: 26px;
    }

    .nav-label {
        font-size: 11px;
    }
}

/* Очень маленький экран — карточки в колонку */
@media (max-width: 360px) {
    .card-navigation {
        flex-direction: column;
    }

    .nav-card {
        width: 200px;
        height: 70px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 24px;
        gap: 16px;
        border-radius: 14px;
    }

    .nav-icon {
        font-size: 24px;
    }

    .nav-label {
        font-size: 14px;
    }
}