@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

#menu-item{display: none}

h1, h2{
    font-family: "Lato", sans-serif;
}
button, 
button:active, 
button:focus {
  outline: none;
}

.container .breadcrumb{
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}
/*** block 1 ***/
.block1 .navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.block1 .nav-button {
    padding: 6px 28px;
    border: 1px solid #003896;
    background: white;
    color: #003896;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 3px;
}

.block1 .nav-button:hover {
    background: #003896;
    color: white;
    text-decoration: none;
}

.block1 .nav-button.active {
    background: #003896;
    color: white;
    text-decoration: none;
}

.block1 .departments-section {
    padding: 20px 0 0 0;
}

.block1 .departments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.block1 .department-button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 7.5px);
    margin: 0 auto;
}

.block1 .department-button {
    padding: 10px;
    border: 1px solid #003896;
    background: white;
    color: #003896;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 3px;
    justify-content: center;
    display: flex;
    align-items: center;
    font-family: "Lato", sans-serif;
}

.block1 .department-button.primary {
    background: #003896;
    color: white;
    text-decoration: none;
}

.block1 .department-button:hover {
    background: #003896;
    color: white;
    text-decoration: none;
}

.block1 .hero-section {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.block1 .background-image {
    width: 100%;
    height: auto;
    display: block;
}

.block1 .hero-content {
    background: rgb(255 255 255 / 0.71);
    border-radius: 20px;
    padding: 60px 80px;
    margin: 0 auto;
    width: 1110px;
    max-width: 1200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.block1 .hero-text h1 {
    color: #003896;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 600;
    margin: 0;
    margin-bottom: 25px;
}
.block1 .hero-text a{
    font-size: 16px;
    text-decoration: none;
    background: #003896;
    color: #fff;
    padding: 10px 32px;
    border-radius: 3px;
}

.block1 .trophy-icon {
    width: 90px;
    height: 90px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 40px;
}

.block1 .trophy-icon svg {
    width: 50px;
    height: 50px;
    fill: white;
}

.block1 .building {
    position: absolute;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .block1 .navigation {
        padding: 15px;
        gap: 10px;
    }
    
    .block1 .nav-button {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 0;
    }
    
    .block1 .hero-section {
        min-height: 300px;
        margin-top: 20px;
    }
    
    .block1 .background-image {
        object-fit: cover;
        height: 100%;
        min-height: 300px;
    }
    
    .block1 .hero-content {
        width: calc(100% - 30px);
        padding: 30px 25px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .block1 .hero-text {
        flex: 0 0 100%;
    }
    
    .block1 .hero-text h1 {
        font-size: 20px;
        line-height: 1.1;
        margin-bottom: 20px;
    }
    
    .block1 .hero-text a {
        display: inline-block;
        font-size: 14px;
        padding: 8px 25px;
    }
    
    .block1 .trophy-icon {
        position: static;
        margin-left: 20px;
        flex-shrink: 0;
    }
    
    .block1 .trophy-icon img {
        width: 60px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .block1 .navigation {
        gap: 8px;
        padding: 0;
    }
    .block1 .departments-grid{
        grid-template-columns: 1fr;
    }
    .block1 .department-button{
        padding: 9px 9px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .block1 .department-button:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 100%;
    }
    .block1 .nav-button {
        padding: 10px 10px;
        font-size: 14px;
        line-height: 1.3;
    }
    
    .block1 .hero-content {
        padding: 20px 13px 20px 20px;
        border-radius: 20px;
        box-shadow: none;
        width: 290px;
    }
    
    .block1 .hero-text h1 {
        font-size: 28px;
    }
    
    .block1 .trophy-icon {
        width: 60px;
        height: auto;
        margin-left: 15px;
    }
    
    .block1 .trophy-icon img {
        width: 60px;
        height: auto;
    }
}

/*** end block 1 ****/

/**** block 2 ****/
.block2 {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.block2 .bg-image-block2 {
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 410px;
    height: auto;
    object-fit: contain;
    object-position: bottom right;
    pointer-events: none;
}

.block2 .content-block2 {
    position: relative;
    z-index: 1;
    padding: 50px 0 20px 0;
    margin: 0 auto;
}

.block2-section {
    margin-bottom: 60px;
}

.block2-section-inner {
    display: flex;
    align-items: flex-end;
    gap: 48px;
}

.block2-section-left {
    flex: 0 0 auto;
    width: 720px;
    max-width: 100%;
    min-width: 0;
}

.block2-section-title {
    font-size: 32px;
    font-weight: normal;
    color: #282828;
    margin: 0 0 24px 0;
    line-height: 1.3;
    font-family: "Lato", sans-serif;
}

.block2-mobile-slogan {
    display: none;
}

.block2-duo-carousel {
    display: flex;
    align-items: center;
    margin-left: -70px;
    margin-right: 10px;
}

.block2-cards-row {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    min-width: 0;
    align-items: stretch;
}
.block2-duo-carousel > .block2-nav-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 0 16px;
}

.block2 .block2-card-wrapper {
    display: flex;
    flex-direction: column;
}

.block2 .block2-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px 30px 25px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #D2DBE1;
    flex: 1;
    box-sizing: border-box;
}

.block2 .block2-card-wrapper.is-clickable {
    cursor: pointer;
}

.block2 .block2-card-image {
    width: 100%;
    height: 245px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.block2 .block2-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.25s ease;
}

.block2 .block2-card-name {
    font-size: 19px;
    font-weight: 600;
    color: #003896;
    text-align: left;
    margin: 0 0 10px 0;
    line-height: 1.3;
    font-family: 'Roboto', sans-serif;
    min-height: 25px;
}

.block2 .block2-card-desc {
    font-size: 15px;
    font-weight: 400;
    color: #000;
    text-align: left;
    margin: 0;
    line-height: 1.4;
}
.block2 .block2-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #D2DBE1;
    color: #003896;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.block2 .block2-nav-btn:hover {
    background: #003896;
    color: #FFFFFF;
}
.block2 .block2-nav-btn[style*="hidden"] {
    pointer-events: none;
    opacity: 0.25;
}
.block2-section-right {
    flex-shrink: 0;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0;
}

.block2-section-right--graduates {
    justify-content: flex-end;
    padding-top: 0;
}

.block2 .block2-text-block {
    margin-bottom: 24px;
}

.block2 .block2-text-block p,
.block2 .block2-slogan-text {
    font-size: 20px;
    color: #282828;
    line-height: 1.3;
    margin: 0;
    text-align: left;
    font-family: "Lato", sans-serif;
}

.block2 .block2-ornament {
    width: 100%;
    max-width: 320px;
    margin-top: auto;
}

.block2 .block2-ornament img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.3;
}
.block2 .block2-inner.no-persons {
    display: flex;
    align-items: stretch;
    gap: 60px;
    min-height: 420px;
}

.block2 .block2-inner.no-persons .block2-left {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.block2-template-text {
    font-size: 16px;
    line-height: 1.3;
    color: #000;
    border: 1px solid #D2DBE1;
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
    width: 100%;
    font-family: "Lato", sans-serif;
    margin-top: 30px;
}

.block2-template-text p { margin: 0 0 16px 0; }
.block2-template-text p:last-child { margin-bottom: 0; }

.block2 .block2-inner.no-persons .block2-right {
    flex-shrink: 0;
    width: 305px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 40px;
}
.block2 .block2-card-wrapper.updating .block2-card {
    opacity: 0;
    transition: opacity 0.15s ease;
}
.block2 .block2-card-wrapper .block2-card {
    transition: opacity 0.2s ease;
    opacity: 1;
}

@media (max-width: 1024px) {
    .block2 .content-block2 { padding: 50px 20px 20px; }
    .block2-section-inner   { gap: 32px; }
    .block2-section-title   { font-size: 28px; }
    .block2-section-right   { width: 220px; }
    .block2 .block2-text-block p,
    .block2 .block2-slogan-text { font-size: 17px; }
    .block2 .block2-ornament    { max-width: 260px; }
    .block2 .block2-card        { padding: 20px 15px 25px; }
    .block2 .block2-card-name   { font-size: 16px; min-height: 44px; }
    .block2 .block2-card-desc   { font-size: 13px; min-height: 72px; }
    .block2 .block2-card-wrapper { min-height: 460px; }
    .block2-duo-carousel {
        margin-left: -52px;
        margin-right: -52px;
    }
}

@media (max-width: 768px) {
    .block2 .content-block2 { padding: 40px 15px 20px; }
    .block2-section { margin-bottom: 40px; }

    .block2-section-inner {
        flex-direction: column;
        gap: 20px;
        align-items: normal;
    }

    .block2-section-right { display: none; }
    .block2-section-right--graduates { display: none; }
    .block2-mobile-slogan { display: block; }
    .block2-section--teachers .block2-mobile-slogan { display: none; }
    .block2-section--graduates .block2-mobile-slogan { display: block; }
    .block2-section-title { font-size: 24px; margin-bottom: 18px; }

    .block2-duo-carousel {
        margin-left: -15px;
        margin-right: -15px;
    }
    .block2-duo-carousel > .block2-nav-btn {
        margin: 0 10px;
    }

    .block2-cards-row { gap: 12px; }

    .block2 .block2-card         { padding: 20px 16px 24px; }
    .block2 .block2-card-image   { height: 200px; }
    .block2 .block2-card-name    { font-size: 16px; min-height: 44px; }
    .block2 .block2-card-desc    { font-size: 13px; min-height: 68px; }
    .block2 .block2-card-wrapper { min-height: 420px; }

    .block2 .block2-text-block p,
    .block2 .block2-slogan-text { font-size: 18px; }
    .block2 .block2-ornament { max-width: 280px; }

    .block2 .block2-inner.no-persons { gap: 30px; min-height: auto; }
    .block2 .block2-inner.no-persons .block2-right { width: 100%; padding-bottom: 0; }
}
@media (max-width: 480px) {
    .block2 .bg-image-block2 {
        display: block;
        position: absolute;
        bottom: 0;
        right: -90px;
        width: 260px;%
        height: auto;
        object-fit: cover;
        object-position: bottom right;
        pointer-events: none;
    }
    .block2 .content-block2 {
        padding: 30px 0 20px;
        width: 290px;
    }

    .block2-section { margin-bottom: 32px; }
    .block2-section-title { font-size: 22px; margin-bottom: 16px; padding-right: 35px;}

    .block2-duo-carousel {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        margin-right: 0;
        gap: 0;
    }

    .block2-cards-row {
        grid-template-columns: 1fr;
        gap: 0;
        order: 1;
    }

    .block2-cards-row .block2-card-wrapper[data-slot="1"] {
        display: none !important;
    }

    .block2-duo-carousel > .block2-nav-btn {
        display: none; 
    }

    .block2-mobile-controls {
        display: flex !important;
        justify-content: center;
        gap: 16px;
        margin-top: 20px;
        order: 2;
    }

    .block2 .block2-card {
        padding: 24px 20px;
        max-width: 290px;
    }

    .block2 .block2-card-image  { height: 230px; }
    .block2 .block2-card-name   { font-size: 17px; min-height: 30px; }
    .block2 .block2-card-desc   { font-size: 14px; min-height: 64px; }
    .block2 .block2-card-wrapper { min-height: unset; }

    .block2 .block2-nav-btn { width: 40px; height: 40px; }

    .block2 .block2-text-block p,
    .block2 .block2-slogan-text { font-size: 18px; line-height: 1.4; }

    .block2 .block2-ornament { max-width: 220px; }
    .block2-template-text { margin-top: 0; }

    .block2-mobile-slogan {
        display: block;
        padding: 20px 0 0 0;
    }
    .block2-mobile-slogan .block2-slogan-text {
        font-size: 18px;
        line-height: 1.4;
        color: #282828;
        font-family: "Lato", sans-serif;
    }
}

/*** block 2.1 ***/
.block21 {
    position: relative;
    width: 100%;
    background: #E9F3FF;
}
.block21 .bg-image-block21 {
    width: 100%;
    height: auto;
    display: block;
}
.block21 .header {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding-top: 50px;

}
.block21 .header-button {
    background: white;
    border-radius: 10px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #003896;
    font-weight: 500;
    transition: all 0.3s;
    width: 300px;
    justify-content: center;
    border: 1px solid #003896;
}
.block21 .header-button:hover {
    background: #003896;
    color: white;
    text-decoration: none;
}
.block21 .header-button:hover .user-icon {
    background-image: url("/divisions/assets/img-new/ico-lk-w.svg") !important;
}

.block21 .user-icon {
    background-image: url("/divisions/assets/img-new/ico-lk.svg");
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
}
.block21 .cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 60px;
}
.block21 .cards-grid.kafedra{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 auto 0px auto;
    max-width: 800px;
}
.block21 .card {
    background: white;
    border-radius: 20px;
    padding: 30px 10px 15px 10px;
    text-align: center;
    /*box-shadow: 0 2px 12px rgba(0,0,0,0.08);*/
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}
.block21 .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.block21 .card a:hover {
    text-decoration: none;
}
.block21 .card-icon {
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.block21 .card-icon img{
    height: 62px;
}
.block21 .card-title {
    font-size: 17px;
    font-weight: 500;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.5;
    padding-bottom: 10px;
}
.block21 .card-link {
    color: #003896;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: opacity 0.2s;
}
.block21 .card-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}
.block21 .documents-button {
    background: white;
    border: none;
    border-radius: 2px;
    padding: 12px 28px;
    color: #003896;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    text-decoration: none;
    width: fit-content;
}
.block21 .documents-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 1200px) {
    .block21 .container {
        width: 90%;
        max-width: 1140px;
    }
}
@media (max-width: 768px) {
    .block21 {
        padding: 40px 0; 
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .block21 .bg-image-block21 {
        display: none;
    }
    
    .block21 .container {
        position: static; 
        transform: none; 
        width: 90%;
        margin: 0 auto;
        padding: 0;
    }
    
    .block21 .header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 40px;
        align-items: center;
        padding-top: 20px;
    }
    
    .block21 .header-button {
        width: 100%;
        max-width: 295px;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .block21 .user-icon {
        width: 28px;
        height: 28px;
        background-size: contain;
    }
    
    .block21 .cards-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .block21 .card {
        border-radius: 15px;
        padding: 25px 15px;
    }
    
    .block21 .card-icon {
        margin-bottom: 15px;
    }
    
    .block21 .card-icon img {
        width: auto;
        height: 86px;
    }
    
    .block21 .card-title {
        font-size: 20px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    
    .block21 .card-link {
        font-size: 9px;
    }
    
    .block21 .documents-button {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .block21 {
        padding: 30px 0;
    }
    
    .block21 .container {
        width: 95%;
    }
    
    .block21 .header-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    .block21 .cards-grid.kafedra {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .block21 .cards-grid {
        gap: 20px;
        padding-bottom: 20px;
    }
    
    .block21 .card {
        padding: 40px 10px 30px 10px;
        max-width: 295px;
        margin: 0 auto;
        width: 100%;
    }
    .block21 .card:last-child:nth-child(odd) {
        margin: 0 auto;
        width: 100%;
    }
    
    .block21 .card-title {
        font-size: 20px;
    }
}
/*** end block 2.1 ***/

/*** block 3 ***/
.block3 {
    background-image: url(/divisions/assets/img-new/bg33.png);
    background-size: 132px;
}
.block3 .bg-image-block3{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.block3 .section{
    padding: 30px 0 50px 0;
}
.block3 .tabs-header {
    display: flex;
    gap: 40px;
    margin-bottom: 23px;
}

.block3 .tab-button {
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 21px;
    font-weight: 500;
    color: #919191;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.block3 .tab-button:hover {
    color: #282828;
}

.block3 .tab-button.active {
    color: #282828;
}
.block3 .tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 1px;
    background: #000;
}
.block3 .tab-content {
    display: none;
}

.block3 .tab-content.active {
    display: block;
}

.block3 .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.block3 .card-item {
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #D2DBE1;
}
.block3 .card-item.contact-card{
    margin-bottom: 0;
}

.block3 .director-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.block3 .director-photo {
    width: 148px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 10px;
    height: 201px;
}

.block3 .director-info {
    flex: 1;
}

.block3 .director-title {
    font-size: 13px;
    color: #000;
    margin-bottom: 7px;
    font-weight: bold;
    line-height: 1.3;
    padding-right: 80px;
}

.block3 .director-name {
    font-size: 20px;
    font-weight: 400;
    color: #000 !important;
    margin-bottom: 20px;
    line-height: 1.3;
    font-family: 'Roboto', sans-serif;
    padding-right: 60px;
}

.block3 .info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0px;
    font-size: 13px;
    color: #000;
}

.block3 .info-row svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.block3 .info-row a {
    color: #666;
    text-decoration: none;
}

.block3 .info-row a:hover {
    color: #000;
}

.block3 .contact-card h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
}

.block3 .contact-card h3 svg {
    width: 20px;
    height: 20px;
}

.block3 .address-text {
    font-size: 13px;
    color: #000;
    line-height: 1.6;
    margin-bottom: 24px;
}

.block3 .schedule-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.block3 .schedule-title svg {
    width: 20px;
    height: 20px;
}

.block3 .schedule-table {
    width: 100%;
}

.block3 .schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 0;
    font-size: 13px;
}

.block3 .schedule-day {
    color: #000;
    white-space: nowrap;
}

.block3 .schedule-time {
    color: #000;
    text-align: right;
}

/* Для текста "Уточняйте информацию у сотрудников" */
.schedule-row:has(.schedule-day:only-child) .schedule-day {
    white-space: normal;
}

/* Стили для карточек сотрудников (заместители, деканат) */
.staff-card-new {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #D2DBE1;
    transition: box-shadow 0.2s ease;
    height: auto;
}

.staff-card-new:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.staff-photo {
    flex-shrink: 0;
    width: 148px;
    height: 201px;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.staff-info {
    flex: 1;
    min-width: 0;
}

.staff-position {
    font-weight: 700;
    font-size: 13px;
    color: #000000;
    margin-bottom: 7px;
}

.staff-name {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #000000 !important;
    font-family: 'Roboto', sans-serif;
}

.staff-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.staff-contact-row a {
    text-decoration: none;
    color: #000000;
}

.staff-contact-row a:hover {
    text-decoration: underline;
}

.staff-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.staff-icon-text {
    text-decoration: none;
    color: #000000;
}

.staff-address-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #000000;
}

.staff-address-text {
    flex: 1;
    line-height: 1.4;
}

.staff-schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 13px;
    gap: 10px;
}

