:root {
    --variables: goes here;
}

* {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
}

*:focus:not(:focus-visible) {
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

html {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-padding-top, 100px);
}

*::-webkit-scrollbar {
    width: 0.5rem;
}

*::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    height: 50%;
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

.visually-hidden {
    font-family:
        'bebas',
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        'Open Sans',
        'Helvetica Neue',
        sans-serif;
}

@font-face {
    font-family: 'Bebas';
    src: url(../fonts/BebasNeue-Regular.ttf);
    font-weight: normal;
    font-variant: normal;
}

@font-face {
    font-family: 'Bebas';
    src: url(../fonts/BebasNeue-Bold.ttf);
    font-weight: 800;
    font-variant: normal;
}

@font-face {
    font-family: 'Sofia';
    src: url(../fonts/woff/SofiaSans-Regular.woff);
    font-weight: normal;
    font-variant: normal;
}

@font-face {
    font-family: 'Sofia';
    src: url(../fonts/woff/SofiaSans-Medium.woff);
    font-weight: 500;
    font-variant: normal;
}

@font-face {
    font-family: 'Sofia';
    src: url(../fonts/woff/SofiaSans-SemiBold.woff);
    font-weight: 600;
    font-variant: normal;
}

@font-face {
    font-family: 'Sofia';
    src: url(../fonts/woff/SofiaSans-Bold.woff);
    font-weight: 800;
    font-variant: normal;
}

@font-face {
    font-family: 'Sofia';
    src: url(../fonts/woff/SofiaSans-ExtraBold.woff);
    font-weight: 950;
    font-variant: normal;
}

body {
    font-family:
        'Sofia',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        'Open Sans',
        'Helvetica Neue',
        sans-serif;
    text-rendering: geometricPrecision;
    color: #404e4b;
    line-height: 1.3;
    letter-spacing: -0.025em;
    font-size: 1rem;
}

h1,
h2,
h3 {
    font-weight: 800;
}

.page-body a {
    color: #00130f;
}

p {
    line-height: 1.3;
}

p + .u-btn.u-btn--blue {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.u-btn.u-btn--blue:has(~ .note) {
    margin-bottom: 0;
}

p:last-child {
    margin-bottom: 0;
}

.u-btn {
    padding: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1;
}

.u-btn--blue {
    padding-right: calc(2rem + 32px);
    background: url(../images/icons/next-white.svg) right 1rem center no-repeat;
    background-size: 10px;
    background-color: #004d66;

    color: white !important;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.1px;
    line-height: 1;
    text-align: left;
}

.u-btn--blue:hover,
.u-btn--blue:focus {
    background-color: #002733;
    color: white;
}

.landing-title {
    font-size: 6.25rem;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--textGreen);
}

.landing-title span {
    display: block;
    color: var(--textDark);
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.3;
    letter-spacing: 0px;
}

.page-title {
    color: #00130f;
    line-height: 0.9;
    font-size: 3rem;
    font-weight: 900;

    margin-bottom: 0.5rem;
    letter-spacing: unset;
    word-spacing: 280px;
}

.page-title span {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.25rem;
    font-weight: 400;

    text-decoration: none;
    letter-spacing: unset;
}

.subtitle {
    display: block;
    margin-left: 0.8rem;
    padding-left: 1.5rem;
    width: calc(100% - 0.8rem);
    background: url(../images/info.svg) top left no-repeat;
}

.section-title {
    font-family:
        'Sofia',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        'Open Sans',
        'Helvetica Neue',
        sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1;
    color: #004d66;
    padding-bottom: 0;
}

.secondary-title {
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.3;
    color: #00130f;
}

.note {
    color: #00130f;
    padding: 1rem;
    padding-left: 1.5rem;
    font-size: 0.75rem;
    background: url(../images/info-24.svg) left top 18px no-repeat;
    background-size: 16px;
}

