/* ====================== GLOBALSTYLE.CSS ====================== */
:root {
    --primary: #0b2a5b;
    --accent-blue: #1a237e;
    --gold: #ffd700;
    --gold-light: #fff4b0;
    --gold-dark: #b8962e;
    --bg-light: #f4f6f8;
    --card-bg: #f7f9fc;
    --text-dark: #2c3e50;
    --muted: #555;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: var(--bg-light);
    text-align: center;
    line-height: 1.6;
}

/* ====================== HEADER ====================== */
header {
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    color: white;
    padding: 20px 20px 10px;
}

.logo {
    font-size: 28px;
    line-height: 1;
}

header h1 {
    margin: 0;
    font-family: "Georgia", serif;
    font-size: 38px;
    font-weight: bold;
    font-style: italic;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShine 4s linear infinite;
    text-shadow: 0 0 8px rgba(255,215,0,0.6), 0 0 18px rgba(255,215,0,0.4);
}

@keyframes goldShine {
    0% { background-position: 0%; }
    100% { background-position: 300%; }
}

/* ====================== SILVER TEXT ====================== */
.silver {
    font-weight: bold;
    font-style: italic;
    font-size: 18px;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #c0c0c0 0%, #ffffff 25%, #d9d9d9 50%, #ffffff 75%, #bfbfbf 100%);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: silverMove 3s linear infinite;
    text-shadow: 0 0 8px rgba(255,255,255,0.7), 0 0 15px rgba(200,200,200,0.6);
}

.silver:after {
    content: "";
    display: block;
    width: 160px;
    height: 1px;
    background: #d4af37;
    margin: 8px auto 0;
    opacity: 0.7;
}

@keyframes silverMove {
    0% { background-position: 0%; }
    100% { background-position: 300%; }
}

/* ====================== NAVIGATION ====================== */


.nav-bar {
    display: flex;
    flex-wrap: wrap; /* перенос ссылок на новую строку */
    justify-content: space-between;
    align-items: center;
}

.nav-bar .main-menu a,
.nav-bar .lang-switch a {
    display: inline-block;
    padding: 6px 10px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .nav-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-bar .main-menu,
    .nav-bar .lang-switch {
        width: 100%;
        margin-bottom: 8px;
    }
    .nav-bar .main-menu a,
    .nav-bar .lang-switch a {
        font-size: 16px;
        margin-right: 10px;
    }
}



.nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 15px;
}

.main-menu {
    display: flex;
    gap: 20px;
}

nav a, .main-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    margin: 0 10px;
    transition: color 0.2s;
}

nav a:hover, .main-menu a:hover {
    color: #d4af37;
}

.lang-switch {
    position: absolute;
    right: 20px;
}

.lang-switch a {
    padding: 4px 10px;
    border: 1px solid white;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.lang-switch a.active {
    background: var(--gold);
    color: var(--primary);
}

/* ====================== CONTAINER ====================== */
.container {
    background: white;
    padding: 40px 20px;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ====================== TEXT & TITLES ====================== */
h2 {
    color: var(--primary);
    font-family: Georgia, serif;
    font-style: italic;
    margin-top: 35px;
    position: relative;
}

h2:after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #d4af37;
    margin: 10px auto;
}

p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #d4af37;
}

/* ====================== FOOTER ====================== */
footer {
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    color: white;
    padding: 25px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 800px;
    margin: auto;
}

footer h3 {
    color: #d4af37;
    font-family: Georgia, serif;
    font-style: italic;
    letter-spacing: 2px;
}

footer p {
    color: #ddd;
    font-size: 14px;
}

.copyright {
    margin-top: 20px;
    font-size: 13px;
    color: #aaa;
}

/* ====================== RESPONSIVE ====================== */
.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: inline;
    }
    .nav-bar {
        flex-direction: column;
        gap: 10px;
    }
    .lang-switch {
        position: static;
        margin-top: 10px;
    }
    .container {
        margin: 20px auto;
        padding: 25px 15px;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 32px;
    }
    .container {
        padding: 20px 15px;
    }
}