.schedule-icon {
    margin-top: 0;
}

.staff-schedule-content {
    flex: 1;
}

/* Компактные строки расписания */
.schedule-row-compact {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    line-height: 1.3;
}

.schedule-day-compact {
    font-weight: normal;
    color: #000000;
    min-width: 100px;
}

.schedule-time-compact {
    color: #000000;
}

/* Сетка для двух колонок на десктопе */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Стили для деканата */
.deanery-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.deanery-section-title {
    font-size: 22px;
    font-weight: 500;
    color: #282828;
}

.deanery-address-card {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr;
    gap: 20px;
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #D2DBE1;
}

.address-card-left {
    padding-right: 15px;
}

.address-header, .schedule-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.section-icon {
    width: 18px;
    height: 18px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.address-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.address-card-right iframe {
    width: 100%;
    height: 250px;
    border-radius: 12px;
}

.address-card-contacts {
    padding-left: 15px;
    border-left: 1px solid #E5E5E5;
}

.contacts-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.contact-row, .link-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-row a, .link-row a {
    color: #000;
    text-decoration: none;
}

.contact-row a:hover, .link-row a:hover {
    text-decoration: underline;
    color: #000;
}

.contact-icon, .link-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.links-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 20px 0 12px 0;
}

.deanery-staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.deanery-staff-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #D2DBE1;
    height: 100%;
}

