/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1200 0%, #0c0800 100%);
    color: #e0d6b6;
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

body:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    z-index: 10;
}

/* Золотые контуры */
.gold-outline {
    position: relative;
    padding: 30px;
    margin: 25px 0;
}

.gold-outline:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2),
                inset 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 8, 1, 0.85);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #d4af37;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    position: relative;
    padding: 10px;
}

.logo:before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid #d4af37;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.logo img {
    max-width: 130px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.7));
}

/* Кнопки с золотым градиентом */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 0.9rem;
}

.btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(180, 135, 25, 0.8) 0%, 
        rgba(212, 175, 55, 0.9) 30%, 
        rgba(166, 124, 0, 0.9) 70%, 
        rgba(120, 90, 10, 0.8) 100%);
    z-index: -1;
    transition: all 0.4s ease;
}

.btn:after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    border-radius: 30px;
    background: linear-gradient(135deg, 
        #121212 0%, 
        #1a1a1a 100%);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(212, 175, 55, 0.4);
}

.btn:hover:before {
    background: linear-gradient(135deg, 
        rgba(200, 155, 35, 0.9) 0%, 
        rgba(222, 185, 65, 1) 30%, 
        rgba(186, 144, 20, 1) 70%, 
        rgba(140, 100, 20, 0.9) 100%);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.3);
}

.btn span {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-register {
    background: transparent;
    border: 1px solid #d4af37;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero:before {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(212, 175, 55, 0) 70%);
    z-index: -1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #e6d16c, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Table Section */
.table-section {
    padding: 2rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: #d4af37;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
    background: rgba(20, 16, 5, 0.6);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

th, td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

th {
    background: linear-gradient(to bottom, 
        rgba(180, 135, 25, 0.7), 
        rgba(140, 100, 20, 0.7));
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 8, 1, 0.9);
    margin-top: 3rem;
    border-top: 1px solid #d4af37;
    position: relative;
}

.footer:before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.footer p {
    margin: 0.5rem 0;
    color: #b0a475;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background: linear-gradient(135deg, 
        rgba(180, 135, 25, 0.9), 
        rgba(212, 175, 55, 0.9));
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 99;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.5);
}

#back-to-top svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Дополнительные золотые элементы */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 2rem auto;
    width: 80%;
}

.gold-highlight {
    color: #d4af37;
    font-weight: bold;
}

/* Анимация мерцания */
@keyframes gold-pulse {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
}

.gold-pulse {
    animation: gold-pulse 2s infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    th, td {
        padding: 0.8rem;
    }
}