/* МойГрант - Современные стили */

:root {
    --primary-purple: #6366F1;
    --primary-blue: #3B82F6;
    --primary-pink: #EC4899;
    --primary-orange: #F59E0B;
    --primary-green: #10B981;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --bg-light: #F9FAFB;
    --bg-purple: #EEF2FF;
    --bg-pink: #FDF2F8;
    --bg-blue: #EFF6FF;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.logo-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

.nav-link:hover {
    color: var(--primary-purple);
}

.nav-link-login {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
}

.nav-link-login:hover {
    color: var(--white);
    opacity: 0.9;
}

.burger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Hero */
.hero {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-purple) 0%, var(--bg-pink) 100%);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-orange));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background: var(--white);
    color: var(--primary-purple);
    box-shadow: var(--shadow);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Quick Actions */
.quick-actions {
    padding: 60px 0;
    background: var(--white);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.quick-action-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.quick-action-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.action-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.quick-action-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.quick-action-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.action-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.action-link:hover {
    text-decoration: underline;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-funds {
    background: var(--bg-purple);
}

.section-recipients {
    background: var(--bg-pink);
}

.section-grants {
    background: var(--bg-light);
}

.section-winners {
    background: var(--white);
}

.section-help {
    background: var(--bg-blue);
}

.section-news {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.badge-funds {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    color: var(--white);
}

.badge-recipients {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-orange));
    color: var(--white);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

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

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Steps */
.steps-section {
    max-width: 900px;
    margin: 0 auto 60px;
}

.step-item {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.step-item:hover {
    box-shadow: var(--shadow-lg);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* CTA Box */
.cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-funds {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    color: var(--white);
}

.cta-recipients {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-orange));
    color: var(--white);
}

.cta-box h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* Search Panel */
.search-panel {
    max-width: 1000px;
    margin: 0 auto 40px;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.search-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.filters-toggle {
    margin-bottom: 16px;
}

.btn-filter {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-filter:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.filters-panel {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.filters-panel.active {
    display: grid;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-select,
.filter-input {
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

/* Grants Grid */
.grants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.grant-card {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.grant-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.grant-badge.federal {
    background: var(--bg-purple);
    color: var(--primary-purple);
}

.grant-badge.regional {
    background: var(--bg-pink);
    color: var(--primary-pink);
}

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

.grant-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.grant-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.grant-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.grant-link:hover {
    text-decoration: underline;
}

/* Winners Search */
.winners-search-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.winners-search-form {
    margin-bottom: 24px;
}

.search-inputs {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-divider {
    color: var(--text-secondary);
    font-size: 14px;
}

.winners-results {
    min-height: 100px;
}

.result-message {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.result-message.info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

.result-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.result-message.success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

/* AI Assistant */
.ai-assistant-container {
    max-width: 900px;
    margin: 0 auto;
}

.ai-assistant-box {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.ai-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.ai-avatar {
    font-size: 48px;
    flex-shrink: 0;
}

.ai-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.ai-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

.ai-chat {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

.ai-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.message-avatar {
    font-size: 32px;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    background: var(--white);
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.message-content p {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    color: var(--white);
}

.ai-form {
    display: flex;
    gap: 12px;
}

.ai-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.3s;
    font-family: inherit;
    resize: vertical;
}

.ai-input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.news-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

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

.news-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.news-link:hover {
    text-decoration: underline;
}

/* Login Page */
.login-section {
    padding: 100px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary-purple);
    border-bottom-color: var(--primary-purple);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.role-btn {
    padding: 24px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.role-btn.active {
    border-color: var(--primary-purple);
    background: var(--bg-purple);
}

.role-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.role-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.role-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-form,
.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.forgot-link {
    text-align: center;
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-subscribe {
    display: flex;
    gap: 8px;
}

.footer-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
}

.footer-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

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

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        display: none;
        gap: 16px;
    }

    .nav-list.active {
        display: flex;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-stats {
        gap: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .section {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .search-inputs {
        flex-direction: column;
    }

    .search-divider {
        margin: 8px 0;
    }

    .filters-panel {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .cta-box h3 {
        font-size: 24px;
    }

    .role-selector {
        grid-template-columns: 1fr;
    }

    .ai-form {
        flex-direction: column;
    }
}



