* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a3a52;
    --secondary-color: #2c5f7e;
    --accent-color: #d4af37;
    --text-primary: #2c3e50;
    --text-secondary: #546e7a;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --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);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

.container-header,
.container-hero,
.container-main,
.container-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.site-title {
    font-size: 24px;
    color: var(--bg-white);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.main-navigation {
    flex: 1;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 5px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--bg-white);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-foundation {
    background: linear-gradient(rgba(26, 58, 82, 0.85), rgba(44, 95, 126, 0.85)), url('images/1.jpg') center/cover;
    padding: 120px 0;
    text-align: center;
    color: var(--bg-white);
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.main-content {
    padding: 60px 0;
}

.intro-foundation {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 50px;
}

.section-heading {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

.intro-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.foundation-grid {
    margin-bottom: 60px;
}

.grid-title {
    font-size: 32px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.foundation-zone {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 5px solid var(--accent-color);
}

.foundation-zone:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.zone-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.zone-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.zone-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.zone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.zone-link:hover {
    color: var(--accent-color);
    gap: 12px;
}

.poll-section,
.random-fact-section {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 50px;
}

.poll-container {
    max-width: 700px;
    margin: 0 auto;
}

.poll-question {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.poll-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.poll-option:hover {
    background: #e8f4f8;
}

.poll-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.poll-submit {
    background: var(--secondary-color);
    color: var(--bg-white);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.poll-submit:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.poll-results {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 20px;
}

.fact-container {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border-radius: 12px;
    border: 2px solid var(--accent-color);
}

.fact-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.fact-text {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.fact-refresh {
    background: var(--accent-color);
    color: var(--bg-white);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fact-refresh:hover {
    background: #c19b2f;
    transform: scale(1.05);
}

.recent-analyses {
    margin-bottom: 60px;
}

.analyses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.analysis-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.analysis-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.analysis-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.analysis-content {
    padding: 25px;
}

.analysis-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.analysis-excerpt {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.analysis-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.analysis-link:hover {
    color: var(--accent-color);
    gap: 12px;
}

.main-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-heading {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-text,
.footer-publisher,
.footer-reg {
    margin-bottom: 10px;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-disclaimer {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.copyright {
    font-size: 14px;
    opacity: 0.8;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    padding: 25px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-text h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.cookie-text p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.cookie-policy-link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-accept {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.cookie-accept:hover {
    background: var(--primary-color);
}

.cookie-customize {
    background: var(--bg-light);
    color: var(--text-primary);
}

.cookie-customize:hover {
    background: var(--border-color);
}

.cookie-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-decline:hover {
    background: var(--bg-light);
}

@media (max-width: 968px) {
    .container-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .grid-container,
    .analyses-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-foundation {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
}
