/* Documentation Section */
.docs-section {
    padding: 100px 0;
    background-color: #F5F8FF; /* Light blueish background */
    color: #000;
}

.docs-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Left Side */
.docs-header {
    width: 30%;
    padding-right: 40px;
    position: sticky;
    top: 100px; /* Sticky effect like in design often used */
}

.docs-title {
    font-size: 48px;
    font-weight: 600;
    /* Gradient text */
    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #13519C; /* Fallback */
    margin-bottom: 20px;
}

.docs-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Right Side Grid */
.docs-grid {
    width: 65%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.docs-section--stacked .docs-wrapper {
    flex-direction: column;
}

.docs-section--stacked .docs-header {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 40px;
    position: static;
    padding-right: 0;
    text-align: center;
}

.docs-section--stacked .docs-grid {
    width: 100%;
}

/* Card Styles */
.doc-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px; /* Restored padding to container */
    display: flex;
    flex-direction: column; /* Stack body and footer */
    transition: none; /* Removed hover transitions */
    border: 1px solid transparent;
}

.doc-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.doc-body {
    padding: 0 0 20px 0; /* Removed internal padding, added bottom space */
    flex-grow: 1;
}

.doc-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.doc-description {
    font-size: 14px;
    color: #898989;
    line-height: 1.5;
    margin-bottom: 0; /* Removed bottom margin */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-footer {
    padding: 20px 0 0 0; /* Removed internal padding, added top space */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #E4E4E4; /* Border inside padding */
}

.doc-meta {
    display: flex;
    gap: 15px;
    font-size: 14px; /* Increased font size */
    font-weight: 300; /* Light weight */
    text-transform: uppercase;
}

.doc-type {
    color: #FF2424; /* Red color for PDF usually */
}

.doc-size {
    color: #13519C; /* Blue */
}

/* Download Button */
.doc-download-btn {
    width: 40px;
    height: 40px;
    background: #F5F8FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* No transitions/hover effects */
}

.doc-download-btn:hover {
    /* No hover effect */
    background: #F5F8FF;
}

/* Responsive adjustments for intermediate screens */
@media (max-width: 1440px) {
    .docs-title {
        font-size: 40px; /* Slightly smaller font */
    }
    
    .docs-header {
        padding-right: 20px; /* Reduce padding to give more space */
    }
}

@media (max-width: 1200px) {
    .docs-title {
        font-size: 36px; /* Even smaller to fit "Документация" */
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .docs-header {
        width: 35%; /* Give it a bit more width */
        padding-right: 15px;
    }
    
    .docs-grid {
        width: 60%; /* Reduce grid width to accommodate header */
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-header {
        position: static;
        top: auto;
        width: 40%;
        padding-right: 24px;
    }

    .docs-grid {
        width: 60%;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .docs-section {
        padding: 60px 0;
    }

    .docs-wrapper {
        flex-direction: column;
    }

    .docs-header {
        width: 100%;
        margin-bottom: 32px;
        padding-right: 0;
    }

    .docs-grid {
        width: 100%;
    }

    .docs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .docs-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .docs-desc {
        font-size: 15px;
    }

    .doc-card {
        padding: 20px;
    }

    .doc-title {
        font-size: 18px; /* Kept readable */
    }

    .doc-footer {
        padding-top: 16px;
    }
}
