/* Universal Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
    --primary: #10b981; 
    --primary-dark: #047857;
    --primary-light: #d1fae5;
    --bg-main: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.8;
}

a { text-decoration: none; color: var(--primary-dark); transition: 0.3s; }
a:hover { color: var(--primary); }

/* --- PERFECT HEADER (Logo Left, Buttons Right) --- */
.top-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    align-items: center;
    padding: 15px 5%;
    background-color: var(--white);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-area {
    flex: 1;
    display: flex;
    justify-content: flex-start; 
}

.photo-logo { 
    width: 150px; 
    height: auto; 
    max-height: 50px; 
    object-fit: contain; 
}

.center-menu {
    flex: 2;
    display: flex;
    justify-content: center; 
}

.center-menu a {
    margin: 0 15px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-auth { 
    flex: 1;
    display: flex; 
    gap: 10px; 
    justify-content: flex-end; 
}

/* --- HEADER BUTTONS --- */
.btn-sm { 
    display: inline-block;
    padding: 8px 18px; 
    font-size: 0.95rem; 
    font-weight: 700;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
}
.btn-outline-green {
    border: 2px solid var(--primary); 
    color: var(--primary-dark) !important; 
    background-color: transparent;
}
.btn-outline-green:hover { 
    background-color: var(--primary-light); 
}
.btn-solid-green { 
    background-color: var(--primary); 
    color: var(--white) !important; 
    border: 2px solid var(--primary);
}
.btn-solid-green:hover { 
    background-color: var(--primary-dark); 
}

/* --- MAIN BUTTONS --- */
.btn { 
    display: inline-block;
    padding: 16px 35px; 
    font-size: 1.15rem; 
    font-weight: 800;
    border-radius: 8px;
    margin: 10px 5px; 
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); 
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-primary { background-color: var(--primary); color: var(--white) !important; border: 2px solid var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3); }
.btn-outline { background-color: transparent; border: 2px solid var(--primary-dark); color: var(--primary-dark) !important; box-shadow: none; }
.btn-outline:hover { background-color: var(--primary-dark); color: var(--white) !important; }
.btn-telegram { background: linear-gradient(90deg, #3b82f6, #4f46e5); color: #fff !important; }

/* --- IMAGES & PHOTOS (SIZE REDUCED AS REQUESTED) --- */
.photo-box {
    max-width: 320px; /* Reduced from 100% to keep images compact */
    width: 100%;
    height: auto;
    margin: 25px auto 35px;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border: 3px solid var(--bg-main);
    background-color: var(--white);
    object-fit: contain;
}
.photo-logo { box-shadow: none; margin: 0; border: none; background: transparent; }

/* --- LAYOUT & SECTIONS --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.content-section { padding: 40px 0; }

.hero-section { text-align: center; padding: 30px 0; }
.page-title { font-size: 2.8rem; color: var(--primary-dark); margin-bottom: 20px; line-height: 1.2; text-transform: uppercase; font-weight: 900;}

.article-content { text-align: justify; font-size: 1.15rem; color: var(--text-main); margin-bottom: 25px; }
.article-content p { margin-bottom: 20px; line-height: 1.8; }
.article-content strong { color: var(--primary-dark); }

/* --- CARDS --- */
.card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}
.card h2 { font-size: 2rem; margin-bottom: 20px; color: var(--primary-dark); text-align: center;}

.center-align { text-align: center; }

/* --- FOOTER --- */
.bottom-footer {
    background-color: var(--primary-dark);
    color: var(--primary-light);
    padding: 60px 5% 20px;
    margin-top: 60px;
}
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto 40px; }
.footer-col h4 { color: var(--white); font-size: 1.3rem; margin-bottom: 20px; text-transform: uppercase; }
.footer-col a { display: block; color: var(--primary-light); margin-bottom: 10px; font-weight: 600; }
.footer-col a:hover { color: var(--white); padding-left: 5px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.9rem; }

/* Mobile Responsive */
@media(max-width: 768px) {
    .top-header { padding: 12px 15px; flex-direction: column; gap: 15px; }
    .center-menu { display: none; }
    .photo-logo { width: 130px; }
    .header-auth { width: 100%; justify-content: space-between; }
    .btn-sm { padding: 10px 15px; font-size: 0.9rem; width: 48%; }
    .page-title { font-size: 2.2rem; }
    .photo-box { max-width: 280px; }
    .card { padding: 25px; }
    .btn { width: 100%; padding: 15px 20px; font-size: 1rem; }
}