@font-face {
    font-family: LabGrotesque;
    src: url(../fonts/LabGrotesque-Regular.eot);
    src: url(../fonts/LabGrotesque-Regular.eot#iefix) format("embedded-opentype"),
    url('../fonts/LabGrotesque-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: LabGrotesque;
    src: url(../fonts/LabGrotesque-Italic.eot);
    src: url(../fonts/LabGrotesque-Italic.eot#iefix) format("embedded-opentype"),
    url('../fonts/LabGrotesque-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic
}

@font-face {
    font-family: LabGrotesque;
    src: url(../fonts/LabGrotesque-Bold.eot);
    src: url(../fonts/LabGrotesque-Bold.eot#iefix) format("embedded-opentype"),
    url('../fonts/LabGrotesque-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal
}

@font-face {
    font-family: LabGrotesque;
    src: url(../fonts/LabGrotesque-BoldItalic.eot);
    src: url(../fonts/LabGrotesque-BoldItalic.eot#iefix) format("embedded-opentype"),
    url('../fonts/LabGrotesque-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic
}

:root,
.imjs-notifier.imjs-default > .imjs-inner > .imjs-content,
p {
    font-size: 1.125rem !important;
    line-height: 1.55556 !important;
    --font-size-multiplier: 1;
    --font-size-2: calc(1.265625rem * var(--font-size-multiplier));
    --font-size-4: calc(1.6875rem * var(--font-size-multiplier));
    --line-height-multiplier: 1;
    --line-height-2: calc(1.83333 * var(--line-height-multiplier));
    --line-height-4: calc(2.11111 * var(--line-height-multiplier));
}

.button-to-div {
    border: unset;
    background: unset;
    font-size: unset;
    font-weight: unset;
    color: unset;
    text-decoration: unset;
    padding: unset;
    margin: unset;
}

.cta-button.link-to-button {
    color: #000;
}

.cta-button.alternative.link-to-button {
    color: #fff;
}

.site-link.link-to-text {
    color: #000;
    text-decoration: none;
}

.site-link.with-icon {
    display: flex;
    align-items: center;
    column-gap: 4px;
}

* {
    outline-width: unset;
}

html {
    height: 100%;
    overflow: hidden;
}

/* accessibility options */

html[data-font-size="2"] * {
    font-size: var(--font-size-2) !important;
}

html[data-font-size="4"] * {
    font-size: var(--font-size-4) !important;
}

html[data-line-height="2"] * {
    line-height: var(--line-height-2) !important;
}

html[data-line-height="4"] * {
    line-height: var(--line-height-4) !important;
}

html.accentuated-selections * {
    outline-color: red !important;
}

html.accentuated-selections *:focus-visible,
html.accentuated-selections input:focus + span::before {
    border-color: red !important;
}

html.removed-color *,
html.removed-color *:before,
html.removed-color *:after {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
    text-decoration-color: #000 !important;
}

html.removed-color .map-canvas,
html.removed-color .map-canvas * {
    background-color: revert !important;
    color: revert !important;
}

html.removed-color .site-section-separator {
    background-color: #000 !important;
}

html.removed-color:not([data-contrast="high"], [data-contrast="inverted"]) .cta-button {
    border: 1px solid #000 !important;
}

html.removed-color .site-section-toggle .site-section-toggle-button.active,
html.removed-color .site-section-toggle .site-section-toggle-button.active > i:before,
html.removed-color .site-section-toggle .site-section-toggle-button.active > span {
    background: #000 !important;
    color: #fff !important;
}

html.removed-color .site-section-toggle .site-section-toggle-button {
    border: 2px solid #000 !important;
    border-bottom: none !important;
}

html.removed-color .site-table th {
    color: #fff !important;
    background: #000 !important;
}

/* contrast - high */

html[data-contrast="high"] *,
html[data-contrast="high"] *:not(.gradient-wrapper):before,
html[data-contrast="high"] *:after {
    background-color: #000 !important;
    color: #ff0 !important;
    text-decoration-color: #ff0 !important;
    border-color: #666666 !important;
}

html[data-contrast="high"] .imjs-notifier,
html[data-contrast="high"] .map-canvas,
html[data-contrast="high"] .map-canvas * {
    background-color: revert !important;
    color: revert !important;
}

html[data-contvrast="high"] input:-webkit-autofill {
    box-shadow: inset 0 0 #000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ff0;
}

html[data-contrast="high"] .main-header .slide .haridusamet-logo {
    background: url(/frontend/template/assets/images/site/haridusamet_logo_contrast_high.svg) center no-repeat;
    background-size: contain;
}

html[data-contrast="high"] .site-table th {
    color: #000 !important;
    background: #ff0 !important;
}

html[data-contrast="high"] .cta-button > span {
    text-decoration-color: #000 !important;
}

html[data-contrast="high"] .site-textarea .imjs-html-editor .cke_button:hover {
    border-color: #666;
}

html[data-contrast="high"] .main-header .mobile-trigger > .icon > img,
html[data-contrast="high"] .mobile-nav .close > img,
html[data-contrast="high"] .site-textarea .imjs-html-editor .cke_button .cke_button_icon {
    filter: sepia(1) saturate(395%) hue-rotate(20deg) brightness(3);
}

html[data-contrast="high"] .site-textarea .imjs-html-editor .cke_button_on .cke_button_icon {
    filter: brightness(99);
}

html[data-contrast="high"] .im-radio.site-radio-button > input:checked + span::before {
    background: #ff0 !important;
    border-color: #ff0 !important;
}

html[data-contrast="high"] .im-radio.site-radio-button > span::before {
    border-color: #ff0 !important;
}

html[data-contrast="high"] .im-radio.site-radio-button > input:checked + span::after {
    background: #000 !important;
}

html[data-contrast="high"] .im-checkbox.site-checkbox > span:after {
    color: #ff0 !important;
}

html[data-contrast="high"] .im-checkbox.site-checkbox > span::before,
html[data-contrast="high"] .im-checkbox.site-checkbox > input:checked + span::before {
    border-color: #ff0 !important;
}

html[data-contrast="high"] .site-textarea .imjs-html-editor .cke_resizer {
    border-color: transparent #666666 transparent transparent !important;
}

html[data-contrast="high"] .im-input.site-input.error,
html[data-contrast="high"] .site-textarea textarea.error + .cke_chrome,
html[data-contrast="high"] .im-select.site-select.error + .select2 .select2-selection {
    border-color: #ef3340 !important;
}

html[data-contrast="high"] .select2-dropdown .select2-results__option:hover,
html[data-contrast="high"] .cta-button,
html[data-contrast="high"] .cta-button > i,
html[data-contrast="high"] .cta-button > i:before,
html[data-contrast="high"] .cta-button > span,
html[data-contrast="high"] .site-section-toggle .site-section-toggle-button.active,
html[data-contrast="high"] .site-section-toggle .site-section-toggle-button.active > i:before,
html[data-contrast="high"] .site-section-toggle .site-section-toggle-button.active > span {
    background: #ff0 !important;
    color: #000 !important;
}

html[data-contrast="high"] .site-section-toggle .site-section-toggle-button {
    border: 2px solid #ff0 !important;
    border-bottom: none !important;
}

html[data-contrast="high"] .site-section-toggle {
    border-color: #ff0 !important;
}

html[data-contrast="high"] .site-section-separator {
    background: #ff0 !important;
}

html[data-contrast="high"] .site-highlighted-text {
    background-color: #ffff00 !important;
    color: #000 !important;
}

html[data-contrast="high"] .main-footer > .bottom > .pattern-2 {
    background: linear-gradient(180deg, #000, #000 25%, #0072ce 0, #0072ce 50%, #000 0, #000 75%, #0072ce 0);
}

html[data-contrast="high"] .main-footer > .bottom > .pattern-4 {
    background: linear-gradient(180deg, #000, #000 50%, #0072ce 0);
}

/* contrast - inverted */

html[data-contrast="inverted"] *,
html[data-contrast="inverted"] *:before,
html[data-contrast="inverted"] *:after {
    background-color: #2873d1 !important;
    color: #fff !important;
    border-color: #fff !important;
    text-decoration-color: #fff !important;
}

html[data-contrast="inverted"] .imjs-notifier,
html[data-contrast="inverted"] .map-canvas,
html[data-contrast="inverted"] .map-canvas * {
    background-color: revert !important;
    color: revert !important;
}

html[data-contrast="inverted"] .map-canvas .institution-map-marker-label {
    color: #fff !important;
}

html[data-contrast="inverted"] input:-webkit-autofill {
    box-shadow: inset 0 0 #2873d1;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff;
}

html[data-contrast="inverted"] .main-header .slide .haridusamet-logo {
    background: url(/frontend/template/assets/images/site/haridusamet_logo_contrast_inverted.svg) center no-repeat;
    background-size: contain;
}

html[data-contrast="inverted"] .site-table th {
    color: #2873d1 !important;
    background: #fff !important;
}

html[data-contrast="inverted"] .cta-button > span {
    text-decoration-color: #2873d1 !important;
}

html[data-contrast="inverted"] .site-textarea .imjs-html-editor .cke_button {
    border-color: #2873d1 !important;
}

html[data-contrast="inverted"] .site-textarea .imjs-html-editor .cke_button_on {
    border-color: #fff !important;
}

html[data-contrast="inverted"] .main-header .mobile-trigger > .icon > img,
html[data-contrast="inverted"] .mobile-nav .close > img,
html[data-contrast="inverted"] .site-textarea .imjs-html-editor .cke_button .cke_button_icon,
html[data-contrast="inverted"] .site-textarea .imjs-html-editor .cke_button_on .cke_button_icon {
    filter: brightness(99);
    background-color: revert !important;
}

html[data-contrast="inverted"] .im-radio.site-radio-button > input:checked + span::before {
    background: #fff !important;
}

html[data-contrast="inverted"] .im-radio.site-radio-button > input:checked + span::after {
    background: #2873d1 !important;
}

html[data-contrast="inverted"] .im-checkbox.site-checkbox > span:after {
    color: #fff !important;
}

html[data-contrast="inverted"] .site-textarea .imjs-html-editor .cke_chrome,
html[data-contrast="inverted"] .site-textarea .imjs-html-editor .cke_top,
html[data-contrast="inverted"] .site-textarea .imjs-html-editor .cke_bottom,
html[data-contrast="inverted"] .im-input.site-input,
html[data-contrast="inverted"] .im-select.site-select + .select2 .select2-selection {
    border-color: #fff !important;
}

html[data-contrast="inverted"] .site-textarea .imjs-html-editor .cke_resizer {
    border-color: transparent #fff transparent transparent !important;
}

html[data-contrast="inverted"] .im-input.site-input.error,
html[data-contrast="inverted"] .site-textarea textarea.error + .cke_chrome,
html[data-contrast="inverted"] .im-select.site-select.error + .select2 .select2-selection {
    border-color: #ef3340 !important;
}

html[data-contrast="inverted"] .select2-dropdown .select2-results__option:hover,
html[data-contrast="inverted"] .cta-button,
html[data-contrast="inverted"] .cta-button > i,
html[data-contrast="inverted"] .cta-button > i:before,
html[data-contrast="inverted"] .cta-button > span,
html[data-contrast="inverted"] .site-section-toggle .site-section-toggle-button.active,
html[data-contrast="inverted"] .site-section-toggle .site-section-toggle-button.active > i:before,
html[data-contrast="inverted"] .site-section-toggle .site-section-toggle-button.active > span {
    background: #fff !important;
    color: #2873d1 !important;
}

html[data-contrast="inverted"] .site-section-toggle .site-section-toggle-button {
    border: 2px solid #fff !important;
    border-bottom: none !important;
}

html[data-contrast="inverted"] .site-section-separator {
    background: #fff !important;
}

html[data-contrast="inverted"] .site-highlighted-text {
    background-color: #ffff00 !important;
    color: #000 !important;
}

html[data-contrast] .gm-style-moc {
    background-color: rgba(0, 0, 0, 0.45) !important;
}

/* contrast - end */

body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: LabGrotesque, Arial, sans-serif;
    color: #111;
    letter-spacing: 0;
    background: #fff;
}

input, textarea {
    font-family: LabGrotesque, Arial, sans-serif;
    line-height: 20px;
}

button {
    font-family: LabGrotesque, Arial, sans-serif;
}

a {
    color: #2873d1;
    text-decoration: none;
}

strong,
.bold {
    font-weight: bold;
}

i {
    font-style: italic;
}

.normal {
    font-weight: normal;
}

.center {
    text-align: center;
}

.capitalize {
    text-transform: capitalize;
}

.lowercase {
    text-transform: lowercase;
}

.fullwidth {
    width: 100%;
}

.scroll-wrapper {
    overflow-y: scroll;
    height: 100%;
    outline-width: 0;
}

.main-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 250px;
    min-height: 100%;
    margin: 0 auto;
}

main {
    flex: 1;
}

/* Main header */
.main-header {
}

.main-header > .page-notice {
    position: relative;
    background: #f3d03e !important;
    color: black !important;
    text-align: center;
    padding: 10px 40px;
}

.main-header > .page-notice > .close-page-notice {
    position: absolute;
    right: 13px;
    top: 0;
    width: 21px;
    height: 100%;
    max-height: 56px;
    display: flex;
    align-items: center;

    &::after {
        content: "";
        display: block;
        width: 21px;
        height: 21px;
        background-size: contain;
        background: #2873d1 url("/frontend/template/assets/images/icons/cross-white.svg") no-repeat center;
        border-radius: 16px;
        cursor: pointer;
    }
}

.main-header > .upper {
    background: rgba(255, 255, 255, 0.8);
    background: #0072ce;
}

.main-header > .upper > .middle {
    display: block;
    position: relative;
    height: 48px;
    margin: 0 auto;
    padding-inline: 20px;
    text-align: right;
}

/* Header navigation */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    color: #fff;
}

.header-nav .for-vision-impaired {
    display: flex;
    align-items: center;
    column-gap: 6px;
    cursor: pointer;
}

.header-nav .self-service-and-languages {
    display: flex;
    align-items: center;
    margin-left: 10px;
    position: relative;
}

.header-nav .self-service-button {
    display: flex;
    align-items: center;
    column-gap: 6px;
    background: #fff;
    border-radius: 50px;
    padding: 7px 12px;
    color: #0072ce;
}

.header-nav .self-service-button:not(.mr-10) + [data-action="user-actions"] {
    display: none;
}

.header-nav .self-service-button:not(.mr-10):hover + [data-action="user-actions"],
.header-nav .self-service-button:not(.mr-10) + [data-action="user-actions"]:hover {
    display: flex;
}

.header-nav .self-service-button:not(.mr-10) + [data-action="user-actions"] {
    position: absolute;
    top: 32px;
    background: #0072ce;
    padding: 8px 1px 1px 1px;
    flex-direction: column;
    width: 160px;
    right: 103px;

    &::after {
        position: absolute;
        left: 50%;
        margin-left: -2px;
        top: 3px;
        content: "";
        width: 0;
        height: 0;
        border-style: solid;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
        border-bottom: 5px solid #ffffff;
        border-top: 0;
    }

    &:has(.im-button:first-child.loading)::after {
        border-bottom-color: #7f7f7f;
    }

    .im-button {
        background: white;
        height: 34px;
        line-height: 34px;
        cursor: pointer;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        flex-direction: row;
        margin: 0;
        border: 0;
        border-radius: 0;
        padding: 0;
        text-indent: 10px;

        span {
            flex: 1 1 auto;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        i {
            display: none;
        }

        &:hover {
            color: #025ea8;

            i {
                flex: 0 0 auto;
                display: flex;
                text-indent: 0;
                width: 24px;
                height: 34px;
                align-items: center;
                justify-content: center;
            }
        }
    }
}

.header-nav .languages {
    display: flex;
    align-items: center;
    margin: 0 0 0 15px;
    padding: 0 0 0 15px;
    font-size: 0;
    border-left: 1px solid #ccc;
}

.header-nav .languages > li {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0 0 5px;
}

.header-nav .languages > li:first-child {
    margin-left: 0;
}

.header-nav .languages > li > a {
    display: block;
    padding: 0 3px;
    font-size: 0.875rem;
    line-height: 0.875rem;
    color: #fff;
    text-transform: uppercase;
}

/* Mobile menu */

.main-header .mobile-trigger {
    display: none;
    position: absolute;
    right: 20px;
    top: 71px;
    text-align: left;
    font-size: 0;
    cursor: pointer;
}

.main-header .mobile-trigger > .menu-text {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    padding: 0 3px;
    font-size: 1.125rem;
    line-height: 1.125rem;
    color: #2873d1;
    font-weight: bold;
}

.main-header .mobile-trigger > .icon {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    width: 24px;
    height: 24px;
}

.main-header .mobile-trigger > .icon > img {
    width: 100%;
}

/* Mobile header navigation */
.mobile-header-nav {
    display: none;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    user-select: none;
}

.mobile-header-nav .languages {
    position: relative;
}

.mobile-header-nav .language-options {
    display: flex;
    position: absolute;
    top: 48px;
    z-index: 20;
    flex-direction: column;
    background: #0072ce;
    min-width: 240px;
}

.mobile-header-nav .active-language:hover,
.mobile-header-nav .language-options .language-option:hover {
    background: #286dc5;
    cursor: pointer;
}

.mobile-header-nav .language-options .language-option a {
    padding: 15px 20px;
    border-top: 1px solid #fff;
}

.mobile-header-nav .active-language,
.mobile-header-nav .language-options a,
.mobile-header-nav .self-service-button {
    display: flex;
    column-gap: 5px;
    color: #fff;
}

.mobile-header-nav .active-language {
    align-items: center;
    height: 48px;
    padding: 0 10px;
}

/* slide */
.main-header .slide {
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: 0 1fr;
    height: 120px;
}

.main-header .slide .haridusamet-logo {
    position: relative;
    left: min(125px, 9vw);
    width: 172px;
    height: 100%;
    background: url("/frontend/template/assets/images/site/haridusamet_logo.svg") center no-repeat;
    background-size: contain;
}

.main-header .slide .menu {
    position: relative;
    display: flex;
    column-gap: 50px;
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: capitalize;
    user-select: none;
}

.main-header .slide .menu > a,
.main-header .slide .menu .multi-menu-toggle {
    color: #0072ce;
    cursor: pointer;
}

.main-header .slide .menu .multi-menu-toggle .arrow {
    position: relative;
    right: 5px;
    margin-left: 5px;
    padding: 0 4px;
    background: #cfe3f6;
}

.main-header .slide .menu .multi-menu {
    position: absolute;
    z-index: 1;
    width: 75dvw;
    left: 45%;
    transform: translateX(-50%);
    top: 73px;
    background: #cce3f5;
    border-top: 1px solid #cce3f5;
}

.main-header .slide .menu .multi-menu .options {
    display: flex;
    flex-direction: column;
    row-gap: 22px;
    width: fit-content;
    min-width: calc(100% / 3);
    padding: 40px;
    background: #fff;
}

.main-header .slide .menu .multi-menu .options > a {
    width: max-content;
    transition: color .3s ease-out;;
}

.main-header .slide .menu .multi-menu .options > a:hover {
    color: #0072ce;
}

.main-header .slide .menu .multi-menu.kindergartens .options {
    max-width: 348px;
}

.main-header .slide .menu .multi-menu .options > a {
    font-weight: 500;
    text-transform: none;
    color: #000;
}

/* Mobile navigation */
.mobile-nav {
    display: none;
}

.mobile-nav .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 998;
}

.mobile-nav .content {
    position: fixed;
    right: 0;
    top: 0;
    min-width: 400px;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    z-index: 999;
}

.mobile-nav.opened,
.mobile-nav.opened > .overlay {
    display: block;
}

.mobile-nav .close {
    position: absolute;
    right: 21px;
    top: 14px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    z-index: 1;
}

.mobile-nav .close > img {
    width: 100%;
}

.mobile-nav .section {
    display: block;
    margin: 0 0 10px 0;
    line-height: 1.5rem;
    color: #00a63f;
    font-weight: bold;
    text-transform: uppercase;
}

.mobile-nav .menu {
    margin: 50px 0 20px;
    padding: 0;
}

.mobile-nav .menu > li {
    margin: 0;
    list-style: none;
}

.mobile-nav .menu > li > a,
.mobile-nav .menu > li > .parent-item,
.mobile-nav .menu > li > .parent-item-reverse {
    display: block;
    border-top: 1px solid #d9d9d9;
    padding: 20px 15px;
    line-height: 1.125rem;
    font-weight: bold;
}

.mobile-nav .menu > li.active > a,
.mobile-nav .menu > li.active > .parent-item,
.mobile-nav .menu > li.active > .parent-item-reverse {
    background: #2873d1;
    color: #fff;
    fill: #fff;
}

.mobile-nav .sub-content .menu > li.active > a {
    background: #3889ed;
}

.mobile-nav .menu > li > .parent-item,
.mobile-nav .menu > li > .parent-item-reverse {
    display: flex;
    align-items: center;
    column-gap: 8px;
    width: 100%;
    color: #2873d1;
    cursor: pointer;
}

.mobile-nav .menu > li > .parent-item {
    justify-content: space-between;
}

.mobile-nav .menu > li:last-child > a {
    border-bottom: 1px solid #d9d9d9;
}

/* Breadcrumbs */

.breadcrumbs-nav {
    max-width: 1550px;
    margin: 0 auto;
    padding: 5px 20px;
    font-size: 16px !important;
    user-select: none;
}

.breadcrumbs-nav > a {
    color: #a1a1a1;
}

.breadcrumbs-nav > a.active {
    color: #848484;
}

.breadcrumbs-nav > .separator {
    padding: 0 8px;
    color: #a1a1a1;
}

/* Main content */
.main-content {
    flex: 1;
    display: block;
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    padding: 30px 20px;
}

.main-content.with-sidebar {
    display: flex;
    flex-flow: row nowrap;
}

.main-content.with-sidebar > .module-content {
    display: block;
    flex: 1 1 auto;
    padding-right: 45px;
}

.main-content.with-sidebar > .module-sidebar {
    display: block;
    flex: 0 0 auto;
    width: 280px;
}

/* Sidebar */
.module-sidebar > .submenu > li {
    display: block;
    margin: 0px 0px 3px 0px;
}

.module-sidebar > .submenu > li:last-child {
    margin-bottom: 0px;
}

.module-sidebar > .submenu > li > a {
    display: block;
    padding: 15px 18px;
    color: #192853;
    background: #f5f6f6;
    border-left: 4px solid #ddd;
}

/* Mobile submenu */
.mobile-submenu {
    display: none;
    margin: 0px 0px 25px 0px;
}

.mobile-submenu > li {
    display: block;
    margin: 0px 0px 3px 0px;
}

.mobile-submenu > li:last-child {
    margin-bottom: 0px;
}

.mobile-submenu > li > a {
    display: block;
    padding: 15px 18px;
    color: #192853;
    background: #f5f6f6;
    border-left: 4px solid #ddd;
}

/* Main footer */
.main-footer {
    left: 0;
    bottom: 0;
    width: 100%;
    margin-top: 30px;
}

.main-footer > .top {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
    background: #0072ce;
    padding: 45px;
}

.main-footer > .top .site-info-footer,
.main-footer > .top .other-links {
    display: flex;
    column-gap: 30px;
}

.main-footer > .top span,
.main-footer > .top a {
    color: #fff;
}

.main-footer > .top .other-links a {
    font-size: 0.875rem;
}

.main-footer > .top .site-name {
    font-weight: 500;
}

.main-footer > .bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 80px;
}

.main-footer > .bottom > .section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.main-footer > .bottom > .pattern-1 {
    background: url(/frontend/template/assets/images/site/footer-pattern-1.svg) no-repeat -57px -123px/633px 432px;
}

.main-footer > .bottom > .pattern-2 {
    background: linear-gradient(180deg, #fff, #fff 25%, #0072ce 0, #0072ce 50%, #fff 0, #fff 75%, #0072ce 0);
}

.main-footer > .bottom > .pattern-3 {
    background: url(/frontend/template/assets/images/site/footer-pattern-2.svg) no-repeat -1px / 360px 245px;
    background-size: 101% auto;
}

.main-footer > .bottom > .pattern-4 {
    background: linear-gradient(180deg, #fff, #fff 50%, #0072ce 0);
}

/* social media*/
html[data-contrast="high"] .social-media > .button {
    border-color: #ff0 !important;
}

.social-media {
    display: flex;
    align-items: center;
    column-gap: 10px;
    margin: 40px 0;
}

.social-media > .share {
    font-size: 0.75rem;
}

.social-media > .button {
    line-height: 1.5rem;
    font-weight: bold;
    padding: 5px 15px;
    border: 2px solid;
    border-radius: 20px;
    color: #000;
}

.social-media > .button.facebook {
    border-color: #3b5998;
}

.social-media > .button.twitter {
    border-color: #000;
}

/* vision impaired */
body > .vision-impaired-options-wrapper {
    position: absolute;
    top: 0;
    z-index: 30;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4) !important;
    overflow-y: scroll;
}

body > .vision-impaired-options-wrapper .vision-impaired-options-inner {
    width: 100%;
    margin-top: 48px;
    background: #fff;
}

body > .vision-impaired-options-wrapper .vision-impaired-options-inner .vision-impaired-options {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
    padding: clamp(30px, 2vw, 60px);
}

.vision-impaired-options .text-size,
.vision-impaired-options .line-height,
.vision-impaired-options .contrast,
.vision-impaired-options .other-options {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}

.vision-impaired-options .contrast .contrast-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.vision-impaired-options .contrast .contrast-options .option {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    user-select: none;
}

.vision-impaired-options .contrast .contrast-options .option .sample {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    border: 2px solid #cccccc;
    padding: 10px 20px;
}

.vision-impaired-options .contrast .contrast-options .option .sample.default,
.vision-impaired-options .contrast .contrast-options .option .sample.default > * {
    border-color: #2873d1 !important;
    color: #000 !important;
    background: #fff !important;
}

.vision-impaired-options .contrast .contrast-options .option .sample.high-contrast,
.vision-impaired-options .contrast .contrast-options .option .sample.high-contrast > * {
    border-color: #ff0 !important;
    color: #ff0 !important;
    background: #000 !important;
}

.vision-impaired-options .contrast .contrast-options .option .sample.inverted-contrast,
.vision-impaired-options .contrast .contrast-options .option .sample.inverted-contrast > * {
    border-color: #fff !important;
    color: #fff !important;
    background: #2873d1 !important;
}

.vision-impaired-options-wrapper .actions {
    display: flex;
    justify-content: right;
    column-gap: 10px;
    padding: clamp(30px, 2vw, 60px);
}

/* cookies */

body > .cookie-popup {
    max-width: 600px;
    padding: clamp(10px, 1vw, 30px);
    background: #fff;
    position: fixed;
    z-index: 100;
    --margin: clamp(10px, 1vw, 30px);
    right: calc(var(--margin) + 16px);
    bottom: var(--margin);
    box-shadow: 0 5px 24px 0 rgba(0, 0, 0, 0.11);
}

body > .cookie-popup .actions,
body > .cookie-popup .actions button {
    display: flex;
    align-items: center;
    column-gap: 10px;
    font-weight: 500;
}

body > .cookie-popup .actions button {
    padding: 12px 18px;
    transition: background-color 0.3s;
    margin-block-start: 10px;
}

body > .cookie-popup .actions button.close {
    margin-inline-end: 10px;
}

body > .cookie-popup .actions button.accept {
    background-color: #2a74d1;
    color: #fff;
}

body > .cookie-popup .actions button.accept:hover {
    background-color: #286dc5;
}

/* image overlay container */

body > .image-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    z-index: 999;
}

body > .image-overlay-container .image-element-wrapper {
    position: relative;
}

body > .image-overlay-container .image-element {
    max-width: 80vw;
    max-height: 80vh;
}

body > .image-overlay-container .close-button {
    position: absolute;
    top: -35px;
    right: -35px;
    font-size: 24px;
    cursor: pointer;
}

body > .image-overlay-container .prev-button,
body > .image-overlay-container .next-button {
    position: absolute;
    top: calc(50% - 22px);
    font-size: 44px;
    cursor: pointer;
}

body > .image-overlay-container .prev-button {
    left: 20px;
}

body > .image-overlay-container .next-button {
    right: 20px;
}

/* Site theme */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 5px;
    padding: 9px 20px;
    background: #e6e6e6;
    border-radius: 999px;
    text-align: center;
    border: 0;
    user-select: none;
}

.cta-button:not(.disabled):hover {
    background: #ddd;
    cursor: pointer;
}

.cta-button:not(.disabled):hover > span {
    text-decoration: 1px solid underline;
}

.cta-button.alternative {
    background: #2873d1;
    color: #fff;
}

.cta-button.alternative:hover {
    background: #286dc5;
}

.cta-button.red {
    background: #ef3340;
    color: #fff;
}

.cta-button.red:hover {
    background: #e6313e;
}

.cta-button.big {
    padding: 15px 22px;
}

.cta-button.small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.site-section-separator {
    height: 1px;
    background: #e6e6e6;
    width: 100%;
    margin: 12px 0;
}

.site-section-separator.blue {
    background: #cfe3f6;
}

.site-section-separator.padded {
    margin: 36px 0;
}

.site-list-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 9px;
    background: #000;
    margin-bottom: 5px;
}

.site-table-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
}

.gradient-wrapper {
    overflow-x: auto;
    background-size: 0 100%;
}

.gradient-wrapper:before {
    content: "";
    position: absolute;
    background: linear-gradient(to right, #00000001, #00000005, #00000012, #00000029) no-repeat right;
    background-size: inherit;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    pointer-events: none;
}

.site-table {
    width: 100%;
    overflow: scroll;
}

/* Gradient breaks if margin is applied */
.gradient-wrapper > .site-table {
    margin-block: 0 !important;
}

.site-table th,
.site-table td {
    padding: 4px;

    &.x10 {
        width: 10%;
    }

    &.x20 {
        width: 20%;
    }

    &.x30 {
        width: 30%;
    }

    &.x40 {
        width: 40%;
    }
}

.site-table th:first-child,
.site-table td:first-child {
    padding-left: 16px;
}

.site-table th:last-child,
.site-table td:last-child {
    padding-right: 12px;
}

.site-table td.white-space-nowrap {
    white-space: nowrap;
}

.site-table th.has-tooltip-icon:last-child,
.site-table td.has-tooltip-icon:last-child {
    width: 30px;
    text-align: center;
}

.site-table th.top,
.site-table td.top {
    vertical-align: top;
}

.site-table th {
    height: 44px;
    color: #fff;
    background: #2873d1;
    font-weight: 500;
    font-size: 20px;
}

.site-table-wrapper .site-table th {
    white-space: nowrap;
}

.site-table td {
    height: 38px;
}

.site-table tr:nth-child(even) td {
    background: #f2f2f2;
}

.site-table tr:hover td {
    background: #ededed;
}

.site-table tr.divider-row td {
    border-top: 1px solid #000;
}

.site-tooltip {
    display: flex;
    align-items: center;
    column-gap: 5px;
    margin: 20px 0;
    color: #707070;
    font-size: 14px;
}

.special-queue-info, .prognosis-info, .site-tooltip {
    white-space: normal;
    word-wrap: break-word;
    -webkit-hyphens: auto;
}

.addressName {
    display: block;
    padding: 5px 0 0;
}

.im-textarea.site-textarea,
.im-input.site-input {
    font-size: 1rem;
}

.im-select.site-select + .select2 .select2-selection__rendered,
.im-input.site-input {
    line-height: 2.55rem;
}

.im-textarea.site-textarea {
    padding: 12px;
    height: revert;
    line-height: revert;
}

.im-select.site-select.fullwidth + .select2,
.im-input.site-input.fullwidth {
    width: 100% !important;
}

.im-select.site-select + .select2 .select2-selection {
    height: 50px;
    border: 2px solid #666666;
}

.im-input.site-input.error,
.site-textarea textarea.error + .cke_chrome,
.im-select.site-select.error + .select2 .select2-selection {
    border-color: #ef3340;
}

.im-input.site-input,
.im-select.site-select + .select2 .select2-selection__rendered {
    padding-inline: 12px;
}

.im-select.site-select + .select2 .select2-selection__rendered {
    padding-right: clamp(50px, calc(10vw + 8px), 54px);
}

.im-radio.site-radio-button > input[type="radio"].error:not(:checked) + span::before {
    border-color: #ef3340;
}

.im-input.site-input.error,
.site-textarea textarea.error + .cke_chrome,
.im-select.site-select.error + .select2 .select2-selection__rendered {
    color: #ef3340;
}

.im-textarea.site-textarea {
    border: 2px solid #666666;
    border-radius: 4px;
}

.im-textarea.site-textarea:hover {
    border-color: revert;
}

.select2-dropdown .select2-results__option {
    min-height: 26px;
    margin: 0;
}

.im-select.site-select + .select2 .select2-selection__arrow {
    top: 0;
    right: 0;
    background: url("/frontend/template/assets/images/select2-arrow-down.svg") #666666 center center no-repeat;
    background-size: 14px 14px;
    height: 50px;
    width: clamp(32px, 10vw, 50px);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.im-select.site-select.error + .select2 .select2-selection__arrow {
    background: url("/frontend/template/assets/images/select2-arrow-down.svg") #ef3340 center center no-repeat;
    background-size: 14px 14px;
}

.im-select.site-select + .select2 .select2-selection__arrow b {
    display: none;
}

.im-input.site-input {
    height: 50px;
    border: 2px solid #666666;
    border-radius: 4px;
}

.im-input.site-input:hover {
    border-color: #666666;
}

.im-input.site-input.error:hover {
    border-color: #ef3340;
}

.im-input.site-input:disabled {
    background: #fff;
    border: 2px solid #e6e6e6;
    cursor: not-allowed;
}

.im-input.site-input:disabled:hover {
    border-color: #e6e6e6;
}

.site-textarea .imjs-html-editor .cke_chrome {
    border: 2px solid #666666;
    border-radius: 4px;
}

.site-textarea .imjs-html-editor .cke_top {
    border-bottom: 2px solid #666666;
    background: #e6e6e6;
}

.site-textarea .imjs-html-editor .cke_button {
    padding: 4px 11px;
    border-radius: 40px;
    border: 1px solid transparent;
}

.site-textarea .imjs-html-editor .cke_button:hover {
    border: 1px #333333 solid;
}

.site-textarea .imjs-html-editor .cke_button_on {
    background: #333333;
}

.site-textarea .imjs-html-editor .cke_button_on .cke_button_icon {
    filter: brightness(99);
}

.site-textarea .imjs-html-editor .cke_bottom {
    border-top: 2px solid #666666;
    background: #e6e6e6;
}

.im-radio.site-radio-button > span::before {
    border: 2px solid #666;
}

.im-radio.site-radio-button > input:checked + span::before {
    background: #2873d1;
    border-color: #2873d1;
}

.im-radio.site-radio-button > input:checked + span::after {
    left: 5px;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    margin-top: -4px;
    background: #fff;
}

.im-checkbox.site-checkbox > span::after {
    left: 2px;
    margin-top: -7px;
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 14px;
    border-radius: 1px;
}

.im-radio.site-radio-button > span,
.im-checkbox.site-checkbox > span {
    font-size: 1rem;
    line-height: 1.25rem;
}

.im-checkbox.site-checkbox > span:before {
    border: 2px solid #666;
    border-radius: 4px;
}

.im-checkbox.site-checkbox > input:checked + span:before {
    border-color: #2873d1;
}

.im-checkbox.site-checkbox > input:checked + span:after {
    content: "";
    color: #fff;
    background: #2873d1 url("/frontend/template/assets/images/icons/tick.svg") no-repeat center;
    background-size: contain;
}

.im-checkbox.site-checkbox > input.error + span:before {
    border-color: #ef3340;
}

.im-checkbox.site-checkbox > input.error + span:hover:before {
    border-color: #ef3340;
}

.site-link {
    width: max-content;
    color: #2873d1;
    text-decoration: underline 1px solid #2873d1;
}

.imjs-overlay.site-popup {
    background: transparent;
}

.imjs-popup.imjs-default {
    border-radius: 5px;

    > .imjs-inner > .imjs-close,
    > .imjs-inner > .imjs-close:hover {
        background: url("/frontend/template/assets/images/icons/close-grey.svg") no-repeat center;
        top: 8px;
        right: 11px;
    }
}

.imjs-popup.site-popup {
    top: 0 !important;
    left: 0 !important;
    height: 100vh;
    background: unset !important;
    border-radius: 2px;
    overflow-y: scroll;

    .imjs-content {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100vw;
        min-height: 100vh !important;
        padding-inline: 0 !important;
        background-color: rgba(0, 0, 0, 0.45);

        .site-popup-content {
            position: relative;
            background: #fff;
            padding: 2rem 2rem 1rem 2rem;
            border-radius: 5px;
            width: 90vw;
            max-width: 795px;

            &.no-max-width {
                max-width: unset;
            }

            .site-section-separator:nth-child(3),
            .site-section-separator:nth-last-child(2) {
                margin-left: -2rem;
                width: calc(100% + 4rem);
            }

            .site-close-button {
                position: absolute;
                top: 8px;
                right: 11px;
                background: url("/frontend/template/assets/images/icons/close-grey.svg") no-repeat center;
                background-size: contain;
                width: 24px;
                height: 24px;
                cursor: pointer;
            }
        }

        p {
            font-size: 1rem !important;
            line-height: 1.25rem !important;
        }

        .im-input {
            height: 39px;
            padding: 0 8px;
            max-height: unset;
        }

        .im-textarea {
            padding: 8px;
        }

        .im-checkbox > span::before,
        .im-radio > span::before {
            top: 2px;
            margin-top: 0;
        }

        .im-checkbox > span::after {
            top: 4px;
            margin-top: 0;
        }

        .im-radio > span::after {
            top: 7px;
            margin-top: 0;
        }

        .site-table {
            font-size: 16px;
            line-height: 16px;
            white-space: nowrap;

            td {
                padding: 6px;
            }
        }

        .cta-button {
            padding: 15px 22px;
            font-size: 0.74075rem;
            line-height: 1.201;
            font-weight: 400;
        }

        .action-buttons {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h1 {
    font-size: 3.4375rem;
    line-height: 1.09091;
    margin: 20px 0 35px;
}

h2 {
    font-size: 2.75rem;
    line-height: 1.13636;
    margin: 15px 0 20px;
}

h3 {
    font-size: 2.1875rem;
    line-height: 1.14286;
    margin: 10px 0;
}

h4 {
    font-size: 1.75rem;
    line-height: 1.07143;
    margin: 4px 0;
}

h5 {
    font-size: 1.5rem;
    line-height: 1.035715;
    margin: 2px 0;
}

h6 {
    font-size: 1.25rem;
    line-height: 1.0178575;
    margin: 1px 0;
}

@-moz-keyframes site-loading-spin {
    0% {
        -moz-transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes site-loading-spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes site-loading-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.site-loading-icon {
    animation: site-loading-spin 1.2s infinite linear;
}

.site-section-toggle {
    display: flex;
    column-gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #2873d1;
    overflow-x: auto;
}

.site-section-toggle .site-section-toggle-button {
    padding: 20px;
    background: #e6e6e6;
    font-weight: bold;
    cursor: pointer;
}

.site-section-toggle .site-section-toggle-button.active {
    color: #fff;
    background: #2873d1;
}

.site-section-toggle .site-section-toggle-button.active {
    color: #fff;
    background: #2873d1;
}

.site-filters {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    margin-bottom: 20px;
}

.site-filters .actions {
    display: flex;
    justify-content: flex-end;
    column-gap: 20px;
}

.site-filters .filter-row {
    display: grid;
    grid-column-gap: 20px;
}

.site-filters .action-button {
    margin-top: auto;
}

ul {
    list-style: unset;
    padding-left: 34px;
    line-height: 1.625rem;
    margin: 8px 0;
}

ul li {
    margin: 8px 0;
}

ul li::marker {
    color: #0072ce;
    font-size: 1.625rem;
    line-height: 1.625rem;
}

ol {
    list-style: auto;
    padding-left: 30px;
    line-height: 1.625rem;
    margin: 8px 0;
}

ol li {
    padding-left: 4px;
    line-height: 1.625rem;
    margin: 8px 0;
}

ol li::marker {
    line-height: 1.625rem;
}

.site-label {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

.site-label > .field-name {
    margin-left: 12px;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
}

.site-label > .tooltip {
    margin-left: 10px;
    font-size: 0.875rem;
}

.site-label.date-picker {
    position: relative;
}

.site-label.date-picker > .field-name {
    white-space: nowrap;
}

.site-label.date-picker > .field-name:after {
    content: "";
    position: absolute;
    top: 26px;
    right: 2px;
    width: clamp(32px, 8vw, 40px);
    height: 42px;
    background: url(/frontend/template/assets/images/date-picker-calendar.svg) #666666 center center no-repeat;
    background-size: 14px 14px;
    border-top-right-radius: 1px;
    border-bottom-right-radius: 1px;
}

.site-label.date-picker.error > .field-name:after {
    background: url(/frontend/template/assets/images/date-picker-calendar.svg) #ef3340 center center no-repeat;
    background-size: 14px 14px;
}

.site-label.date-picker > .site-input {
    outline-color: #666666;
}

.site-date-picker-clear {
    display: flex;
    justify-content: center;
    color: #ff3662;
    padding: 4px;
    border-top: 1px solid #e6e6e6;
    user-select: none;
    cursor: pointer;
}

.site-date-picker-clear:hover {
    background: #ffe0ec;
}

.site-info-widget {
    position: relative;
    padding: 10px 80px 10px 20px;
    margin-bottom: 30px;
    background: #cfe3f6;
}

.site-info-widget > .title {
    font-size: 1.375rem;
    margin: 15px 0 10px;
    font-weight: bold;
}

.site-info-widget > .content {
    margin-bottom: 15px;
    font-size: 15px !important;
}

.site-info-widget > .close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: #2873d1;
    color: #fff;
    cursor: pointer;
}

.site-info-widget.green {
    background: #cfead7;
}

.site-info-widget.green > .close {
    background: #2d9633;
}

.site-info-widget.red {
    background: #f9d6d9;
}

.site-info-widget.red > .close {
    background: #e5303c;
}

.site-highlighted-text {
    background-color: #ffff00;
    color: #000;
}

.site-required {
    color: red;
}

.direction-arrows {
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
    cursor: pointer;
}

.direction-arrows .fa-sort,
.direction-arrows .fa-sort-up,
.direction-arrows .fa-sort-down {
    display: none;
}

.direction-arrows.both .fa-sort,
.direction-arrows.asc .fa-sort-up,
.direction-arrows.desc .fa-sort-down {
    display: revert;
}

.expandable-checkbox:checked ~ .checkbox-expanded-content {
    display: block;
}

.imjs-notifier.imjs-default {
    color: #111;

    > .imjs-inner {
        padding: 10px 80px 20px 20px;
        min-height: 80px;
        border-radius: 0;
        max-width: 1210px;
        margin-right: 15px;

        > .imjs-content {
            box-shadow: none;
            color: inherit !important;
            font-size: inherit !important;
            line-height: inherit;

            &::before {
                display: block;
                margin: 15px 0 10px;
                font-weight: bold;
            }

            > div {
                font-size: 15px !important;
            }
        }

        > .imjs-close {
            position: absolute;
            top: 20px;
            right: 20px;
            justify-content: center;
            align-items: center;
            height: 40px;
            width: 40px;
            border-radius: 50%;
            color: #fff;
            cursor: pointer;
            background-image: url("/frontend/template/assets/images/icons/cross-white.svg");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 12px;
        }
    }

    &.imjs-color-red > .imjs-inner {
        background: #fcd6da;

        > .imjs-content::before {
            content: "Veateade";
        }

        > .imjs-close {
            background-color: #ef333d;
        }
    }

    &.imjs-color-green > .imjs-inner {
        background: #ccead8;

        > .imjs-content::before {
            content: "Tagasiside";
        }

        > .imjs-close {
            background-color: #169134;
        }
    }
}

@media all and (max-width: 1200px) {
    :root, p {
        font-size: 16px !important;
        line-height: 1.5625 !important;
        --font-size-2: calc(18px * var(--font-size-multiplier));
        --font-size-4: calc(24px * var(--font-size-multiplier));
        --line-height-2: calc(1.875 * var(--line-height-multiplier));
        --line-height-4: calc(2.1875 * var(--line-height-multiplier));
    }

    .im-select.site-select + .select2 .select2-selection__rendered,
    .im-input.site-input {
        line-height: 3rem;
    }

    .main-header .slide {
        height: 70px;
    }

    .main-header .slide .haridusamet-logo {
        width: 129px;
        left: 84px;
    }

    .main-header .slide .menu {
        display: none;
    }

    .main-header .mobile-trigger {
        display: block;
    }

    .main-header .slide {
        display: flex;
        justify-content: space-between;
    }

    .main-header .slide .haridusamet-logo {
        position: unset;
        margin: 0 0 0 25px;
    }

    .main-header .slide .mobile-trigger {
        position: relative;
        top: unset;
    }

    .main-footer > .top {
        row-gap: 25px;
        padding: 25px;
    }

    .main-footer > .top .site-info-footer {
        flex-direction: column;
        align-items: center;
        row-gap: 10px;
    }

    h1 {
        font-size: 1.8125rem;
        line-height: 1.03448;
        margin: 10px 0 20px;
    }

    h2 {
        font-size: 1.625rem;
        line-height: 1.15385;
        margin: 8px 0 10px;
    }

    h3 {
        font-size: 1.4375rem;
        line-height: 1.30435;
        margin: 5px 0;
    }

    h4 {
        font-size: 1.25rem;
        line-height: 1.25;
        margin: 2px 0;
    }

    h5 {
        font-size: 1.125rem;
        line-height: 1.125;
        margin: 1px 0;
    }

    h6 {
        font-size: 1rem;
        line-height: 1;
        margin: 0;
    }
}

@media all and (max-width: 768px) {
    .main-header .slide .haridusamet-logo {
        width: 86px;
        left: 63px;
    }

    .mobile-nav .content {
        min-width: 85vw;
    }

    .breadcrumbs-nav {
        padding: 5px 10px;
    }

    body > .cookie-popup {
        left: calc(var(--margin));
    }

    .main-content {
        padding: 15px 10px;
    }
}

@media all and (max-width: 576px) {
    .main-header > .upper > .middle {
        padding-left: 10px;
    }

    .header-nav {
        display: none;
    }

    .mobile-header-nav {
        display: flex;
    }

    .header-nav .languages {
        margin: 0 0 0 8px;
        padding: 0 0 0 8px;
    }

    .main-footer {
        margin-bottom: 10px;
    }

    .main-footer > .top .other-links {
        flex-direction: column;
        align-items: center;
        row-gap: 10px;
    }

    .main-footer > .bottom > .pattern-3 {
        background-size: 190% auto;
    }

    body > .image-overlay-container .close-button {
        top: -30px;
        right: -32px;
    }

    body > .image-overlay-container .prev-button {
        left: 10px;
    }

    body > .image-overlay-container .next-button {
        right: 10px;
    }

    .site-filters .filter-row {
        grid-template-columns: auto;
        grid-row-gap: 8px;
    }

    .site-filters .actions {
        justify-content: flex-start;
    }

    .site-label {
        row-gap: 0;
    }

    .site-label.date-picker > .field-name:after {
        top: 18px;
    }

    .cta-button {
        padding: 7px 15px;
    }

    .cta-button.big {
        padding: 12px 18px;
    }

    .cta-button.small {
        padding: 6px 12px;
    }

    .social-media {
        flex-wrap: wrap;

        > .share {
            width: 100%;
            line-height: 38px;
        }
    }
}
