:root {
    --slides-per-view: 4;
}

@media (max-width: 992px) {
    :root {
        --slides-per-view: 2;
    }
} /* планшет */
@media (max-width: 600px) {
    :root {
        --slides-per-view: 1;
    }
}

html {
    scroll-behavior: smooth;
}

.menu-open {
    overflow: hidden;
}

* {
    margin: 0;
    box-sizing: border-box;
}

/* Header */

header {
    background: rgb(241, 187, 0);
}

.menu-button {
    display: none;
}

#menu-phone-block {
    display: none;
}

.header-block {
    text-align: center;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-section {
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.menu-section > a,
.menu-section > div {
    padding: 0;
    margin: 0 25px;
}

.menu-link {
    text-decoration: none;
}

.coat-of-arms-section {
    left: 100px;
    top: 25px;
    position: absolute;
}

.coat-of-arms-section-img {
    height: 200px;
}

.inline-block {
    display: inline-block;
}

/* drop down */

.header-button {
    background-color: rgb(0, 0, 0, 0);
    color: black;
    font-size: 18px;
    line-height: 28px;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.header-button:hover {
    background-color: white;
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    font-size: 16px;
    text-align: left;
    position: absolute;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-content a {
    background-color: white;
    color: black;
    padding: 8px 24px 8px 12px;
    text-decoration: none;
    display: block;
    position: relative;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgb(218, 217, 223);
}

/* Language */

.language-section {
    right: 20px;
    top: 25px;
    position: absolute;
    align-items: center;
    display: flex;
    width: auto;
}

.language-section a {
    margin: 0 5px;
}

.language-a {
    text-decoration: none;
}

.language-button {
    padding: 0 8px;
    border: 1px solid black;
    border-radius: 12px;
    background-color: transparent;
    cursor: pointer;
    color: black;
    font-size: 18px;
    line-height: 24px;
    transition: all 0.3s ease;
}

.language-button:hover {
    border: 1px solid #ffe06c;
    background-color: white;
    color: #ffe06c;
}

/* Header bottom */

.logo-bottom-header {
    vertical-align: top;
    margin-top: 15px;
    border: 3px solid white;
}

.bottom-header-text {
    font-size: 32px;
    margin-top: 50px;
    text-align: center;
}

.bottom-header-text-b {
    font-size: 46px;
    text-shadow: 2px 2px 2px white;
}

/* Text */

.title {
    color: #5c5c5c;
    text-align: center;
    font-size: 24px;
    line-height: 28px;
}

/* Search */

.search-results {
    font-size: 18px;
    text-align: left;
    position: absolute;
    background-color: white;
    min-width: 200px;
    width: auto;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
    cursor: alias;
    transition: all 0.3s ease;
    z-index: 1;
}

.search-results a {
    color: black;
    padding: 10px 10px;
    text-decoration: none;
    display: block;
    position: relative;
    cursor: pointer;
    width: 100%;
}

.search-results a:hover {
    background-color: rgb(218, 217, 223);
}

/* Main containter styles */

.link-blocks-container {
    text-align: center;
}

.grid-block {
    width: 350px;
    height: 350px;
    margin: 20px;
    display: inline-flex;
    box-sizing: border-box;
    text-align: center;
    border-radius: 15%;
    background: linear-gradient(to top right, white 25%, rgb(200, 211, 221));
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 5px solid white;
    border-bottom: 0 solid white;
    border-left: 0 solid white;
    box-shadow: -12px 12px 12px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, border 0.3s ease;
}

.grid-block:hover {
    border-bottom: 5px solid white;
    border-left: 5px solid white;
    box-shadow: none;
}

.grid-link {
    flex: 1;
    border-radius: 15%;
    text-align: center;
    color: white;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.link-block-text {
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    color: black;
}

.link-block-text-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}

.link-blocks-img {
    height: 180px;
    margin-top: 50px;
    margin-bottom: 15px;
}

.horizontal-line {
    margin-left: 25%;
    margin-right: 25%;
    height: 3px;
    background-color: #a1a1a3;
    position: relative;
    box-shadow: -3px 3px 3px rgb(255, 255, 255, 0.6);
}

.vertical-line-up,
.vertical-line-down {
    display: inline-block;
    position: relative;
    background-color: #a1a1a3;
    height: 325px;
    width: 3px;
    box-shadow: -3px 3px 3px rgb(255, 255, 255, 0.6);
}

.vertical-line-up {
    margin-top: 5%;
    margin-bottom: 0;
    vertical-align: top;
}

.vertical-line-down {
    margin-top: 0;
    margin-bottom: 5%;
    vertical-align: bottom;
}

.all-background {
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

#leadership-link {
    margin-bottom: 50px;
}

.leadership-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
}

.leadership-card {
    margin: 25px;
    font-size: 24px;
    z-index: 1;
}

.leadership-box-container {
    background-color: rgb(255, 255, 255);
    position: relative;
    margin: 0 auto;
    width: 80%;
    box-shadow: 15px 15px 15px rgba(0, 0, 0, 0.25);
}

.leadership-box-title {
    vertical-align: middle;
    font-size: 38px;
    margin-left: 200px;
    margin-top: 25px;
    margin-bottom: 25px;
}
/* Leadership-box */

.leadership-box-container-svg-top {
    position: absolute;
    height: 30%;
    right: 537px;
    top: 0;
}

#slider-links {
    background: white;
    box-shadow: 0px 5px 5px rgb(0, 0, 0, 0.35);
}

/* Slider link */

.slider-container {
    position: relative;
    margin: 0 25px;
}

.slider-container-link {
    position: relative;
    width: 85%;
    margin: 0 auto;
    margin-top: 35px;
    height: 205px;
    overflow: hidden;
}

.slider-link {
    display: flex;
    /* justify-content: center;
    DELETE is more links  */
    gap: 2px;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

.slide-link {
    border-radius: 16px;
    flex: 0 0
        calc(
            (100% - (var(--slides-per-view) - 1) * 4px) /
                var(--slides-per-view)
        );
    height: 200px;
    margin: 2px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.slide-link:hover {
    box-shadow: 0px 0px 3px rgb(0, 0, 0, 0.3);
}

.slider-link a {
    text-decoration: none;
    color: black;
}

.card-link {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.card-link img {
    height: auto;
    max-height: 100px;
    width: auto;
    margin-bottom: 24px;
    border-radius: 8px;
}

.card-link span {
    font-size: 18px;
}

/* Pagination */
.pagination {
    text-align: center;
    height: 25px;
    margin: 15px;
}

.pagination-button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #bbb;
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-button.active {
    background-color: #333;
}

/* buttons for slider links */

.prev-button,
.next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-color: rgba(201, 202, 207, 0.65);
    border: none;
    border-radius: 25%;
    cursor: pointer;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.next-button {
    right: 0;
}

.prev-button:hover,
.next-button:hover {
    background-color: black;
}

/* Up buttun */

#scrollToTopBtn {
    position: fixed;
    bottom: 50px;
    right: 25px;
    display: none;
    background-color: rgb(0, 0, 0, 0.55);
    color: white;
    font-size: 20px;
    border: none;
    border-radius: 25px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    text-align: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: rgb(0, 0, 0, 1);
}

/* Footer */

.row {
    text-align: center;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-container {
    margin: auto;
}

.footer-block {
    width: 350px;
    margin: 0px 75px;
    text-align: left;
    font-size: 20px;
    display: inline-block;
}

.footer-block i {
    color: black;
    font-size: 24px;
}

.footer-block a {
    color: black;
    text-decoration: none;
}

.footer-name-b {
    margin-left: 8px;
    font-size: 22px;
}

.footer-hr {
    width: 75%;
    margin-top: 5px;
    margin-bottom: 15px;
    border-color: black;
    border-style: solid;
    border-width: 1px;
}

@media screen and (max-width: 425px) {
    .leadership-row {
        padding: 8px;
    }

    .leadership-card {
        margin: 16px;
        font-size: 20px;
    }

    .language-button {
        padding: 0 5px;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: Arial, sans-serif;
        font-size: 100%;
    }

    /* Header */

    header {
        background: rgb(241, 187, 0);
    }

    #menu-phone-block {
        display: block;
    }

    #menuButton {
        position: absolute;
        height: 50px;
        width: 50px;
        left: 15px;
        top: 15px;
        font-size: 48px;
        line-height: normal;
        text-align: center;
        z-index: 1000;
    }

    /* Menu phone */

    .menu {
        width: 100vw;
        height: 100%;
        background-color: #f0f0f0;
        position: fixed;
        z-index: 1000;
        top: 0;
        left: -100vw;
        transition: left 0.3s ease;
        overflow-x: hidden;
        padding-top: 20px;
    }

    .menu a {
        text-align: center;
        padding: 10px;
        display: block;
        color: #000;
        text-decoration: none;
    }

    .menu a:hover {
        background-color: #ddd;
    }

    .dropdown-mobile {
        padding: 8px;
    }

    .menu-section {
        display: none;
    }

    .coat-of-arms-section {
        left: 50%;
        transform: translateX(-50%);
        top: 0px;
        position: absolute;
    }

    .coat-of-arms-section-img {
        height: 75px;
    }

    .block {
        margin-right: 15px;
    }

    .language-section {
        right: 5px;
        top: 30px;
    }

    .language-img {
        height: 25px;
    }

    /* Language */

    /* Header bottom */

    .logo-bottom-header {
        vertical-align: top;
        margin-top: 15px;
        border: 3px solid white;
    }

    .bottom-header-text {
        font-size: 18px;
        line-height: 28px;
        margin-top: 50px;
        text-align: center;
    }

    .bottom-header-text-b {
        font-size: 20px;
        line-height: 28px;
    }

    .searchTerm {
        font-size: 12px;
    }

    .title {
        font-size: 18px;
    }

    /* Main containter styles */

    .link-blocks-container {
        text-align: center;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .grid-block {
        width: 150px;
        height: 150px;
        margin: 5px;
        display: inline-flex;
        box-sizing: border-box;
        text-align: center;
        border-radius: 15%;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        border: 3px solid white;
        border-bottom: 0 solid white;
        border-left: 0 solid white;
        box-shadow: -6px 6px 6px rgba(0, 0, 0, 0.3);
        transition: box-shadow 0.3s ease, border 0.3s ease;
    }

    .grid-block:hover {
        border-bottom: 3px solid white;
        border-left: 3px solid white;
        box-shadow: none;
    }

    .grid-link {
        flex: 1;
        border-radius: 15%;
        text-align: center;
        height: 100%;
        width: 100%;
        position: relative;
        overflow: hidden;
        transition: background-color 0.3s ease;
        text-decoration: none;
    }

    .link-blocks-img {
        height: 75px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .link-block-text {
        font-size: 11px;
        line-height: normal;
        text-align: center;
        color: black;
    }

    .link-block-text-background {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
    }

    .horizontal-line,
    .vertical-line-up,
    .vertical-line-down {
        display: none;
    }

    /* Leadership-box */

    #leadership-link {
        margin-bottom: 0;
    }

    .leadership-box-title {
        vertical-align: middle;
        font-size: 18px;
        line-height: 24px;
        margin: 16px 12px;
        text-align: center;
    }

    .mobile-right-text {
        width: 100%;
        margin: 8px 0;
        font-size: 14px;
        line-height: normal;
    }

    .leadership-box-container-svg-top {
        display: none;
    }

    #slider-links {
        background: white;
        box-shadow: 0px 5px 5px rgb(0, 0, 0, 0.35);
    }

    /* Slider link */

    .slider-container {
        margin: 0;
    }

    .slider-container-link {
        position: relative;
        max-width: 85%;
        margin: 0 auto;
        margin-top: 35px;
        height: 155px;
        overflow: hidden;
    }

    .slider-link {
        display: flex;
        height: 100%;
        transition: transform 0.3s ease-in-out;
    }

    .slide-link {
        /* flex: 0 0 19.5%; */
        height: 100px;
        margin: 0;
        box-sizing: border-box;
        align-items: start;
    }

    .slide-link:hover {
        box-shadow: none;
    }

    .card-link {
        padding: 5px;
        text-align: center;
        margin: auto;
    }

    .card-link img {
        height: 65px;
        width: auto;
        border-radius: 8px;
    }

    .card-link span {
        font-size: 10px;
        line-height: normal;
    }

    /* Pagination */
    .pagination {
        text-align: center;
        height: 25px;
    }

    .pagination-button {
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background-color: #bbb;
        border: none;
        margin: 0 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .pagination-button.active {
        background-color: #333;
    }

    /* buttons for slider links */

    .prev-button,
    .next-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        background-color: rgba(201, 202, 207, 0.65);
        border: none;
        border-radius: 25%;
        cursor: pointer;
        color: white;
        font-size: 16px;
        align-items: center;
        justify-content: center;
        display: flex;
    }

    .next-button {
        right: 0;
    }

    .prev-button:hover,
    .next-button:hover {
        background-color: rgb(0, 0, 0, 1);
    }

    /* Up buttun */

    #scrollToTopBtn {
        position: fixed;
        bottom: 50px;
        right: 25px;
        display: none;
        background-color: rgb(0, 0, 0, 0.55);
        color: white;
        font-size: 20px;
        border: none;
        border-radius: 25px;
        width: 40px;
        height: 40px;
        cursor: pointer;
        text-align: center;
    }

    #scrollToTopBtn:hover {
        background-color: rgb(0, 0, 0, 1);
    }

    /* Footer */

    .footer-container {
        margin: auto;
    }

    .footer-block {
        width: 250px;
        margin: 16px 0px;
        text-align: left;
        font-size: 16px;
        display: inline-block;
    }

    .footer-block i {
        color: black;
        font-size: 26px;
    }

    .footer-block a {
        color: black;
        text-decoration: none;
    }

    .footer-hr {
        width: 90%;
        margin-top: 5px;
        margin-bottom: 15px;
        border-color: black;
        border-style: solid;
        border-width: 1px;
    }
}

@media screen and (min-width: 426px) and (max-width: 820px) {
    .leadership-row {
        padding: 8px;
    }

    .leadership-card {
        margin: 16px;
        font-size: 20px;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: Arial, sans-serif;
        font-size: 100%;
    }

    /* Header */

    .bottom-header-text {
        font-size: 20px;
    }

    .bottom-header-text-b {
        font-size: 28px;
    }

    .title {
        font-size: 18px;
    }

    header {
        background: rgb(241, 187, 0);
    }

    #menu-phone-block {
        display: block;
    }

    #menuButton {
        position: absolute;
        height: 50px;
        width: 50px;
        left: 15px;
        top: 15px;
        font-size: 48px;
        text-align: center;
        z-index: 1000;
    }

    /* Menu phone */

    .menu {
        width: 100vw;
        height: 100%;
        background-color: #f0f0f0;
        position: fixed;
        z-index: 1000;
        top: 0;
        left: -100vw;
        transition: left 0.3s ease;
        overflow-x: hidden;
        padding-top: 20px;
    }

    .menu a {
        text-align: center;
        padding: 10px;
        display: block;
        color: #000;
        text-decoration: none;
    }

    .menu a:hover {
        background-color: #ddd;
    }

    .menu-section {
        display: none;
    }

    .coat-of-arms-section {
        left: 50%;
        transform: translateX(-50%);
        top: 0px;
        position: absolute;
    }

    .coat-of-arms-section-img {
        height: 75px;
    }

    /* DropButton */

    .header-button {
        font-size: 24px;
    }

    /* Main containter styles */

    .link-blocks-container {
        text-align: center;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .grid-block {
        width: 200px;
        height: 200px;
        margin: 5px;
        display: inline-flex;
        box-sizing: border-box;
        text-align: center;
        border-radius: 15%;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        border: 5px solid white;
        border-bottom: 0 solid white;
        border-left: 0 solid white;
        box-shadow: -8px 8px 8px rgba(0, 0, 0, 0.3);
        transition: box-shadow 0.3s ease, border 0.3s ease;
    }

    .grid-link {
        flex: 1;
        border-radius: 15%;
        text-align: center;
        color: white;
        height: 100%;
        width: 100%;
        position: relative;
        overflow: hidden;
        transition: background-color 0.3s ease;
        text-decoration: none;
    }

    .link-blocks-img {
        height: 100px;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .link-block-text {
        font-size: 14px;
        line-height: normal;
        text-align: center;
        color: black;
    }

    .link-block-text-background {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
    }

    .horizontal-line,
    .vertical-line-up,
    .vertical-line-down {
        display: none;
    }

    #leadership-link {
        margin-bottom: 0;
    }

    .leadership-box-title {
        vertical-align: middle;
        font-size: 32px;
        margin-left: 24px;
    }

    .mobile-right-text {
        width: 100%;
        margin-bottom: 10px;
    }

    .card-link span {
        font-size: 14px;
    }

    .leadership-box-container-svg-top {
        display: none;
    }

    .footer-block {
        margin: 10px 25px;
    }
}

