/*
Theme Name: Содействие
Theme URI: https://sodejstvie-rostov.ru/
Author: АНО ЦСПГ "Содействие"
Author URI: https://sodejstvie-rostov.ru/
Description: Тема для сайта АНО ЦСПГ "Содействие" в голубых тонах
Version: 1.0
License: GPL v2
Text Domain: sodejstvie
*/

/* === RESET & BASE === */
:root {
    --color-primary: #1a73b8;
    --color-primary-dark: #155a8f;
    --color-primary-light: #e8f4fc;
    --color-accent: #4fc3f7;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #f5f9fc;
    --color-white: #ffffff;
    --color-border: #d0e3f0;
    --font-main: 'Open Sans', 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(26, 115, 184, 0.08);
    --shadow-hover: 0 8px 30px rgba(26, 115, 184, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

/* === HEADER === */
.site-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-top {
    background: rgba(0,0,0,0.1);
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: rgba(255,255,255,0.9);
}

.header-top a:hover {
    color: var(--color-white);
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
}

.site-title span {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
}

/* === NAVIGATION === */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav a {
    color: var(--color-white);
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #c5e4f7 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79,195,247,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26,115,184,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(26, 115, 184, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 184, 0.4);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow);
}

.btn-white:hover {
    box-shadow: var(--shadow-hover);
    color: var(--color-primary-dark);
}

/* === SECTIONS === */
.section {
    padding: 80px 20px;
}

.section-light {
    background: var(--color-white);
}

.section-blue {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

.section-blue h2,
.section-blue h3 {
    color: var(--color-white);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-blue .section-header p {
    color: rgba(255,255,255,0.85);
}

/* === CARDS === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #c5e4f7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* === NEWS / POSTS === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.post-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #c5e4f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 3rem;
}

.post-card-content {
    padding: 25px;
}

.post-card-meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.post-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.post-card h3 a {
    color: var(--color-primary-dark);
}

.post-card h3 a:hover {
    color: var(--color-primary);
}

/* === DONATIONS BAR === */
.donations-bar {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border-left: 4px solid #ffc107;
    padding: 20px 25px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 20px;
}

.donations-bar strong {
    color: var(--color-primary-dark);
}

/* === VOLUNTEERS === */
.volunteers-count {
    text-align: center;
    padding: 40px;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.volunteers-count .number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    display: block;
}

.volunteers-count .label {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-top: 10px;
}

/* === PARTNERS === */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.partner-logo {
    background: var(--color-white);
    padding: 20px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    box-shadow: var(--shadow-hover);
}

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, #0d3b5c 0%, #1a5276 100%);
    color: rgba(255,255,255,0.85);
    padding: 60px 20px 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
}

.footer-col a:hover {
    color: var(--color-white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* === CONTENT === */
.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.entry-content {
    background: var(--color-white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 30px;
}

/* === SIDEBAR === */
.widget {
    background: var(--color-white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary-light);
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow);
}

.pagination .current {
    background: var(--color-primary);
    color: var(--color-white);
}

/* === MOBILE === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        padding: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 20px;
    }
    
    .cards-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .entry-content {
        padding: 25px;
    }
}

/* === ACCESSIBILITY === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 16px;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* === PRINT === */
@media print {
    .site-header,
    .site-footer,
    .hero-buttons {
        display: none;
    }
    
    .hero {
        padding: 20px;
        background: none;
    }
}