:root {
    --blue: #303b86;
    --blue-dark: #263170;
    --blue-soft: #7f8bb8;
    --card-blue: #455397;
    --accent: #ffd28d;
    --text: #111111;
    --muted: #8f8f8f;
    --line: #ececec;
    --footer: #f0eeee;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: #ffffff;
}

.page-transition {
    animation: page-fade-in .32s ease both;
}

.page-transition.is-switching-language {
    animation: page-fade-out .18s ease both;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes page-fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-5px);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

.site-top {
    background: var(--blue);
}

.top-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1700px, calc(100% - 80px));
    min-height: 132px;
    margin: 0 auto;
}

.language-switch {
    position: absolute;
    left: 0;
    top: 26px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
}

.language-switch a {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 18px;
    transition: background-color .2s ease, font-weight .2s ease, transform .2s ease;
}

.language-switch a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .12);
}

.language-switch .is-active {
    font-weight: 800;
    background: rgba(255, 255, 255, .2);
}

.brand {
    display: block;
}

.brand img {
    display: block;
    width: min(330px, 54vw);
    max-height: 92px;
    object-fit: contain;
}

.main-menu {
    position: relative;
    z-index: 5;
    min-height: 58px;
    margin-bottom: -58px;
    background: rgba(205, 205, 205, .78);
    backdrop-filter: blur(5px);
}

.main-menu-static {
    margin-bottom: 0;
}

.menu-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 58px;
    width: min(1060px, calc(100% - 40px));
    min-height: 58px;
    margin: 0 auto;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    list-style: none;
    padding: 0;
}

.menu-inner li {
    position: relative;
}

.menu-inner a,
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    transition: color .25s ease, transform .25s ease;
}

.has-submenu > a::after {
    display: block;
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease, opacity .25s ease;
    content: "";
}

.menu-inner a:hover,
.menu-inner a:focus-visible,
.menu-inner .is-current {
    color: #ffffff;
    transform: translateY(-1px);
}

.has-submenu:hover > a::after,
.has-submenu:focus-within > a::after {
    opacity: .85;
    transform: translateY(4px) rotate(45deg);
    animation: arrow-bounce .7s ease-in-out infinite alternate;
}

@keyframes arrow-bounce {
    from {
        transform: translateY(2px) rotate(45deg);
    }

    to {
        transform: translateY(6px) rotate(45deg);
    }
}

.submenu {
    position: absolute;
    left: 0;
    top: calc(100% + 14px);
    z-index: 20;
    min-width: 245px;
    margin: 0;
    padding: 10px;
    border-radius: 8px;
    list-style: none;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 50px rgba(25, 31, 69, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.submenu::before {
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
    content: "";
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    position: relative;
}

.submenu a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    color: #28306d;
    font-size: 14px;
    line-height: 1.25;
    text-shadow: none;
    white-space: normal;
}

.submenu a:hover,
.submenu a:focus-visible {
    color: #ffffff;
    background: var(--blue);
    transform: none;
}

.submenu .has-submenu > a::after {
    width: 6px;
    height: 6px;
    margin-left: 12px;
    margin-top: 0;
    transform: rotate(-45deg);
}

.submenu .has-submenu:hover > a::after,
.submenu .has-submenu:focus-within > a::after {
    animation: submenu-arrow .7s ease-in-out infinite alternate;
}

@keyframes submenu-arrow {
    from {
        transform: translateX(1px) rotate(-45deg);
    }

    to {
        transform: translateX(5px) rotate(-45deg);
    }
}

.submenu .submenu {
    left: calc(100% + 10px);
    top: 0;
}

.submenu .submenu::before {
    left: -12px;
    right: auto;
    top: 0;
    width: 12px;
    height: 100%;
}

.submenu-wide {
    width: min(620px, 88vw);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    margin: 14px 24px 0 auto;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px auto;
    background: #ffffff;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 570px;
    background: #151515;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: none;
    transition: opacity .65s ease;
}

.hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    transform: none;
}

.hero-slide::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .42);
    content: "";
}