.login-page__info {
    min-height: 100vh;
    background-color: white;
    display: flex;
    flex-direction: column;
}

/* .login-page .page-header {
    padding: 0 1rem;
} */

.brand-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;

    margin: 2rem 0;
}

.brand {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.brand-nzis {
    background-image: url(../images/branding/his-logo.svg);
    background-size: 100%;
    width: 200px;
}

.brand-nzis--en {
    background-image: url(../images/branding/his-logo-en.svg);
}

.brand-gerb {
    background-image: url(../images/branding/Branding-MoH.svg);
    width: 200px;
    background-size: 200px auto;
}

.brand-gerb--en {
    background-image: url(../images/branding/Branding-MoH-en.svg);
}

.brand__link {
    display: block;
    height: 60px;
    padding-left: 100px;
    background-repeat: no-repeat;
}

.brand__link span {
    display: block;
}

/* Language toggler */
.language-toggler {
    position: relative;
    display: block;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 32px;
    height: 32px;

    background-size: 100%;
}

html[lang='bg'] .language-toggler {
    background-image: url(../images/language-bg.svg);
}

html[lang='en'] .language-toggler {
    background-image: url(../images/language-en.svg);
}

.language-toggler:hover {
    display: block;
    background-position: center;
    background-repeat: no-repeat;
}

html[lang='bg'] .language-toggler:hover {
    background-image: url(../images/language-en.svg);
}

html[lang='en'] .language-toggler:hover {
    background-image: url(../images/language-bg.svg);
}

.language-toggler:after {
    display: none;
    position: absolute;
    left: 40px;
    width: 150px;
    top: 8px;

    font-size: 0.8rem;
    font-weight: 800;
}

.language-toggler:hover::after {
    display: block;
}

html[lang='bg'] .language-toggler:after {
    content: 'Switch to English';
}

html[lang='en'] .language-toggler:after {
    content: 'Превключи на Български';
}

/* End of language toggler */

/* Login page */
.login-page {
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
}

.login-page .page-wrapper {
    background-image: linear-gradient(90deg, white 50%, white 50%);
    background-position: right top;
    background-repeat: no-repeat;
}

@media (min-width: 992px) {
    .login-page {
        background-position: right -40vw center;
        background-size: cover;
    }

    .login-page .page-wrapper {
        background-image: linear-gradient(90deg, white 50%, transparent 50%);
        background-position: right top;
        background-repeat: no-repeat;
    }
}

@media (min-width: 1600px) {
    .login-page {
        background-position: right -5vw center;
        background-size: contain;
    }
}

/* End of Login page*/

/* Roadmap */
.roadmap-modal {
    height: 100vh;
    overflow-y: auto;
}

.roadmap-modal:after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    height: 300px;
    width: 100%;
    background-image: -webkit-gradient(
        linear,
        left top,
        left bottom,
        color-stop(10%, transparent),
        color-stop(70%, rgba(255, 255, 255, 0.9))
    );
    background-image: linear-gradient(180deg, transparent 10%, rgba(255, 255, 255, 0.9) 70%);
}

.roadmap-modal .modal-content {
    padding: 0;
    background-color: transparent;
}

.roadmap-modal .modal-header {
    border-bottom: 1px solid transparent;
}

@media screen and (min-width: 567px) {
    .roadmap-modal .modal-dialog {
        max-width: 800px;
    }
}

.roadmap-modal .modal-content {
    border-color: transparent;
}

.roadmap-modal__img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
}

.modal-backdrop.show {
    background-color: white;
    opacity: 0.8;
}

/* Footer */
.footer {
    margin-top: auto;
    margin-bottom: 2rem;
}

.footer > .row > .col-md-6.d-flex {
    margin-top: 1rem;
}

.footer-apps {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.footer__nav {
    margin-right: auto;
}

.footer__nav ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    margin-top: 0.25rem;
}

