/* Interactive elements styling for CIAQ prototype */

/* Enhanced Project Cards */
.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card:hover .project-img-gallery {
    transform: scale(1.05);
}

.project-card:hover .project-title {
    color: var(--primary);
}

/* Photo Gallery for Project Cards */
.project-img-gallery {
    height: 220px;
    background: linear-gradient(135deg, var(--gray) 0%, #e0e0e0 100%);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.project-img-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.project-photo-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.photo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.project-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
    animation: slideInFromRight 0.6s ease;
}

/* Enhanced Project Content */
.project-content-enhanced {
    padding: 1.8rem;
    position: relative;
}

.project-title-enhanced {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
    transition: color 0.3s ease;
    line-height: 1.3;
}

.project-desc-enhanced {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Стили для списков в карточках проектов */
.project-desc-enhanced ul,
.project-desc-enhanced ol {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.5;
}

.project-desc-enhanced li {
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.project-desc-enhanced ul li {
    list-style-type: disc;
    list-style-position: outside;
}

.project-desc-enhanced ol li {
    list-style-type: decimal;
    list-style-position: outside;
}

/* Стили для параграфов в карточках */
.project-desc-enhanced p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.project-desc-enhanced p:last-child {
    margin-bottom: 0;
}

/* Стили для жирного текста в карточках */
.project-desc-enhanced strong {
    font-weight: 600;
    color: var(--dark);
}
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Problems Section */
.project-problems-preview {
    margin-bottom: 1.5rem;
}

.problems-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.problems-title::before {
    content: "";
}

.problems-list-preview {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.problem-item-preview {
    font-size: 0.85rem;
    color: #666;
    padding-left: 1rem;
    position: relative;
}

.problem-item-preview::before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
}

/* Enhanced Footer */
.project-footer-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.project-status-enhanced {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
    gap: 0.5rem;
}

.status-dot-enhanced {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-active {
    background-color: #10b981;
}

.status-development {
    background-color: #f59e0b;
}

/* Updated Project More Button */
.project-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    background-color: rgba(36, 156, 255, 0.1);
    border: 1px solid rgba(36, 156, 255, 0.2);
    transition: all 0.3s ease;
}

.project-more-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 156, 255, 0.3);
}

/* Animations */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Detail Page Enhancements */
.project-detail-enhanced {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease;
    padding-bottom: 120px; /* Добавляем отступ для фиксированных кнопок */
}

/* Project Hero Section Enhanced */
.project-hero-section {
    background: #f0f0f0; /* Чуть темнее основного белого фона */
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    text-align: left; /* Изменено с center на left */
    position: relative;
    color: var(--dark);
    border: 1px solid #e0e0e0;
}

.project-hero-enhanced {
    background: #f0f0f0; /* Чуть темнее основного белого фона */
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    text-align: left; /* Изменено с center на left */
    position: relative;
}

.project-hero-section::before {
    display: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.project-gallery-detail {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: transparent; /* Убираем белый фон */
    box-shadow: none; /* Убираем тень */
    height: 400px;
}

.gallery-photo {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: var(--border-radius);
    flex: 1; /* Все фото изначально равного размера */
}

.gallery-photo.active {
    flex: 3; /* Активное фото занимает в 3 раза больше места */
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-photo:hover img {
    transform: scale(1.05);
}

/* Градиентные overlay для лучшей читаемости */
.gallery-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-photo:not(.active):hover::before {
    opacity: 1;
}

/* Индикатор активности */
.gallery-photo.active::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Убираем старые стили */
.gallery-main-image,
.gallery-thumbnails,
.gallery-thumb {
    display: none;
}

/* Information Sections - Updated with consistent color scheme */
.info-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.info-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.section-title-enhanced {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Updated Section Icons - Consistent color scheme */
.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(36, 156, 255, 0.1);
    color: var(--primary);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.problem-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.problem-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.problem-card .card-text {
    margin: 0;
    line-height: 1.6;
}

/* New needs section styles */
.needs-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.needs-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.needs-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.needs-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(36, 156, 255, 0.2);
}

.needs-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.need-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
}

.need-item:hover {
    background-color: rgba(36, 156, 255, 0.05);
    border-radius: 6px;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
}

.need-bullet {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.need-text {
    line-height: 1.6;
    color: #374151;
    font-size: 0.95rem;
}

/* Legacy support for old needs-grid format */
.needs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.need-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.need-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.need-card .card-text {
    margin: 0;
    line-height: 1.6;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.team-member-enhanced {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.8rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.member-avatar-enhanced {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(36, 156, 255, 0.2);
    position: relative;
    z-index: 2;
}

.member-name-enhanced {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.member-role-enhanced {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-contact {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Contact Information */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(36, 156, 255, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
}

/* Action Buttons Enhanced - Fixed to bottom of screen */
.project-actions-enhanced {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: transparent; /* Убираем белый фон */
    backdrop-filter: none; /* Убираем эффект размытия */
    border-top: none; /* Убираем верхнюю границу */
    box-shadow: none; /* Убираем тень */
    z-index: 1000;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn-enhanced {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
}

.btn-invest-enhanced {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(36, 156, 255, 0.3);
}

.btn-contact-enhanced {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(240, 54, 110, 0.3);
}

.action-btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-invest-enhanced:hover {
    background: #1d7dd8;
}

.btn-contact-enhanced:hover {
    background: #d4285a;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .project-gallery-detail {
        flex-direction: column;
        gap: 0.5rem;
        height: auto;
    }
    
    .gallery-photo {
        height: 200px;
        flex: none; /* Убираем flex на мобильных */
    }
    
    .gallery-photo.active {
        flex: none; /* Все фото равного размера на мобильных */
        height: 250px; /* Активное фото чуть выше */
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .needs-sections {
        gap: 1.5rem;
    }
    
    .needs-section {
        padding: 1.2rem;
    }
    
    .needs-subtitle {
        font-size: 1.1rem;
    }
    
    .needs-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .project-actions-enhanced {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .action-btn-enhanced {
        min-width: auto;
        flex: 1;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    .project-detail-enhanced {
        padding-bottom: 100px; /* Меньший отступ на мобильных */
    }
}

/* Project Detail Page */
.project-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.back-link {
    margin-bottom: 2rem;
}

.back-link a {
    display: flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.back-link svg {
    margin-right: 0.5rem;
}

.project-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.project-category.large {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.project-title.large {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

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

.tab-content {
    margin-bottom: 2rem;
}

.tab-content h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.tab-content p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-member {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.member-name {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.member-role {
    font-size: 0.9rem;
    color: #666;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.action-btn.secondary {
    background-color: var(--light);
    color: var(--text);
    border: 1px solid var(--gray);
}

.hidden {
    display: none;
}

/* List View */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.projects-list .project-card {
    width: 100%;
}

.project-content.list-view {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Event Listing */
.event-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.event-date {
    font-weight: 500;
    color: var(--primary);
}

.event-location {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.event-location svg {
    margin-right: 0.4rem;
}

/* AI Chat */
.ai-chat-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transform: translateY(calc(100% + 2rem));
    transition: transform 0.3s ease;
}

.ai-chat-container.open {
    transform: translateY(0);
}

.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--accent);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.ai-chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.ai-chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-message, .user-message {
    display: flex;
    margin-bottom: 1rem;
}

.ai-message {
    align-items: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.ai-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.8rem;
}

.message-content {
    background-color: var(--gray);
    padding: 0.8rem 1rem;
    border-radius: 18px;
    max-width: 75%;
    line-height: 1.4;
}

.ai-message .message-content {
    background-color: var(--gray);
    border-top-left-radius: 4px;
}

.user-message .message-content {
    background-color: var(--primary);
    color: white;
    border-top-right-radius: 4px;
}

.ai-chat-input-container {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--gray);
}

.ai-chat-input-container input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.ai-chat-send {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 1rem;
    cursor: pointer;
}

/* Education page */
.education-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.education-type {
    display: inline-block;
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 24px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.education-duration {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Investment page */
.investment-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.investment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.investment-type {
    display: inline-block;
    background-color: rgba(255, 101, 132, 0.1);
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 24px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.investment-budget {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 1rem;
}

/* Form styling */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: inherit;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-help {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
}

/* Profile page */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-right: 2rem;
}

.profile-info h2 {
    margin-bottom: 0.5rem;
}

.profile-tabs {
    margin-top: 2rem;
}

.profile-section {
    margin-top: 2rem;
}

.profile-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray);
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 33.333%;
        text-align: center;
        padding: 0.8rem;
    }
    
    .team-members {
        grid-template-columns: 1fr;
    }
    
    .ai-chat-container {
        width: 300px;
        height: 400px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Стили для корректного отображения HTML-списков */
.info-section ul,
.info-section ol {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.info-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.info-section ul li {
    list-style-type: disc;
    list-style-position: outside;
}

.info-section ol li {
    list-style-type: decimal;
    list-style-position: outside;
}

/* Стили для параграфов в описании */
.info-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-section p:last-child {
    margin-bottom: 0;
}

/* Стили для жирного текста */
.info-section strong {
    font-weight: 600;
    color: var(--dark);
}

/* Стили для заголовков в описании */
.info-section h1,
.info-section h2,
.info-section h3,
.info-section h4,
.info-section h5,
.info-section h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 600;
}

.info-section h1:first-child,
.info-section h2:first-child,
.info-section h3:first-child,
.info-section h4:first-child,
.info-section h5:first-child,
.info-section h6:first-child {
    margin-top: 0;
} 

.truncate-4-lines {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 6.4em;
  line-height: 1.6em;
} 