.faculty-hero {
    background: url(https://storage.vigbo.tech/p/w1920/gallery-cover/f1377e4e-0060-48db-a843-ef23efa8db63/Kj7XoQ3bcFEYXuDSGvnnh.jpeg) no-repeat center 40% / cover;
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.link-button {
    color: var(--indigoblue-font);
    text-decoration: none;
}

.faculty-overlay {
    background: var(--indigoblue-50);
    width: 45%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 5vw;
    color: white;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border-radius: 0 10px 10px 0;
}

.faculty-overlay h1 {
    font-weight: 800;
    font-size: 3.5vw;
    margin: 0;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    filter: drop-shadow(8px 8px 16px #C8CDD3, -8px -8px 16px #ffffff);
    text-shadow: -4px -4px 8px rgba(255, 255, 255, 0.4), 4px 4px 8px rgba(31, 59, 110, 0.79);
}

.faculty-overlay p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2vw;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.faculty-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
    padding: 0 5vw;
}

.faculty-text {
    flex: 1 1 50%;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #222;
    line-height: 1.6;
}

.faculty-text h2 {
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 16px;
}

.faculty-text p {
    margin-bottom: 14px;
}

.faculty-text a {
    color: var(--indigoblue-font);
    text-decoration: underline;
}

.faculty-image {
    flex: 1 1 40%;
    text-align: right;
}

.faculty-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.department-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* более современный шрифт */
    font-weight: 700;
    font-size: 36px;
    color: var(--indigoblue-font);
    margin-bottom: 30px;
    text-align: startS;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 40px auto;
    padding: 0 5vw;

}

.departments-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 5%;
    padding: 0 5vw;
}

.department-box {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* легкая тень */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--indigoblue-font);
}

.department-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.department-box h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: var(--font-16);
    color: var(--indigoblue-font);
    /* приятный синий цвет */
    margin: 0;
}


@media (max-width: 768px) {
    .faculty-overlay {
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    .faculty-overlay h1 {
        font-size: 8vw;
    }

    .faculty-overlay p {
        font-size: 4vw;
    }
}

.first-flex-faculty {
    background: linear-gradient(135deg, #f5f7fa, #e4ebf5);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.faculty-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.faculty-text {
    flex: 1 1 55%;
}

.faculty-text h2 {
    color: #003366;
    font-weight: 700;
    margin-bottom: 20px;
}

.faculty-text p {
    line-height: 1.7;
    color: #444;
    text-align: justify;
}

.faculty-text b {
    font-size: 1.2rem;
    color: #222;
}

.faculty-text a {
    color: #0066cc;
    font-weight: 500;
    text-decoration: none;
}

.faculty-text a:hover {
    text-decoration: underline;
}

.faculty-image {
    flex: 1 1 35%;
    text-align: center;
}

.faculty-image img {
    max-width: 300px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.department-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 60px 0 30px;
    color: #003366;
    position: relative;
}

.department-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #0066cc;
    margin: 10px auto 0;
    border-radius: 2px;
}

.departments-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 20px 40px;
}

.department-box {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.department-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.department-box h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.department-box a {
    text-decoration: none;
    color: #003366;
}

.department-box a:hover {
    color: #0066cc;
}

/* .faculty-info{

    margin-block: 100px;
}
.faculty-contact{
    border-right: 10px var(--indigoblue) solid;
}
.faculty-title{
    background: var(--indigoblue);
    color: var(--white);
    font-size: var(--font-28);
    font-weight: bold;
    border-radius: 50px;
    padding: 10px;

}
.dean-photo{
    position: relative;
    background: var(--indigoblue);
    height: 200px;
    width: 103%;
    border-radius: 500px 0 0 500px;
    margin-top: 130px;
}
.dean-photo img{
    position: absolute;
    bottom: 0;
    left: 30%;
    width: 60%;
    filter: drop-shadow(10px 0 20px black);
}
.dean-name{
    color: var(--indigoblue-font);
    font-size: var(--font-28);
}
.dean-name,
.dean-position, 
.dean-phone , 
.dean-email , 
.faculty-address,
.faculty-social{
    width: 100%;
    text-align: end;
}
.faculty-communication-block-header{
    width: 100%;
    font-weight: 700;
    font-size: 20px;
    text-align: end;
    color: var(--indigoblue-font);
}
.faculty-social{
    display: flex;
    width: 100%;
    gap: 20px;
    justify-content: end;
}
.faculty-contact-info{
    display: flex;
    width: 100%;
    gap: 20px;
    justify-content: end;
}
.buttons{
    width: 100%;
}
.buttons button:nth-child(1){
    width: 33%;
    background: var(--indigoblue);
    border: 1px var(--indigoblue) solid;
    border-radius: 50px 0 0 50px;
    padding: 20px;
    font-size: var(--font-22);
    font-weight: var(--font-700);
    color: var(--white);
}
.buttons button:nth-child(2){
    width: 33%;
    background: transparent;
    border: 1px var(--indigoblue) solid;
    border-radius:  0;
    padding: 20px;
    font-size: var(--font-22);
    font-weight: var(--font-700);
    color: var(--indigoblue-font);
}
.buttons button:nth-child(3){
    width: 33%;
    background: transparent;
    border: 1px var(--indigoblue) solid;
    border-radius:  0 50px 50px 0;
    padding: 20px;
    font-size: var(--font-22);
    font-weight: var(--font-700);
    color: var(--indigoblue-font);
}
.content-faculties{
    overflow: hidden;
    width: 100%;
}
.move-content-faculties{
    width: 300%;
    padding-block: 20px;
}
.content-faculties{
    position: relative;
    overflow: hidden;
    width: 100%;
}
.move-content-faculties{
    width: 300%;
    padding-block: 20px;
    display: flex;
    transition: transform 0.5s ease;
}
.move-content-faculties.part-infAboutFaculties {
    transform: translateX(0%);
}

.move-content-faculties.part-dateAndFacts {
    transform: translateX(-33.3333%);
}

.move-content-faculties.part-departament {
    transform: translateX(-66.6666%);
}
.information-faculties,
.date-and-facts-faculties,
.departments-faculties {
    width: 33.3333%;
    flex-shrink: 0;
} */
.block-dean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f0f4f8, #e3ebf6);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .block-dean {
        flex-direction: column-reverse;
    }
}