.structural-unit-page {
    margin-top: 14rem;
}

.unit-section {
    margin-top: 2rem;
}

.unit-hero-block {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    padding: 20px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
    margin-top: 0;
}

.unit-section {
    padding-top: 2rem;
    border-top: 3px solid var(--color-blue-100);
}

.head-photo {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.head-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

.head-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 2;
    min-width: 300px;
}

.head-name {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 700;
    line-height: 140%;
}

.head-position, .head-subtitle {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 10px;
}

.head-statement {
    font-style: italic;
    border-left: 4px solid var(--color-blue-200);
    padding-left: 15px;
    margin: 10px 0;
}

.head-bio-link {
    display: inline-block;
    text-decoration: none;
    background: var(--color-blue-100);
    color: var(--color-white);
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    max-width: fit-content;
}

.head-bio-link:hover {
    background: var(--color-blue-200);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 90, 156, 0.2);
}

.team-block__title {
    font-size: 2rem;
    margin-bottom: 30px;
}

.head-block__title {
    font-size: 2rem;
    margin: 10px 0;
    padding-top: 2rem;
    border-top: 3px solid var(--color-blue-100);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 180px);
    justify-content: center;
    align-items: start;
    gap: 30px;
}

.team-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.team-card > a:first-child {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 100%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.team-card > a:first-child .member-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: none;
    margin: 0;
    transition: all 0.3s ease-in-out;
}

.team-card:hover .member-photo {
    transform: scale(1.08);
}

.team-card .member-name {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 10px;
}

.team-card .member-name a {
    text-decoration: none;
    color: #333;
}

.team-card:hover .member-name a {
    color: var(--color-blue-200);
}

.team-card .member-position {
    padding-top: 15px;
    font-weight: 500;
    color: #333;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.8;
}

.team-card .member-position p {
    margin: 0;
}

.member-details {
    font-size: 0.9em;
    color: #666;
    margin: 10px 0;
}

.sections-block {
    margin-bottom: 40px;
}

.section-item {
    border-bottom: 1px solid #eee;
}

.section-toggle {
    width: 100%;
    text-align: left;
    background: #f9f9f9;
    border: none;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.section-toggle:hover {
    background: #f0f0f0;
}

.section-toggle::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--color-blue-100);
    border-right: 2px solid var(--color-blue-100);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease-out;
}

.section-toggle.active::after {
    transform: translateY(-25%) rotate(-135deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
    padding: 0 20px;
}

.section-content p:first-child { margin-top: 0; }
.section-content p:last-child { margin-bottom: 0; }

.section-page-link {
    margin-top: 15px;
    display: inline-block;
}

.section-toggle.active + .section-content {
    padding: 20px;
}

.info-block {
    padding: 30px 0;
}

.info-details p {
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
}

.info-details strong {
    min-width: 120px;
    margin-right: 10px;
    color: #333;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease-in-out;
    border-left: 4px solid var(--color-blue-100);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.document-item:hover {
    background: #f0f0f0;
    color: var(--color-blue-200);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.document-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-blue-100);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
}

.document-item:hover .document-icon {
    transform: scale(1.05);
}

.document-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}

.document-title {
    font-size: 1.1em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-meta {
    font-size: 0.9em;
    color: #777;
}

@media (max-width: 768px) {
    .structural-unit-page {
        margin-top: 4rem;
    }

    .unit-hero-block {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .head-photo {
        margin: 0 auto;
        max-width: 180px;
    }

    .head-info {
        min-width: 100%;
        align-items: center;
    }

    .head-name {
        font-size: 2em;
    }

    .head-position, .head-subtitle {
        font-size: 1.1em;
    }

    .team-block__title,
    .head-block__title {
        font-size: 1.6rem;
    }

    .team-card .member-name {
        font-size: 1.1em;
    }

    .section-toggle {
        font-size: 1em;
        padding: 15px;
    }

    .section-toggle::after {
        right: 15px;
    }

    .section-toggle.active + .section-content {
        padding: 15px;
    }

    .info-block {
        padding: 20px 0;
    }

    .info-details p {
        flex-direction: column;
        font-size: 1em;
    }

    .info-details strong {
        min-width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .structural-unit-page {
        margin-top: 3rem;
    }

    .head-name {
        font-size: 1.8em;
    }

    .team-block__title,
    .head-block__title {
        font-size: 1.4rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}