.deanery-staff-name {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.3;
}

.deanery-staff-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.deanery-staff-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.deanery-staff-text {
    color: #000;
    line-height: 1.4;
}

.deanery-staff-link {
    color: #000;
    text-decoration: none;
}

.deanery-staff-link:hover {
    text-decoration: underline;
    color: #000;
}

/* Карусель */
.deanery-staff-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

.carousel-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #003896;
    color: #003896;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #003896;
    color: white;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.additional-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #D2DBE1;
    margin-top: 10px;
}

.info-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.info-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    white-space: pre-line;
}

/* Дополнительная информация на вкладке деканата */
.additional-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #D2DBE1;
    margin-top: 10px;
    width: 100%;
}

.info-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.additional-info-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.additional-info-list li {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.additional-info-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .deanery-address-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .address-card-contacts {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #E5E5E5;
        padding-top: 20px;
    }
    
    .deanery-staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    /* Стили для карточек заместителей - выравнивание по левому краю */
    .staff-card-new {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
    }

    .staff-photo {
        width: 148px;
        height: 201px;
        margin: 0;
    }

    .staff-info {
        width: 100%;
    }

    .staff-contact-row,
    .staff-address-row,
    .staff-schedule-row {
        justify-content: flex-start;
    }
    
    .schedule-row-compact {
        justify-content: flex-start;
        gap: 20px;
    }
    
    /* Сетка для двух колонок */
    .two-column-grid {
        grid-template-columns: 1fr;
    }
    
    /* Стили для деканата */
    .deanery-staff-grid {
        grid-template-columns: 1fr;
    }

    .carousel-card {
        flex: 0 0 calc(100% - 20px);
    }
    
    .deanery-section-title,
    .deanery-staff-title {
        font-size: 20px;
    }
    
    .address-card-right iframe {
        height: 200px;
    }
    
    /* Стили для руководителя */
    .block3 .tab-button.active::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 0;
        right: 0;
        height: 1px;
        background: #000000;
    }
    
    .block3 .contact-card h3{
        line-height: 1.3;
    }
    
    .block3 .tabs-header {
        gap: 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .block3 .tabs-header::-webkit-scrollbar {
        display: none;
    }

    .block3 .tab-button {
        font-size: 21px;
    }

    .block3 .cards-container {
        grid-template-columns: 1fr;
    }

    .block3 .director-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .block3 .director-info {
        width: 100%;
    }

    .block3 .info-row {
        justify-content: flex-start;
    }

    .block3 .card-item {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .block3 .section{
        width: 290px;
        margin: 0 auto;
    }
    .block3 .schedule-table {
        width: 100%;
    }
    .block3 .tabs-header {
        gap: 2px;
        margin-bottom: 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .block3 .tab-button {
        font-size: 21px;
        padding: 5px 0;
        text-align: left;
    }

    .block3 .director-name {
        font-size: 20px;
        text-align: left;
        padding-right: 50px;
    }

    .block3 .card-item {
        padding: 20px;
        border-radius: 12px;
    }
}
/*** end block 3 ****/

/*** block 4 ****/
.block4 {
    position: relative;
}
.block4 .graph{
    padding: 50px 0 30px 0;
}
.block4 .bg-image-block4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: #E9F3FF;
}
.block4 .container {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding: 0 15px;
}
.block4 h2 {
    color: #282828;
    text-align: left;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 400;
}
.block4 .dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}
/* Для кафедры - 4 графика */
.kafedra-dashboard {
    grid-template-columns: repeat(4, 1fr) !important;
}
.block4.kafedra .card{
    padding: 20px 20px 7px 20px;
}
@media screen and (max-width: 1200px) {
    .kafedra-dashboard {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {
    .kafedra-dashboard {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        grid-template-columns: none !important;
    }
}
.kafedra-dashboard .chart-container {
    height: 180px;
}
.kafedra-dashboard .donut-chart {
    height: 180px;
}

/* Уменьшаем внутренние отступы карточек */
.kafedra-dashboard .card {
    padding: 15px 15px 10px 15px;
}

/* Для мобилок ещё меньше */
@media screen and (max-width: 768px) {
    .kafedra-dashboard .chart-container,
    .kafedra-dashboard .donut-chart {
        height: 150px;
    }
    
    .kafedra-dashboard .card {
        padding: 12px 10px 8px 10px !important;
        min-height: 320px;
    }
}
.block4 .card {
    background: white;
    border-radius: 20px;
    padding: 30px 35px 20px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
}
.block4 .card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
    color: #000;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.block4.kafedra .card-title,
.block4.kafedra .card-subtitle {
    font-size: 13px;
}
.block4 .card-subtitle {
    font-size: 15px;
    color: #1C1C1C;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}
.block4 .chart-container {
    width: 100%;
    height: 250px;
    position: relative;
    margin: 10px 0;
}
.block4 .donut-chart {
    height: 250px;
}
.block4 .footer {
    border-radius: 10px;
    padding: 0px 3px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: none;
    margin-top: 20px;
}
.block4 .footer-icon {
    flex-shrink: 0;
    background-image: url(/divisions/assets/img-new/ico-book.svg);
    background-size: contain;
    width: 47px;
    height: 40px;
    background-repeat: no-repeat;
}
.block4 .footer-text {
    color: #282828;
    font-size: 14px;
    line-height: 1.6;
}
.block4 .chart-title {
    position: relative;
    margin-bottom: 15px;
}
.block4 .chart-title .bi-info-circle {
    color: #666;
    cursor: help;
    font-size: 14px;
    margin-left: 5px;
    vertical-align: middle;
}
.block4 .chart-title .bi-info-circle:hover {
    color: #003896;
}
@media screen and (max-width: 1200px) {
    .block4 .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .block4 .card {
        min-height: 420px;
    }
}
@media screen and (max-width: 768px) {
    .block4 .graph {
        padding: 30px 0;
    }
    .block4 h2 {
        font-size: 25px;
        margin-bottom: 30px;
        padding: 0 15px;
        text-align: left;
        line-height: 1.2;
    }
    .block4 .dashboard {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
        margin-bottom: 20px;
        padding: 0 15px 10px 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .block4 .dashboard::-webkit-scrollbar {
        display: none;
    }
    .block4 .card {
        flex: 0 0 90%;
        min-width: 290px;
        min-height: 400px;
        padding: 20px 15px;
        scroll-snap-align: start;
        max-width: 290px;
    }
    .block4 .card-title {
        font-size: 16px;
        min-height: 40px;
    }
    .block4 .card-subtitle {
        font-size: 14px;
    }
    .block4 .chart-container {
        height: 200px;
    }
    .block4 .donut-chart {
        height: 200px;
    }
    .block4 .legend {
        margin-top: 10px;
        justify-content: flex-start;
    }
    .block4 .legend-item {
        font-size: 12px;
        flex: 0 0 calc(50% - 10px);
    }
    .block4 .legend-color {
        width: 12px;
        height: 12px;
        margin-right: 6px;
    }
    .block4 .footer {
        text-align: left;
        padding: 0 15px 0 0;
        gap: 15px;
        margin: 20px 15px 0;
        align-items: flex-start;
        width: 290px;
    }
    .block4 .footer-icon {
        width: 30px;
        
    }
    .block4 .footer-text {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .block4 .dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .block4 .card {
        padding: 20px 15px;
        min-height: 400px;
    }
    .block4 .card-title {
        font-size: 17px;
    }
    .block4 .legend {
        justify-content: center;
    }
}

@media screen and (max-width: 380px) {
    .block4 .card {
        min-width: 280px;
        min-height: 380px;
        padding: 15px 12px;
    }
    .block4 .chart-container {
        height: 180px;
    }
    .block4 .card-title {
        font-size: 15px;
    }
}
/*** end block 4 ***/

/*** block 5 ***/
.block5 {
    position: relative;
    display: flex;
    align-items: center;
    /*height: 100%;*/
}

.block5 .bg-image-block5 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: #fff;
}

.block5 .news-section {
    position: relative;
    overflow: hidden;
    padding: 50px 0 40px;
    width: 100%;
    z-index: 1;
}

.block5 .container {
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.block5 .container.d-lg-block {
    padding: 0;
}

.block5 .news-title {
    color: #282828;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 30px;
}

.block5 .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.block5 .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.block5 .news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
}

.block5 .news-card-header {
    position: relative;
}
.block5 .news-date {
    position: absolute;
    top: 0px;
    left: 0px;
    background: #ffffff;
    padding: 5px 11px;
    border-radius: 8px 0 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.block5 .news-date-day {
    font-size: 32px;
    font-weight: 700;
    color: #003896;
    line-height: 1;
    display: block;
}
.block5 .news-date-month {
    font-size: 16px;
    color: #003896;
    display: block;
    line-height: 1;
}
.block5 .news-date-year {
    font-size: 16px;
    color: #003896;
    display: block;
    line-height: 1;
}
.block5 .news-card:hover{
    text-decoration: none;
}
.block5 .all-news-btn {
    display: inline-block;
    padding: 6px 32px;
    background: #ffffff;
    color: #003896;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #003896;
}
.block5 .all-news-btn:hover {
    background: #003896;
    color: #FFF;
}
.block5 .news-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #D2DBE1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; 
}
.block5 .news-card a:hover{
    text-decoration: none;
}
.block5 .news-content {
    padding: 20px 25px 70px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.block5 .news-text {
    font-size: 17px;
    line-height: 1.3;
    color: #000000;
    margin-bottom: 0px;
    font-weight: 400;
    min-height: 100px;
}

.block5 .news-category {
    padding: 0 15px 15px 15px;
    margin-top: auto; 
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.block5 .item-category {
    margin: 0;
    padding: 0 7px;
    font-size: 12px;
    color: #000;
    background: #ecebeb;
    border-radius: 3px; 
}
@media (max-width: 768px) {
    .block5 .news-card:hover{
        transform: none;
    }
    .block5 .news-section {
        padding: 40px 0 50px;
    }

    .block5 .container {
        padding-left: 30px;
    }

    .block5 .news-title {
        font-size: 25px;
        margin-bottom: 15px;
    }

    .block5 .news-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 20px;
        margin-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .block5 .news-grid::-webkit-scrollbar {
        display: none;
    }

    .block5 .news-card {
        min-width: 290px;
        max-width: 290px;
        scroll-snap-align: start;
        flex-shrink: 0;
        height:  auto;
        border: 0.866093px solid #D2DBE1;
    }

    .block5 .news-image {
        height: 180px;
    }

    .block5 .news-date {
        top: 0;
        left: 0;
        padding: 6px 12px;
    }

    .block5 .news-date-day {
        font-size: 28px;
    }

    .block5 .news-date-month {
        font-size: 11px;
    }

    .block5 .news-date-year {
        font-size: 13px;
    }

    .block5 .news-content {
        padding: 20px;
    }

    .block5 .news-text {
        font-size: 16px;
        min-height: 80px;
    }

    .block5 .all-news-btn {
        padding: 7px 19px;
        font-size: 14px;
    }

    .block5 .news-section::after {
        display: none;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .block5 .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .block5 .news-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

/*** end block5 ***/

/*** block51  ***/
/*.block51 {
    position: relative;
    padding: 40px 0 60px 0;
    background-image: url(/divisions/assets/img-new/bg611.png);
    background-size: 280px;
}*/

/* Переопределяем grid для вкладки преподавателей */
.teachers-container {
    display: block !important;
    overflow: visible !important;
    gap: 0 !important;
}

.block51 {
    /*background: #E9F3FF;*/
    width: 100%;
    box-sizing: border-box;
}
.block51 h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #282828;
}
.block51 .item-staff-grid {
    width: 100%;
    box-sizing: border-box;
}

/* ── Карусель block51 ── */
.staff-carousel-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.staff-carousel-viewport {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.block51 .staff-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.block51 .staff-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #D2DBE1;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
}

.staff-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #D2DBE1;
    color: #003896;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 2;
}
.staff-carousel-btn:hover {
    background: #003896;
    color: #fff;
}
.staff-carousel-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}
.staff-carousel-prev { left: -54px; }
.staff-carousel-next { right: -54px; }

/* Кнопка «Все преподаватели» */
.staff-carousel-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}
.staff-all-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #fff;
    color: #003896;
    border: 1px solid #003896;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.staff-all-btn:hover {
    background: #003896;
    color: #fff;
    text-decoration: none;
}

.block51 .position {
    font-size: 12px;
    color: #000;
    margin-bottom: 7px;
    text-align: center;
    font-weight: bold;
}
.block51 .photo-placeholder {
    height: 184px;
    width: 138px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}
.block51 .photo-placeholder svg {
    width: 70px;
    height: 70px;
    opacity: 0.3;
}
.block51 .photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.block51 .name {
    color: #000;
    font-size: 16px;
    text-align: left;
    margin-bottom: 15px;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.3;
    padding-right: 29px;
}
.block51 .name:hover {
    text-decoration: underline;
}

.block51 .contact {
    font-size: 13px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.block51 .degree-item {
    font-size: 11px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}
.block51 .degree-item:last-child {
    margin-bottom: 0;
}
.block51 .degree-item img {
    width: 14px;
    fill: #000;
    flex-shrink: 0;
}
.block51 .degree-item div {
    line-height: 1.2;
}
.block51 .degrees .contact img{
    width: 14px;
}
.staff-mob-nav{
    display: none;
}

@media (max-width: 768px) {
    .staff-carousel-prev { left: -44px; }
    .staff-carousel-next { right: -44px; }
    .staff-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .block51 h2 {
        font-size: 24px;
        margin-bottom: 30px;
        line-height: 1.2;
    }
}
@media (max-width: 480px) {
    .block51 .container {
        width: 290px;
        padding: 0;
    }

    /* Десктопные стрелки на мобильных скрываем */
    .staff-carousel-prev,
    .staff-carousel-next {
        display: none;
    }

    /* Footer: кнопка слева, стрелки справа */
    .staff-carousel-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 20px;
    }
    .staff-carousel-footer .staff-mob-nav {
        display: flex !important;
        gap: 8px;
        flex-shrink: 0;
    }
    .staff-mob-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #D2DBE1;
        color: #003896;
        font-size: 15px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s ease;
    }
    .staff-mob-btn:hover { background: #003896; color: #fff; }
    .staff-mob-btn:disabled { opacity: 0.3; pointer-events: none; }
}



/*** block6 ***/
.block6 {
    position: relative;
    padding: 40px 0 60px 0;
    background-image: url(/divisions/assets/img-new/bg66.png);
    background-size: 132px;
}

.block6 .bg-image-block6 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.block6 .testimonials-section {
    position: relative;
    z-index: 1;
    /*max-width: 1200px;*/
    margin: 0 auto;
}

.block6 .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.block6 .section-title {
    font-size: 32px;
    line-height: 1.3;
    font-weight: normal;
    color: #282828;
    margin: 0;
}

.block6 .navigation-buttons {
    display: flex;
    gap: 12px;
}
.block6 .our-testimonials .reviews-card{
    box-shadow: none;
    border-radius: 20px;
    margin-left: 4px;
}

.block6 .nav-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid #0051a8;
    color: #0051a8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /*box-shadow: 0 2px 8px rgba(0, 81, 168, 0.1);*/
}

.block6 .nav-button:hover {
    background: #0051a8;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 81, 168, 0.2);
}

.block6 .nav-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.block6 .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.block6 .testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.block6 .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.block6 .testimonial-avatar {
    position: absolute;
    top: -40px;
    left: 32px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.block6 .testimonial-content {
    margin-top: 50px;
    margin-bottom: 24px;
}

.block6 .testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.block6 .testimonial-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.block6 .star {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.block6 .testimonial-author {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.block6 .leave-review-button {
    background: #003896;
    color: white;
    border: none;
    padding: 12px 19px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.block6 .leave-review-button:hover {
    background: #003896;
    box-shadow: 0 4px 12px rgba(0, 81, 168, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
}
@media (max-width: 1024px) {
    .block6 .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .block6 .section-title {
        font-size: 28px;
    }
}

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

    .block6 .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .block6 .section-title {
        font-size: 25px;
    }

    .block6 .testimonial-card {
        padding: 30px 24px;
    }

    .block6 .testimonial-avatar {
        width: 60px;
        height: 60px;
        top: -30px;
        left: 24px;
    }

    .block6 .testimonial-content {
        margin-top: 40px;
    }

    .block6 .testimonial-text {
        font-size: 14px;
    }

    .block6 .testimonial-author {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .block6 .container{
        width: 290px;
        margin: 0 auto;
        padding: 0;
    }
    .block6 .testimonials-grid {
        gap: 60px;
    }

    .block6 .nav-button {
        width: 40px;
        height: 40px;
    }
    .block6 .leave-review-button{
        padding: 11px 25px;
    }
}
/*** end block 6 ****/

/*** block 7 ****/
.block7 {
    position: relative;
    width: 100%;
    background: #282828;
    isolation: isolate;
}

.block7 .bg-image-block7 {
    position: absolute;
    inset: 0;
    background: #282828;
    z-index: 0;
}

.block7 .video-section {
    position: relative;
    padding: 60px 0 100px;
    z-index: 1;
}

/* ── Слайдер — точно по ширине контейнера ── */
.b7-slider {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.b7-slide { display: none; width: 100%; }
.b7-slide.is-active {
    display: block;
    animation: b7FadeIn 0.4s ease;
}
@keyframes b7FadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* iframe */
.b7-slide .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.b7-slide .video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* image */
.b7-slide .b7-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}
.b7-slide .b7-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Кнопки nav — абсолютно по бокам слайдера, выходят за края ── */
.b7-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, opacity 0.2s;
    z-index: 10;
}
.b7-prev { left: -62px; }
.b7-next { right: -62px; }
.b7-nav-btn[style*="hidden"] {
    pointer-events: none;
    opacity: 0;
}
.b7-nav-btn:hover {
    background: rgba(255,255,255,0.28);
}

/* ── Точки ── */
.b7-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.b7-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.2s;
}
.b7-dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

@media (max-width: 768px) {
    .block7 .video-section { padding: 30px 0px 45px 0px; width: 80%; margin: 0 auto;}
    .b7-nav-btn { width: 36px; height: 36px; font-size: 15px; }
    .b7-prev { left: -50px; }
    .b7-next { right: -50px; }
    .b7-dots { bottom: 16px; }
}

@media (max-width: 480px) {
    .b7-slider { border-radius: 12px; }
    .b7-nav-btn { width: 32px; height: 32px; font-size: 13px; }
    .b7-prev { left: -42px; }
    .b7-next { right: -42px; }
}



/*** block 8 ****/
.block8 {
    position: relative;
    width: 100%;
    padding: 50px 0;
    isolation: isolate;
}

.block8 .bg-image-block8 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: #E9F3FF;
}

.block8 .container {
    position: relative;
    z-index: 1;
    
}

.block8 h2 {
    font-size: 32px;
    font-weight: normal;
    color: #282828;
    margin-bottom: 32px;
    line-height: 1.2;
}

.block8 .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.block8 .project-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 10px 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 70px;
    justify-content: center;
}
.block8 .project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.block8 .project-card:hover,
a:hover{
    text-decoration: none;
}
.block8 .project-card h2 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 0px;
    color: #000;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .block8 {
        padding: 60px 15px;
    }

    .block8 h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .block8 .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .block8 .project-card {
        padding: 10px 20px;
    }

    .block8 .project-card h2 {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .block8 .container {
        position: relative;
        z-index: 1;
        margin: 0 auto;
        width: 290px;
        padding: 0;
    }
    .block8 {
        padding: 40px 16px;
    }

    .block8 h2 {
        font-size: 25px;
        margin-bottom: 20px;
    }

    .block8 .project-card {
        padding: 10px 18px;
        min-height: 67px;
        text-align: center;
    }

    .block8 .project-card h2 {
        font-size: 17px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .block8 .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .block8 .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
    }
    .block8 .projects-grid.two {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
}
/*** end block 8 ***/