/* Page header styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
}

/* Только заголовок страницы (не шапка сайта!) */
.page-header .header-content {
    text-align: center;
}

@media (min-width: 768px) {
    .page-header .header-content {
        text-align: left;
    }
}

.page-header .header-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .page-header .header-content h1 {
        font-size: 3rem;
        background: linear-gradient(to right, var(--gray-900), var(--primary-dark));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.page-header .header-content p {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 500;
    line-height: 1.5;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.75rem;
    font-weight: 600;
    color: var(--gray-800);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.back-button:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Partner card styles */
.partner-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.partner-card img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.partner-card h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.partner-logo {
    position: relative;
    width: 100%;
    height: 150px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.partner-logo .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.partner-logo .image-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.partner-logo .image-placeholder span {
    font-size: 0.875rem;
}

.partner-logo.loaded .image-placeholder {
    opacity: 0;
    pointer-events: none;
}

.partner-logo.error .image-placeholder {
    opacity: 1;
    background: #fff5f5;
    color: #e53e3e;
}

.partner-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

.partner-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.partner-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to right, var(--gray-900), var(--gray-800));
    border-radius: 1rem;
    margin: 4rem 0;
    color: white;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-section p {
    color: var(--gray-300);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive */
@media (max-width: 767px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .partner-card {
        padding: 1rem;
    }

    .partner-card img {
        height: 100px;
    }

    .partner-card h3 {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .primary-button,
    .cta-buttons .secondary-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .partner-card {
        padding: 1rem;
    }
}

/* Buttons */
.primary-button,
.secondary-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.primary-button {
    background: var(--primary);
    color: white;
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-button:hover {
    background: white;
    color: var(--gray-900);
    transform: translateY(-2px);
}

/* Partner card styles */
.partner-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.partner-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    width: 100%;
    height: 6rem;
    background: var(--gray-100);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: bold;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.partner-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-value.projects {
    color: var(--primary);
}

.stat-value.since {
    color: var(--success);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* CTA section styles */
.cta-section {
    margin-top: 5rem;
    padding: 3rem;
    background: linear-gradient(to right, var(--gray-900), var(--gray-800), var(--gray-900));
    color: white;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: var(--gray-300);
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: bold;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-button {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
}

.primary-button:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-dark));
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-button:hover {
    background: white;
    color: var(--gray-900);
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

/* Анимации — общие правила в css/animations.css */ 