:root {
    --fp-ink: #102838;
    --fp-ink-2: #234253;
    --fp-muted: #68808d;
    --fp-bg: #f4f8f7;
    --fp-surface: #ffffff;
    --fp-line: #dce7e5;
    --fp-line-strong: #c9d9d6;
    --fp-accent: #0a9c84;
    --fp-accent-dark: #087b6a;
    --fp-accent-soft: #e6f6f2;
    --fp-navy: #0b2437;
    --fp-navy-2: #11344a;
    --fp-warning: #a66422;
    --fp-warning-soft: #fff4df;
    --fp-danger: #a84242;
    --fp-radius-sm: 10px;
    --fp-radius: 16px;
    --fp-radius-lg: 24px;
    --fp-shadow: 0 18px 50px rgba(16, 40, 56, .08);
    --fp-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body.fp-template {
    margin: 0;
    min-width: 320px;
    color: var(--fp-ink);
    background: var(--fp-bg);
    font-family: var(--fp-font);
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.is-menu-open {
    overflow: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    max-width: 100%;
}

.site-shell {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

.fp-skip-link {
    position: fixed;
    z-index: 10000;
    top: 10px;
    left: 10px;
    padding: 10px 15px;
    color: #fff;
    background: var(--fp-navy);
    border-radius: 8px;
    transform: translateY(-150%);
    transition: transform .2s ease;
}

.fp-skip-link:focus {
    transform: translateY(0);
}

.site-topbar {
    padding: 7px 0;
    color: #d8e9e7;
    background: var(--fp-navy);
    font-size: 13px;
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(201, 217, 214, .9);
    backdrop-filter: blur(16px);
    transition: box-shadow .2s ease, background .2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 12px 35px rgba(11, 36, 55, .08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    min-height: 76px;
    gap: 38px;
}

.site-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
}

.site-logo__mark {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 8px;
    border: 1px solid rgba(10, 156, 132, .24);
    border-radius: 11px;
    background: var(--fp-accent-soft);
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 3px;
}

.site-logo__mark i {
    display: block;
    border-radius: 3px 3px 1px 1px;
    background: var(--fp-accent);
}

.site-logo__mark i:nth-child(1) { height: 42%; }
.site-logo__mark i:nth-child(2) { height: 72%; }
.site-logo__mark i:nth-child(3) { height: 100%; }

.site-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.site-logo__text strong {
    color: var(--fp-navy);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: .065em;
}

.site-logo__text small {
    margin-top: 5px;
    color: var(--fp-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .03em;
}

.site-nav {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 3px;
}

.site-nav > a,
.site-nav__dropdown > button {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    color: var(--fp-ink-2);
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 560;
    white-space: nowrap;
}

.site-nav > a::after,
.site-nav__dropdown > button::after {
    position: absolute;
    right: 15px;
    bottom: -1px;
    left: 15px;
    height: 2px;
    content: "";
    background: var(--fp-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.site-nav > a:hover,
.site-nav > a.is-active,
.site-nav__dropdown > button:hover,
.site-nav__dropdown > button.is-active {
    color: var(--fp-accent-dark);
}

.site-nav > a:hover::after,
.site-nav > a.is-active::after,
.site-nav__dropdown > button:hover::after,
.site-nav__dropdown > button.is-active::after {
    transform: scaleX(1);
}

.site-nav__dropdown {
    position: relative;
    align-self: stretch;
}

.site-nav__dropdown > button svg {
    width: 15px;
    margin-left: 5px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform .2s ease;
}

.site-nav__dropdown.is-open > button svg {
    transform: rotate(180deg);
}

.site-nav__mega {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    display: grid;
    width: 650px;
    padding: 14px;
    visibility: hidden;
    background: #fff;
    border: 1px solid var(--fp-line);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 22px 55px rgba(11, 36, 55, .13);
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    grid-template-columns: 1fr 210px;
    gap: 10px;
}

.site-nav__dropdown:hover .site-nav__mega,
.site-nav__dropdown.is-open .site-nav__mega {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.site-nav__mega-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.site-nav__mega-main > a {
    display: flex;
    min-height: 74px;
    padding: 13px;
    border-radius: 12px;
    align-items: center;
    gap: 11px;
    transition: background .18s ease;
}

.site-nav__mega-main > a:hover {
    background: var(--fp-bg);
}

.site-nav__mega-main > a > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: var(--fp-accent-dark);
    background: var(--fp-accent-soft);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    place-items: center;
}

.site-nav__mega-main div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.site-nav__mega-main strong {
    color: var(--fp-ink);
    font-size: 14px;
    font-weight: 620;
}

.site-nav__mega-main small {
    margin-top: 2px;
    overflow: hidden;
    color: var(--fp-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav__mega-side {
    display: flex;
    padding: 15px;
    background: var(--fp-navy);
    border-radius: 13px;
    flex-direction: column;
}

.site-nav__mega-side > span {
    margin-bottom: 7px;
    color: #8fb0b7;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .015em;
}

.site-nav__mega-side a {
    display: flex;
    padding: 9px 0;
    color: #e7f2f1;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
    justify-content: space-between;
    transition: color .18s ease;
}

.site-nav__mega-side a:last-child {
    border-bottom: 0;
}

.site-nav__mega-side a:hover {
    color: #71ddc8;
}

.site-nav__mega-side b {
    font-weight: 400;
}

.site-header__actions {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 10px;
}

.site-language {
    display: flex;
    padding: 3px;
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: 9px;
}

.site-language a {
    display: grid;
    min-width: 32px;
    height: 27px;
    color: var(--fp-muted);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 650;
    place-items: center;
}

.site-language a.is-active {
    color: #fff;
    background: var(--fp-navy);
}

.site-compare-link {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    color: var(--fp-ink-2);
    border: 1px solid var(--fp-line);
    border-radius: 10px;
    place-items: center;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.site-compare-link:hover {
    color: var(--fp-accent-dark);
    background: var(--fp-accent-soft);
    border-color: #b5dfd7;
}

.site-compare-link svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.site-compare-link span {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    color: #fff;
    background: var(--fp-accent);
    border: 2px solid #fff;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    place-items: center;
}

.site-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--fp-line);
    border-radius: 10px;
    cursor: pointer;
}

.site-menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    margin: 4px 0;
    background: var(--fp-ink);
    border-radius: 3px;
    transition: transform .2s ease, opacity .2s ease;
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.site-mobile-menu {
    overflow-y: auto;
    max-height: calc(100vh - 72px);
    padding: 0 0 24px;
    background: #fff;
    border-top: 1px solid var(--fp-line);
}

.site-mobile-menu[hidden] {
    display: none;
}

.site-mobile-menu__inner {
    width: min(720px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 22px;
}

.site-mobile-menu__section > span {
    display: block;
    margin-bottom: 12px;
    color: var(--fp-muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .015em;
}

.site-mobile-menu__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.site-mobile-menu__grid a {
    padding: 12px 13px;
    color: var(--fp-ink-2);
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 560;
}

.site-mobile-menu__links {
    display: grid;
    margin-top: 20px;
    border-top: 1px solid var(--fp-line);
}

.site-mobile-menu__links a {
    display: flex;
    padding: 13px 2px;
    color: var(--fp-ink);
    border-bottom: 1px solid var(--fp-line);
    font-size: 14px;
    font-weight: 580;
    justify-content: space-between;
}

.site-mobile-menu__contact {
    display: flex;
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.site-mobile-menu__contact a {
    color: var(--fp-accent-dark);
    font-size: 13px;
    font-weight: 600;
}

.site-main {
    min-height: 50vh;
}

.site-footer {
    margin-top: 90px;
    color: #c9d9dc;
    background:
        radial-gradient(circle at 10% 5%, rgba(10, 156, 132, .16), transparent 34%),
        var(--fp-navy);
}

.site-footer__top {
    display: grid;
    padding: 65px 0 48px;
    grid-template-columns: minmax(280px, 1.65fr) repeat(3, minmax(150px, 1fr));
    gap: 55px;
}

.site-logo--footer .site-logo__mark {
    background: rgba(10, 156, 132, .14);
    border-color: rgba(113, 221, 200, .2);
}

.site-logo--footer .site-logo__text strong {
    color: #fff;
}

.site-logo--footer .site-logo__text small {
    color: #9cb4b9;
}

.site-footer__brand > p {
    max-width: 430px;
    margin: 22px 0;
    color: #9fb5ba;
    font-size: 13px;
    line-height: 1.7;
}

.site-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer__contacts a {
    width: fit-content;
    color: #eef7f6;
    font-size: 14px;
    font-weight: 560;
}

.site-footer__column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__column strong {
    margin-bottom: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 630;
}

.site-footer__column a {
    width: fit-content;
    color: #9fb5ba;
    font-size: 13px;
    transition: color .18s ease;
}

.site-footer__column a:hover {
    color: #71ddc8;
}

.site-footer__modules {
    display: grid;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.site-footer__bottom {
    display: flex;
    min-height: 70px;
    padding: 18px 0;
    color: #78969d;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 11px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.site-footer__bottom div {
    display: flex;
    gap: 12px;
}

.site-footer__bottom a {
    color: #b7cbcf;
    font-weight: 650;
}

.site-error {
    display: flex;
    width: min(600px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.site-error__mark {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 25px;
    padding: 14px;
    background: var(--fp-accent-soft);
    border-radius: 18px;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 5px;
}

.site-error__mark i {
    background: var(--fp-accent);
    border-radius: 3px;
}

.site-error__mark i:nth-child(1) { height: 40%; }
.site-error__mark i:nth-child(2) { height: 70%; }
.site-error__mark i:nth-child(3) { height: 100%; }

.site-error > span {
    color: var(--fp-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .15em;
}

.site-error h1 {
    margin: 10px 0;
    color: var(--fp-navy);
    font-size: clamp(32px, 6vw, 54px);
    font-weight: 620;
}

.site-error p {
    color: var(--fp-muted);
}

.site-error > a {
    margin-top: 20px;
    padding: 12px 20px;
    color: #fff;
    background: var(--fp-navy);
    border-radius: 10px;
    font-weight: 600;
}

#system-message-container {
    width: min(1240px, calc(100% - 40px));
    margin: 18px auto;
}

.alert {
    border-radius: 12px;
}

.fp-component-only {
    padding: 20px;
}

@media (max-width: 1080px) {
    .site-header__inner {
        gap: 22px;
    }

    .site-nav > a,
    .site-nav__dropdown > button {
        padding-inline: 10px;
    }

    .site-nav > a::after,
    .site-nav__dropdown > button::after {
        right: 10px;
        left: 10px;
    }

    .site-logo__text small {
        display: none;
    }
}

@media (max-width: 920px) {
    .site-nav {
        display: none;
    }

    .site-menu-toggle {
        display: block;
    }

    .site-header__inner {
        min-height: 70px;
    }

    .site-footer__top {
        grid-template-columns: 1.6fr repeat(2, 1fr);
        gap: 40px;
    }

    .site-footer__column:last-child {
        grid-column: 2 / 4;
    }
}

@media (max-width: 680px) {
    .site-shell {
        width: min(100% - 28px, 1240px);
    }

    .site-header__inner {
        gap: 12px;
    }

    .site-logo__mark {
        width: 36px;
        height: 36px;
    }

    .site-logo__text strong {
        font-size: 14px;
    }

    .site-language {
        display: none;
    }

    .site-footer {
        margin-top: 60px;
    }

    .site-footer__top {
        padding: 45px 0 35px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 20px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }

    .site-footer__column:last-child {
        grid-column: auto;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .site-footer__modules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .site-logo__text {
        display: none;
    }

    .site-mobile-menu__grid {
        grid-template-columns: 1fr;
    }
}

/* FinPortal 0.2.0: separate business navigation and expanded mobile taxonomy. */
.site-nav__dropdown--business .site-nav__mega {
    right: 0;
    left: auto;
    width: 620px;
}

.site-mobile-menu__languages {
    display: flex;
    width: max-content;
    padding: 3px;
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: 9px;
    gap: 2px;
}

.site-mobile-menu__languages a {
    display: grid;
    min-width: 36px;
    height: 30px;
    padding: 0;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 650;
    place-items: center;
}

.site-mobile-menu__languages a.is-active {
    color: #fff;
    background: var(--fp-navy);
}

@media (max-width: 1180px) {
    .site-header__inner {
        gap: 18px;
    }

    .site-nav > a,
    .site-nav__dropdown > button {
        padding-inline: 9px;
        font-size: 13px;
    }
}