.hero-image {
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.placeholder-photo {
    background:
        linear-gradient(rgba(20, 25, 46, .5), rgba(20, 25, 46, .5)),
        linear-gradient(135deg, #7d8490, #4f5868);
    background-size: cover;
}

.placeholder-photo::after {
    display: none;
}

.hero-caption {
    position: absolute;
    left: 50%;
    top: 52%;
    z-index: 2;
    width: min(1040px, 82vw);
    min-height: 92px;
    display: grid;
    place-items: center;
    padding: 22px 28px;
    color: #ffffff;
    font-size: 25px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    transform: translate(-50%, -50%);
    background: rgba(145, 145, 145, .6);
}

.hero-empty {
    position: absolute;
    left: 50%;
    top: 52%;
    z-index: 2;
    width: min(520px, 80vw);
    padding: 18px 22px;
    color: rgba(255, 255, 255, .9);
    font-size: 22px;
    line-height: 1.35;
    text-align: center;
    background: rgba(48, 59, 134, .58);
    transform: translate(-50%, -50%);
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-dots button,
.mini-dots span {
    display: block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
    transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.hero-dots .is-active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.quick-links {
    position: relative;
    z-index: 2;
    background: var(--blue);
}

.quick-inner {
    display: grid;
    grid-template-columns: repeat(var(--quick-count, 4), minmax(190px, 310px));
    justify-content: center;
    gap: 28px;
    width: min(1320px, calc(100% - 80px));
    margin: 0 auto;
    padding: 18px 0;
}

.quick-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 112px;
    padding: 22px 26px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 16px 38px rgba(23, 31, 83, .18);
}

.quick-card:hover {
    background: rgba(255, 255, 255, .16);
}

.quick-card.is-blocked {
    cursor: pointer;
}

.quick-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--accent);
    line-height: 1;
}

.quick-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 6px 10px rgba(20, 28, 82, .2));
    transition: transform .25s ease, filter .25s ease;
}

.quick-card:hover .quick-icon svg {
    transform: translateY(-3px) scale(1.04);
    filter: drop-shadow(0 10px 14px rgba(20, 28, 82, .28));
}

.quick-card > span:last-child {
    flex: 0 1 auto;
    min-width: 0;
}

.quick-icon-3 svg,
.quick-icon-4 svg {
    width: 38px;
    height: 38px;
}

.page,
.footer-inner {
    width: min(1278px, calc(100% - 40px));
    margin: 0 auto;
}

.page {
    padding-top: 52px;
}

.placeholder-page {
    padding-bottom: 72px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #777777;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--blue);
}

.placeholder-card {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    padding: 48px;
    border: 1px solid #e6e8f2;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(48, 59, 134, .08), rgba(255, 210, 141, .18)),
        #ffffff;
}

.placeholder-card::after {
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(48, 59, 134, .08);
    content: "";
}

.placeholder-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 20px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    background: rgba(48, 59, 134, .1);
}

.placeholder-card h1 {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 0 16px;
    color: var(--blue);
    font-size: 38px;
    line-height: 1.15;
}

.placeholder-card p {
    position: relative;
    z-index: 1;
    max-width: 690px;
    margin: 0;
    color: #4d5363;
    font-size: 18px;
    line-height: 1.65;
}

.placeholder-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.placeholder-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 4px;
    color: #ffffff;
    font-weight: 700;
    background: var(--blue);
}

.placeholder-actions a + a {
    color: var(--blue);
    background: rgba(48, 59, 134, .1);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 842px) 298px;
    gap: 140px;
    align-items: start;
}

.section {
    margin-bottom: 28px;
}

.section-heading {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--line);
}

.section-heading h2 {
    margin: 0;
    padding-bottom: 12px;
    font-size: 25px;
    line-height: 1.1;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
}

.section-heading::after {
    display: block;
    width: 28px;
    height: 4px;
    margin-top: -3px;
    background: var(--accent);
    content: "";
}

.section-heading.blue h2 {
    color: var(--blue);
}

.carousel-wrap {
    position: relative;
    overflow: visible;
    padding: 0;
    margin: 0;
    min-height: 314px;
}

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

.book-list,
.link-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    transition: transform .42s ease;
    min-height: 314px;
    will-change: transform;
}

.book-list.is-carousel,
.link-list.is-carousel {
    display: flex;
}

.book-list.is-carousel .book-card,
.link-list.is-carousel .link-card {
    flex: 0 0 calc((100% - 40px) / 5);
}

.book-card {
    text-align: center;
}

.book-cover {
    height: 224px;
    border: 1px solid #d0d0d0;
    background: #d8d8d8;
}

