/* About Page Styles — CraftMan Design System */

/* ===== КАСТОМНЫЙ СКРОЛЛБАР В ЦВЕТАХ САЙТА ===== */
html {
    scrollbar-width: thin;
    scrollbar-color: #ef233c #f1f3f5;
}

html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #f1f3f5; border-left: 1px solid #e9ecef; }
html::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #ef233c 0%, #d11a2b 100%); border-radius: 5px; border: 2px solid #f1f3f5; }
html::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #d11a2b 0%, #b91c1c 100%); }

body {
    scrollbar-width: thin;
    scrollbar-color: #ef233c #f1f3f5;
}

body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: #f1f3f5; border-left: 1px solid #e9ecef; }
body::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #ef233c 0%, #d11a2b 100%); border-radius: 5px; border: 2px solid #f1f3f5; }
body::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #d11a2b 0%, #b91c1c 100%); }

.main {
    grid-template-columns: 1fr !important;
}

/* ===== ABOUT CONTENT ===== */
.about-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem 3rem;
}

.about-section {
    margin-bottom: 3.5rem;
}

.about-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.about-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    margin-top: 0;
    position: relative;
    padding-bottom: 0.75rem;
}

.about-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(135deg, #ef233c 0%, #d11a2b 100%);
    border-radius: 2px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #475569;
    margin-bottom: 1.25rem;
}

.about-text h3 {
    margin-top: 2rem;
}

/* ===== STATS SECTION ===== */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 2.25rem 2rem;
    background: linear-gradient(135deg, #ef233c 0%, #d11a2b 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 32px rgba(239, 35, 60, 0.25);
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== PRINCIPLES GRID ===== */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.principle-card {
    background: white;
    padding: 2rem 1.75rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.principle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ef233c 0%, #d11a2b 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.principle-card:hover::before {
    opacity: 1;
}

.principle-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid #fecaca;
}

.principle-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.625rem;
}

.principle-card p {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ===== DOCUMENTS GRID ===== */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.document-card {
    background: white;
    padding: 2rem 1.75rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.document-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ef233c 0%, #d11a2b 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.document-card:hover::before {
    transform: scaleX(1);
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: transparent;
    text-decoration: none;
    color: #1e293b;
}

.document-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #ef233c 0%, #d11a2b 100%);
    border-radius: 14px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(239, 35, 60, 0.25);
    filter: grayscale(1) brightness(10);
}

.document-card h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.625rem;
}

.document-card p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: auto;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid #fecaca;
    margin-right: 0;
    min-width: auto;
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.375rem;
    word-wrap: break-word;
}

.contact-details p {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: normal;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .about-content {
        padding: 1.5rem 1rem 2rem;
    }
    
    .about-section h2 {
        font-size: 1.75rem;
    }
    
    .about-section h3 {
        font-size: 1.3rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        padding: 1.25rem;
    }
    
    .principle-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .stat-item {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .principle-card {
        padding: 1.25rem;
    }
    
    .principle-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .document-card {
        padding: 1.5rem;
    }
}