@media screen and (min-width: 821px) and (max-width: 1024px) {
    .leadership-row {
        flex-direction: column;
        align-items: start;
        padding: 16px;
    }

    .bottom-header-text {
        font-size: 18px;
    }

    .title {
        font-size: 20px;
    }

    .coat-of-arms-section {
        top: 35px;
        left: 35px;
    }

    .coat-of-arms-section-img {
        height: 75px;
    }

    .header-button {
        margin: 0px;
        font-size: 16px;
    }

    .dropdown-content a {
        font-size: 16px;
    }

    .bottom-header-text {
        font-size: 24px;
    }

    .bottom-header-text-b {
        font-size: 38px;
    }

    .link-blocks-container {
        text-align: center;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .grid-block {
        width: 250px;
        height: 250px;
        margin: 15px;
        display: inline-flex;
        box-sizing: border-box;
        text-align: center;
        border-radius: 15%;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        border: 5px solid white;
        border-bottom: 0 solid white;
        border-left: 0 solid white;
        box-shadow: -12px 12px 12px rgba(0, 0, 0, 0.3);
        transition: box-shadow 0.3s ease, border 0.3s ease;
    }

    .grid-link {
        flex: 1;
        border-radius: 15%;
        text-align: center;
        color: white;
        height: 100%;
        width: 100%;
        position: relative;
        overflow: hidden;
        transition: background-color 0.3s ease;
        text-decoration: none;
    }

    .link-blocks-img {
        height: 150px;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .link-block-text {
        font-size: 16px;
        line-height: normal;
        text-align: center;
        color: black;
    }

    .link-block-text-background {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
    }

    .horizontal-line,
    .vertical-line-up,
    .vertical-line-down {
        display: none;
    }

    #leadership-link {
        margin-bottom: 0;
    }

    .leadership-box-title {
        vertical-align: middle;
        font-size: 32px;
        margin-left: 24px;
    }

    .slider-container-link {
        height: 225px;
    }

    .slide-link {
        height: 220px;
    }

    .mobile-right-text {
        display: inline-block;
    }

    .leadership-box-container-svg-top {
        display: none;
    }

    .menu-section > a,
    .menu-section > div {
        margin: 0px 8px;
    }

    .card-link span {
        font-size: 16px;
    }

    .footer-block {
        font-size: 18px;
        margin: 12px 25px;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .leadership-row {
        flex-direction: column;
        align-items: start;
        padding: 16px;
    }

    .bottom-header-text {
        font-size: 20px;
    }

    .bottom-header-text-b {
        font-size: 38px;
    }

    .title {
        font-size: 20px;
    }

    .link-block-text {
        font-size: 16px;
    }

    .coat-of-arms-section {
        left: 35px;
    }

    .mobile-right-text {
        display: inline-block;
    }

    .leadership-box-container-svg-top {
        display: none;
    }

    .card-link span {
        font-size: 16px;
    }

    .footer-block {
        font-size: 18px;
    }

    .header-button {
        font-size: 16px;
    }
}

@media screen and (min-width: 1441px) and (max-width: 1600px) {
    .coat-of-arms-section-img {
        height: 150px;
    }

    .leadership-box-container-svg-top {
        right: 461px;
    }

    .leadership-row {
        flex-direction: column;
        align-items: start;
    }
}
