:root {
    --primary-color: #2c5f2d;
    --secondary-color: #97bc62;
    --accent-color: #ff6b35;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-primary: #2d2d2d;
    --text-secondary: #666;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-primary);
    line-height: 1.7;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e4620 100%);
    padding: 20px 30px;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 20px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav ul.headerr {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

nav ul.headerr li a {
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.05em;
    position: relative;
    overflow: hidden;
}

nav ul.headerr li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

nav ul.headerr li a:hover::before {
    left: 0;
}

nav ul.headerr li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.site-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    height: 80px;
}

.ukrainian button {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.05em;
    cursor: pointer;
}

.ukrainian button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ukrainian button img {
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1 {
    font-size: 3em;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.8s ease;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--primary-color);
    margin-top: 35px;
    padding-bottom: 15px;
    font-weight: 700;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--text-primary);
    margin-top: 20px;
    font-weight: 600;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

a:hover {
    color: var(--accent-color);
}

a:active {
    color: #d65a2c;
}

a:visited {
    color: #5f4d8b;
}

/* Lists */
ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 12px;
    padding-left: 10px;
    position: relative;
    transition: all 0.3s ease;
}

li:hover {
    padding-left: 15px;
}

li::marker {
    color: var(--secondary-color);
}

/* Sections */
section {
    margin-bottom: 40px;
    padding: 35px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Highlight */
.highlight {
    background: linear-gradient(120deg, #fff59d 0%, #ffeb3b 100%);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 235, 59, 0.3);
}

/* Quote */
quote {
    display: block;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 5px solid var(--secondary-color);
    padding: 20px 25px;
    margin: 25px 0;
    background: rgba(151, 188, 98, 0.1);
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
}

quote::before {
    content: '"';
    font-size: 4em;
    color: var(--secondary-color);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 30px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2d2d2d 100%);
    color: #fff;
    text-align: center;
    border-radius: var(--border-radius);
    margin-top: 50px;
    box-shadow: var(--shadow-lg);
}

footer span {
    text-align: center;
    max-width: 100%;
    margin: 0;
    line-height: 1.8;
}

.ancestor {
    display: flex;
    flex-direction: column;
    float: right;
    gap: 12px;
    margin-top: 15px;
    margin-left: auto;
    max-width: 250px;
}

.ancestor img {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    height: auto;
}

.ancestor .caption {
    font-size: 0.7em;
    color: var(--text-secondary);
    text-align: center;
}

.ancestor .credit {
    font-size: 0.6em;
    color: var(--text-secondary);
    text-align: right;
    font-style: italic;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    body {
        padding: 15px;
    }
    
    header {
        padding: 15px 20px;
    }
    
    nav ul.headerr {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul.headerr li {
        width: 100%;
        text-align: center;
    }
    
    section {
        padding: 25px;
    }
    
    ul {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    body {
        padding: 10px;
    }
    
    section {
        padding: 20px;
    }
    
    ul {
        margin-left: 15px;
    }
    
    quote {
        padding: 15px 20px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}