@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

/* CSS Variables for Granite & Silver Theme */
:root {
    --bg-dark-granite: #121417;
    --bg-granite: #1f2126;
    --text-silver: #e0e6ed;
    --text-platinum: #ffffff;
    --text-muted: #8c9baf;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --input-bg: rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark-granite);
    background-image: radial-gradient(circle at top right, #2a2d34 0%, transparent 40%),
                      radial-gradient(circle at bottom left, #1b2028 0%, transparent 40%);
    color: var(--text-silver);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* Header */
header {
    background: rgba(30, 35, 45, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 20px;
    z-index: 100;
    border-radius: 50px;
    max-width: 1000px;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

header .logo {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-platinum);
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffffff, #8c9baf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--text-platinum);
    cursor: pointer;
    user-select: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-silver);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: transparent;
}

nav a:hover {
    color: var(--text-platinum);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Main Layout */
main {
    flex: 1;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

h1, h2, h3 {
    color: var(--text-platinum);
    font-weight: 600;
}

/* Typography elements */
p {
    color: var(--text-silver);
}

/* Hero Section */
.hero {
    text-align: center;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 80px 30px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    z-index: -1;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #a0b0c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #3a3f4a, #23272d);
    color: var(--text-platinum);
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: linear-gradient(135deg, #4b5263, #2d323b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

button.btn {
    font-size: 16px;
}

/* Grids & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.4);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.card p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.card p strong {
    color: var(--text-silver);
}

.card .btn {
    margin-top: auto;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-silver);
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 14px;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-platinum);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-control::placeholder {
    color: #6c7a8c;
}

/* Custom block for displaying applicants */
.applicants-list {
    margin-top: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 4px solid #a0b0c0;
    font-size: 14px;
}

/* Footer */
footer {
    background: rgba(18, 20, 23, 0.8);
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    text-align: center;
    padding: 25px;
    margin-top: auto;
    font-size: 14px;
}

/* Notification Badge */
.badge {
    background-color: #e74c3c;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 20px;
        border-radius: 12px;
        margin: 10px;
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        display: none; /* Скрываем по умолчанию */
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 10px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 10px;
    }
    
    nav ul.active {
        display: flex; /* Показываем при нажатии */
        animation: fadeIn 0.3s ease;
    }
    
    nav a {
        display: block;
        padding: 12px;
        font-size: 16px;
        background: rgba(255,255,255,0.05);
    }

    main {
        padding: 20px 5%;
    }
    
    .hero {
        padding: 40px 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
        min-width: 100% !important; /* Отменяем фиксированную ширину для мобильных */
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}
