* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #141414;
    color: #e0e0e0;
    line-height: 1.6;
}

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

.site-header {
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 153, 0, 0.2), transparent 40%),
        linear-gradient(to right, #1b1b1b, #262626 55%, #1a1a1a);
    border-bottom: 3px solid #ff9900;
    padding-bottom: 2rem;
}

.header-top {
    display: flex;
    justify-content: center;
    padding: 1rem 2rem 0;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.header-btn {
    background: #ff9900;
    color: #1a1a1a;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
    font-size: 0.9rem;
}

.header-btn:hover {
    background: #e68a00;
    transform: translateY(-1px);
}

.header-btn.admin {
    background: #666;
    color: #fff;
}

.header-btn.admin:hover {
    background: #777;
}

.hero-clan {
    padding-top: 2rem;
    text-align: center;
}

.hero-kicker {
    color: #ffb84d;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
}

h1 {
    font-size: clamp(2.2rem, 7vw, 4.4rem);
    color: #ff9900;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    line-height: 1.05;
}

.hero-subtitle {
    margin-top: 0.8rem;
    color: #d6d6d6;
    font-size: 1.1rem;
}

.first-screen {
    padding-top: 2.2rem;
    border-bottom: 1px solid #323232;
}

.gallery-section {
    background: #171717;
    padding: 2rem 0 3rem;
}

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

.section-title {
    text-align: center;
    margin-bottom: 0.8rem;
    color: #ff9900;
    font-size: 2rem;
}

.gallery-lead {
    text-align: center;
    color: #cfcfcf;
    margin-bottom: 0.8rem;
}

.gallery {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 22px;
    padding: 24px 0;
    scrollbar-width: thin;
    scrollbar-color: #ff9900 #2a2a2a;
}

.gallery::-webkit-scrollbar { height: 12px; }
.gallery::-webkit-scrollbar-track { background: #2a2a2a; border-radius: 10px; }
.gallery::-webkit-scrollbar-thumb { background: #ff9900; border-radius: 10px; }

.gallery-item {
    flex: 0 0 auto;
    width: min(78vw, 560px);
    height: min(52vw, 360px);
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #2f2f2f;
    cursor: pointer;
    background: #222;
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 153, 0, 0.3);
    border-color: #ff9900;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.gallery-nav-btn {
    background: #ff9900;
    color: #1a1a1a;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
    font-size: 15px;
}

.gallery-nav-btn:hover {
    background: #e68a00;
    transform: translateY(-1px);
}

.section {
    padding: 3.2rem 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #242424;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #3d3d3d;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: #ff9900;
    box-shadow: 0 14px 30px rgba(255, 153, 0, 0.2);
}

.project-icon {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    color: #ff9900;
    margin-bottom: 0.8rem;
}

.application-section {
    text-align: center;
    padding: 3rem 0;
    background: #222;
}

.application-btn {
    background: #ff9900;
    color: #1a1a1a;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin: 1rem 0;
}

.application-btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 153, 0, 0.3);
}

.server-info {
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem auto;
    max-width: 600px;
    border: 1px solid #444;
}

.lead {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

footer {
    background: #1b1b1b;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 95%;
    margin-top: 2%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 153, 0, 0.3);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ff9900;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

.modal-caption {
    text-align: center;
    color: #fff;
    padding: 15px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.7rem; }
    .section { padding: 2.2rem 0; }
    .application-btn { padding: 1rem 2rem; font-size: 1.1rem; }
    .gallery-item { width: 88vw; height: 56vw; min-height: 220px; }
    .modal-content { max-width: 98%; max-height: 85%; margin-top: 5%; }
    .close { top: 10px; right: 20px; font-size: 40px; }
}