.has-upload-image {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.cover-1 { background: linear-gradient(135deg, #f4c659, #4e678c 48%, #111111); }
.cover-2 { background: linear-gradient(160deg, #fff4dc, #e57761 70%); }
.cover-3 { background: linear-gradient(135deg, #8eb77b, #2e5b51); }
.cover-4 { background: linear-gradient(160deg, #181818 0 45%, #eadf89 45%); }
.cover-5 { background: linear-gradient(145deg, #f6f0dc, #5f684b); }

.book-card h3,
.link-card h3 {
    margin: 10px auto 0;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
}

.book-card h3 {
    min-height: 60px;
}

.link-card h3 {
    min-height: 66px;
}

.empty-block {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 28px;
    border: 1px dashed rgba(48, 59, 134, .28);
    color: #6a6f82;
    font-size: 17px;
    line-height: 1.45;
    text-align: center;
    background: linear-gradient(135deg, rgba(48, 59, 134, .04), rgba(255, 204, 132, .12));
}

.side-empty {
    min-height: 220px;
}

.carousel-arrow {
    position: absolute;
    top: 112px;
    z-index: 2;
    width: 20px;
    height: 20px;
    border: 0;
    color: #ffffff;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 0;
    line-height: 1;
    background: var(--accent);
    cursor: pointer;
    transition: background-color .2s ease, opacity .2s ease, transform .2s ease;
    transform: translateY(-50%);
}

.carousel-arrow::before {
    display: block;
    width: 8px;
    height: 8px;
    border-top: 3px solid #ffffff;
    border-left: 3px solid #ffffff;
    content: "";
}

.carousel-arrow.prev::before {
    transform: translateX(2px) rotate(-45deg);
}

.carousel-arrow.next::before {
    transform: translateX(-2px) rotate(135deg);
}

.carousel-arrow:hover {
    background: var(--blue);
    transform: translateY(-50%) scale(1.03);
}

.carousel-arrow:disabled {
    opacity: .35;
    cursor: default;
    transform: translateY(-50%);
}

.carousel-arrow.prev {
    left: -23px;
}

.carousel-arrow.next {
    right: -23px;
}

.mini-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    width: max-content;
    margin: 16px auto 0;
    padding: 4px 12px;
    background: var(--accent);
}

.mini-dots span {
    width: 7px;
    height: 7px;
    border: 0;
    background: #ffffff;
}

.books-section,
.links-section {
    margin-bottom: 38px;
}

.books-section .mini-dots,
.links-section .mini-dots {
    margin-top: 14px;
}

.links-section .carousel-wrap,
.links-section .link-list {
    min-height: 330px;
}

.links-section .carousel-arrow {
    top: 121px;
}

.news-section {
    margin-top: 6px;
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.news-photo {
    position: relative;
    overflow: hidden;
    min-height: 276px;
    background:
        linear-gradient(rgba(255,255,255,.05), rgba(0,0,0,.05)),
        linear-gradient(135deg, #c9d5df, #5f6f85);
    background-position: center;
    background-size: cover;
}

.news-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 13px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, .66), rgba(0, 0, 0, .3) 56%, rgba(0, 0, 0, .08));
    opacity: 0;
    transform: translateY(-34px);
    transition: opacity .7s ease, transform .85s cubic-bezier(.18, .82, .22, 1);
}

.news-photo:hover .news-overlay,
.news-photo:focus-within .news-overlay {
    opacity: 1;
    transform: translateY(0);
}

.news-overlay h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.25;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}

.news-overlay p {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(12px, .9vw, 14px);
    line-height: 1.35;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}

.news-overlay time {
    margin-top: auto;
    font-size: clamp(12px, .9vw, 14px);
    line-height: 1.45;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}

.news-overlay a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-top: 12px;
    padding: 0 22px;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    background: rgba(255, 255, 255, .08);
}

.news-overlay a:hover {
    background: rgba(255, 255, 255, .18);
}

.photo-2 { background: linear-gradient(135deg, #c7a780, #415068); }
.photo-3 { background: linear-gradient(135deg, #d7d7d7, #737d88); }
.photo-4 { background: linear-gradient(135deg, #e9e9e9, #38495d); }
.photo-5 { background: linear-gradient(135deg, #ebd0a1, #43688a); }
.photo-6 { background: linear-gradient(135deg, #817266, #2a2e3e); }
.photo-7 { background: linear-gradient(135deg, #e5e3d1, #80936a); }
.photo-8 { background: linear-gradient(135deg, #f2efe8, #637085); }
.photo-9 { background: linear-gradient(135deg, #d7c4ad, #617b8b); }

.link-card {
    text-align: center;
}

.link-card a {
    display: block;
}

.link-logo {
    display: grid;
    place-items: center;
    height: 242px;
    padding: 18px;
    color: #7a5600;
    font-weight: 700;
    background: #d3d3d3;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.link-logo.has-upload-image {
    color: transparent;
    background-color: #f2f2f2;
}

.square-logo::before {
    width: 74px;
    height: 74px;
    border-radius: 8px;
    background: linear-gradient(135deg, #9332d3, #ff9e32);
    content: "";
}

.text-logo {
    color: #24afbf;
    font-size: 32px;
}

.portal-logo {
    color: #333333;
}

.uni-logo {
    color: #315a93;
    font-size: 72px;
    font-family: Georgia, serif;
}

.sidebar .section {
    margin-bottom: 82px;
}

.side-section .section-heading h2 {
    font-size: 25px;
}

.announcement-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 397px;
    padding: 32px;
    color: var(--blue);
    text-align: center;
    background:
        linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.15)),
        linear-gradient(135deg, #eecb9d, #7fa4c8);
}

.announcement-image.has-upload-image {
    min-height: 397px;
    background-color: #f7f7f7;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.announcement-image strong {
    font-size: 28px;
}

.announcement-image span {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 800;
}

.events-list {
    display: grid;
    gap: 30px;
}

.events article {
    margin: 0;
}

.events time {
    display: block;
    margin-bottom: 6px;
    color: #111111;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;
}

.events h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.site-notice {
    position: fixed;
    left: 50%;
    bottom: 34px;
    z-index: 1000;
    max-width: min(420px, calc(100% - 32px));
    padding: 15px 22px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    background: rgba(48, 59, 134, .96);
    box-shadow: 0 18px 42px rgba(24, 32, 86, .22);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 14px);
    transition: opacity .24s ease, transform .24s ease;
}

.site-notice.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.calendar {
    padding: 16px 28px 18px;
    border: 1px solid #eeeeee;
}

.calendar-month {
    margin: 0 -28px 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eeeeee;
    color: #ffc475;
    text-align: center;
    font-weight: 800;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 18px 10px;
    text-align: center;
}

.calendar-weekdays {
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
}

.calendar-weekdays span,
.calendar-days span {
    min-width: 0;
    min-height: 22px;
}

.calendar-days {
    font-size: 15px;
}

.calendar .today {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    margin: -9px auto;
    border-radius: 50%;
    color: #ffffff;
    background: var(--blue);
}

.map-link {
    display: block;
    margin-top: 30px;
    color: var(--blue);
}

.footer {
    width: 100%;
    margin: 18px 0 0;
    padding: 34px 0 20px;
    background: var(--footer);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, .86fr) minmax(360px, 1fr) minmax(460px, 1.12fr);
    gap: 46px;
    width: min(1420px, calc(100% - 80px));
    margin: 0 auto;
    align-items: start;
}

.footer .section-heading h2 {
    font-weight: 800;
}

.muted h2 {
    color: #949494;
    font-size: 19px;
}

.footer-brand {
    display: grid;
    justify-items: center;
    align-content: start;
    min-height: 0;
    padding-top: 26px;
    text-align: center;
}

.footer-brand img {
    width: min(120px, 100%);
    height: auto;
    margin: 0;
}

.footer-brand-title {
    max-width: 320px;
    margin: 14px 0 0;
    color: #000000;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.contact-block,
.map-block {
    min-height: 250px;
    padding-left: 34px;
    border-left: 1px solid rgba(48, 59, 134, .12);
}

.contact-block p,
.footer-address p {
    color: #4d5363;
    font-size: 16px;
    line-height: 1.6;
}

.contact-icon {
    display: inline-grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.contact-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-details {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 18px 0 0;
}

.socials a {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 76px;
    color: #4d5363;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.social-icon-circle {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--blue);
    transition: background-color .2s ease, transform .2s ease;
}

.socials a:hover .social-icon-circle {
    background: var(--accent);
    transform: translateY(-2px);
}

.social-icon-circle svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.socials a:first-child .social-icon-circle svg {
    fill: currentColor;
    stroke: none;
}

.socials a:last-child .social-icon-circle svg {
    width: 25px;
    height: 25px;
}

.copyright {
    margin: 0;
    color: #4d5363;
    white-space: nowrap;
}

.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-address p {
    margin: 0;
}

.map-block {
    display: grid;
    align-content: start;
}

.map-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 238px;
    padding: 22px;
    border: 1px solid #d3dbe5;
    text-align: center;
    background: #eaf0f6;
}

.map-placeholder h2 {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 25px;
}

.map-placeholder p {
    max-width: 78%;
    margin: 0;
    line-height: 1.5;
}

.footer-bottom {
    width: min(1420px, calc(100% - 80px));
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(48, 59, 134, .12);
    text-align: center;
}

.scroll-top {
    position: fixed;
    right: 32px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border: 0;
    color: #ffffff;
    font-size: 28px;
    background: var(--accent);
    cursor: pointer;
}

@media (max-width: 1180px) {
    .content-grid {
        grid-template-columns: minmax(0, 1fr) 298px;
        gap: 48px;
    }

    .menu-inner {
        gap: 28px;
    }

    .quick-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: minmax(260px, .8fr) minmax(0, 1fr);
        gap: 34px;
    }

    .contact-block {
        padding-left: 30px;
    }

    .map-block {
        grid-column: 1 / -1;
        min-height: 0;
        padding-left: 0;
        padding-top: 28px;
        border-left: 0;
        border-top: 1px solid rgba(48, 59, 134, .12);
    }
}

@media (max-width: 900px) {
    .top-inner {
        width: calc(100% - 32px);
        min-height: 118px;
    }

    .language-switch {
        left: 0;
        top: 14px;
    }

    .main-menu {
        min-height: 58px;
        margin-bottom: -58px;
    }

    .menu-toggle {
        display: block;
        margin-top: 5px;
    }

    .menu-inner {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
        padding: 10px 24px 24px;
        background: rgba(178, 178, 178, .94);
    }

    .main-menu.is-open .menu-inner {
        display: flex;
    }

    .menu-inner li,
    .menu-inner a {
        width: 100%;
    }

    .submenu,
    .submenu .submenu {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        padding: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, .88);
    }

    .submenu::before {
        display: none;
    }

    .submenu-wide {
        display: block;
    }

    .submenu .has-submenu > a::after {
        transform: rotate(45deg);
    }

    .hero-slider {
        height: 430px;
    }

    .hero-caption {
        width: min(720px, 86vw);
        min-height: 76px;
        padding: 16px 20px;
        font-size: 23px;
    }

    .quick-inner {
        width: calc(100% - 32px);
        gap: 16px;
    }

    .quick-card {
        gap: 18px;
        min-height: 96px;
        padding: 18px;
        font-size: 18px;
    }

    .page {
        padding-top: 38px;
    }

    .content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .book-list,
    .link-list,
    .news-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-list.is-carousel .book-card,
    .link-list.is-carousel .link-card {
        flex-basis: calc((100% - 10px) / 2);
    }

    .footer {
        margin: 18px 0 0;
    }

    .footer-brand {
        min-height: auto;
        padding-top: 0;
    }

    .footer-brand img {
        width: min(110px, 100%);
    }

    .map-placeholder {
        min-height: 260px;
    }

    .contact-block {
        min-height: 0;
        padding-left: 0;
        border-left: 0;
    }

    .footer-bottom {
        width: calc(100% - 24px);
    }

    .copyright {
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .page,
    .footer-inner {
        width: calc(100% - 24px);
    }

    .brand img {
        width: min(270px, 62vw);
    }

    .language-switch {
        gap: 4px;
        font-size: 12px;
    }

    .hero-slider {
        height: 360px;
    }

    .hero-caption {
        width: min(420px, 84vw);
        min-height: 64px;
        padding: 12px 14px;
        font-size: 19px;
    }

    .quick-inner {
        grid-template-columns: 1fr;
    }

    .book-list,
    .link-list,
    .news-gallery {
        grid-template-columns: 1fr;
    }

    .book-list.is-carousel .book-card,
    .link-list.is-carousel .link-card {
        flex-basis: 100%;
    }

    .book-cover {
        height: 300px;
    }

    .carousel-arrow,
    .links-section .carousel-arrow {
        top: 150px;
    }

    .carousel-arrow.prev {
        left: -12px;
    }

    .carousel-arrow.next {
        right: -12px;
    }

    .calendar-weekdays,
    .calendar-days {
        gap: 14px 9px;
    }

    .placeholder-card {
        padding: 30px 22px;
    }

    .placeholder-card h1 {
        font-size: 28px;
    }
}