.footer__nav a {
    display: inline-block;
    font-size: 0.875rem;
    color: #404e4b;
    font-weight: 500;
    font-size: 0.75rem;
}

.footer__nav a:not(:last-child) {
    margin-right: 1rem;
}

.footer__logo {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 40px 90px auto;
    grid-template-columns: 40px 90px 15ch;
    grid-gap: 0 10px;
}

.footer__logo:before {
    content: '';
    -ms-grid-column: 1;
    grid-column: 1 /1;
    -ms-grid-row: 1;
    -ms-grid-row-span: 3;
    grid-row: 1/4;
    background: url(../images/branding/erx-icon.svg) top left no-repeat;
    background-size: contain;
    height: 100%;
    width: 100%;
}

.footer__logo span {
    display: block;
    line-height: 1;
    color: #00130f;
}

.footer__logo span:first-child {
    -ms-grid-column: 2;
    grid-column: 2/2;
    -ms-grid-row: 1;
    -ms-grid-row-span: 1;
    grid-row: 1/2;

    color: #00664d;
    font-weight: 850;
    font-size: 3.125rem;
    line-height: 1;
}

.footer__logo span:last-child {
    grid-column: 3/3;
    grid-row: 1;
    padding-top: 17px;

    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.1;
    color: #00130f;
}

.footer__description {
    font-size: 0.75rem;
    font-weight: 400;
    color: #00130f;
    line-height: 1.2 !important;
    position: relative;
}

.footer__description:after {
    content: '';
    display: block;
    margin-top: 0.66667rem;
    margin-bottom: 1rem;
    width: 40%;
    height: 1px;
    background-color: #e6e8e7;
}

/* End of Footer */

/* Appstore links */
.app {
    display: inline-block;
    margin-top: auto;
    margin-bottom: 0.5rem;
    width: 100%;
    height: 39px;
    background-size: contain;
    background-repeat: no-repeat;
}

.app--appstore {
    background-image: url(../images/appstore.svg);
    width: 118px;
    margin-right: 1rem;
}

.app--google {
    background-image: url(../images/googleplay.svg);
    width: 135px;
}

html[lang='en'] .app--google {
    background-image: url(../images/google-play-en.svg);
}

html[lang='en'] .brand-gerb {
    background-image: url(../images/Branding-MoH-en.svg);
}

html[lang='en'] .brand-nzis {
    background-image: url(../images/his-logo-en.svg);
}

html[lang='en'] .app--appstore {
    background-image: url(../images/appstore-en.svg);
}

/* End of Appstore links */

.error {
    padding: 0.62rem;
    text-align: center;
    color: red;
    white-space: pre-line;
}

@media (min-width: 768px) {
    .footer__nav a {
        display: block;
    }
}

@media (max-width: 87.4em) {
    .footer > .row > .col-md-6.d-flex {
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
    }

    .footer-apps .d-flex {
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
    }
}

@media (max-width: 47.9em) {
    .footer__logo {
        -ms-grid-columns: 60px auto;
        grid-template-columns: 60px auto;
    }

    .brand .brand__link:last-child {
        margin-left: 0;
    }
}

@media (max-width: 35.9em) {
    .brand .brand-gerb {
        background-size: 180px auto;
        display: none;
    }

    .brand .brand-nzis {
        background-size: 180px auto;
    }

    .footer__logo {
        display: -ms-grid;
        display: grid;
        margin: 1rem 0;
        margin-top: 2rem;
        -ms-grid-columns: 40px 80px auto;
        grid-template-columns: 40px 80px auto;
    }

    .footer__logo:before {
        -ms-grid-row: 1;
        -ms-grid-row-span: 2;
        grid-row: 1/3;
    }

    .footer__logo span:nth-child(2) {
        line-height: 1;
    }

    .footer__logo span:last-child {
        padding-top: 5px;
        -ms-grid-column: 1;
        -ms-grid-column-span: 2;
        grid-column: 3/4;
    }
}
