﻿:root {
    --sd-bg: #f8fafc;
    --sd-surface: #ffffff;
    --sd-text: #0f172a;
    --sd-muted: #64748b;
    --sd-border: #e2e8f0;
    --sd-primary: #2563eb;
    --sd-primary-dark: #1d4ed8;
    --sd-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--sd-bg);
    color: var(--sd-text);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

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

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

.container {
    margin-inline: auto;
    width: min(1200px, calc(100% - 2rem));
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 0.5rem;
    line-height: normal;
    padding: 0.9rem 1.4rem;
    text-decoration: none;
    top: 0.5rem;
    width: auto;
    z-index: 100000;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--sd-border);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    min-height: 4.5rem;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 0.75rem;
}

.brand__logo {
    align-items: center;
    background: linear-gradient(145deg, var(--sd-primary), #1e40af);
    border-radius: 0.7rem;
    color: #fff;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    height: 2.4rem;
    justify-content: center;
    letter-spacing: 0.05em;
    width: 2.4rem;
}

.brand__text {
    display: inline-flex;
    flex-direction: column;
    gap: 0.06rem;
}

.brand__title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.brand__subtitle {
    color: var(--sd-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    border-radius: 999px;
    color: #334155;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.42rem 0.8rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.menu a:hover,
.menu .current-menu-item > a,
.menu .current_page_item > a {
    background: #eff6ff;
    color: #1d4ed8;
}

.primary-nav {
    display: flex;
    justify-content: center;
}

.header-search {
    justify-self: end;
}

.header-search input {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #0f172a;
    font-size: 0.9rem;
    min-width: 16rem;
    padding: 0.55rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.hero {
    padding: 3rem 0 1rem;
}

.hero__title {
    font-size: clamp(1.8rem, 2.5vw, 2.3rem);
    line-height: 1.2;
    margin: 0;
}

.hero__description {
    color: #475569;
    font-size: 1.08rem;
    margin: 1rem 0 0;
    max-width: 48rem;
}

.systems {
    padding: 1rem 0 3.25rem;
}

.systems-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.system-card {
    background: var(--sd-surface);
    border: 1px solid var(--sd-border);
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.system-card::after {
    background: var(--sd-accent, var(--sd-primary));
    bottom: 0;
    content: "";
    height: 0.2rem;
    left: 0;
    position: absolute;
    right: 0;
}

.system-card:hover {
    box-shadow: var(--sd-shadow);
    transform: translateY(-4px);
}

.system-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
}

.system-card__trigger {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%;
}

.system-card__trigger:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--sd-accent, var(--sd-primary)) 35%, #ffffff);
    outline-offset: -3px;
}

.system-card__icon {
    align-items: center;
    background: color-mix(in srgb, var(--sd-accent, var(--sd-primary)) 16%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--sd-accent, var(--sd-primary)) 35%, #ffffff);
    border-radius: 0.8rem;
    color: color-mix(in srgb, var(--sd-accent, var(--sd-primary)) 90%, #000000);
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 700;
    height: 2.7rem;
    justify-content: center;
    width: 2.7rem;
}

.system-card__icon svg {
    display: block;
    height: 1.45rem;
    width: 1.45rem;
}

.system-card__title {
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0.95rem 0 0;
}

.system-card__subtitle {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0.4rem 0 0;
    text-transform: uppercase;
}

.system-card__description {
    color: #475569;
    font-size: 0.93rem;
    margin: 0.75rem 0 0;
}

.system-card__more {
    color: var(--sd-primary-dark);
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
    padding-top: 1rem;
}

body.kpi-modal-open {
    overflow: hidden;
}

.kpi-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1.5rem;
    position: fixed;
    z-index: 1000;
}

.kpi-modal[hidden] {
    display: none;
}

.kpi-modal__backdrop {
    backdrop-filter: blur(6px);
    background: rgba(15, 23, 42, 0.48);
    inset: 0;
    position: absolute;
}

.kpi-modal__dialog {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.5rem;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    max-height: min(90vh, 52rem);
    max-width: 50rem;
    overflow: auto;
    padding: 1.75rem;
    position: relative;
    width: min(100%, 50rem);
}

.kpi-modal__close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.8rem;
    height: 2.5rem;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 2.5rem;
}

.kpi-modal__close:hover,
.kpi-modal__close:focus-visible {
    background: rgba(148, 163, 184, 0.14);
    color: #0f172a;
    outline: none;
}

.kpi-modal__header {
    max-width: 38rem;
    padding-right: 3rem;
}

.kpi-modal__title {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
}

.kpi-modal__description {
    color: #64748b;
    font-size: 1rem;
    margin: 0.75rem 0 0;
}

.kpi-modal__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.6rem;
}

.kpi-option {
    border: 1px solid transparent;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 20rem;
    overflow: hidden;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kpi-option:hover {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    transform: translateY(-3px);
}

.kpi-option--pps {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.9));
    border-color: rgba(147, 197, 253, 0.75);
    color: #1d4ed8;
}

.kpi-option--aup {
    background: linear-gradient(180deg, rgba(250, 245, 255, 0.98), rgba(243, 232, 255, 0.92));
    border-color: rgba(216, 180, 254, 0.72);
    color: #9333ea;
}

.kpi-option__icon {
    align-items: center;
    background: currentColor;
    border-radius: 0.9rem;
    color: #ffffff;
    display: inline-flex;
    height: 3.3rem;
    justify-content: center;
    width: 3.3rem;
	display: none;
}

.kpi-option__icon svg {
    height: 1.6rem;
    width: 1.6rem;
}

.kpi-option__ghost {
    color: currentColor;
    opacity: 0.12;
    pointer-events: none;
    position: absolute;
    right: 1.2rem;
    top: 1.15rem;
}

.kpi-option__ghost svg {
    height: 5rem;
    width: 5rem;
}

.kpi-option__title {
    color: #0f172a;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-top: 0.35rem;
}

.kpi-option__subtitle {
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.45;
    max-width: 18rem;
    text-transform: uppercase;
	color: #737373;
}

.kpi-option__text {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 21rem;
}

.kpi-option__link {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: auto;
}

.kpi-modal__footer {
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    color: #64748b;
    font-size: 0.95rem;
    margin: 1.5rem 0 0;
    padding-top: 1.2rem;
    text-align: center;
}

.services {
    padding: 0 0 3.25rem;
}

.section-title-wrap {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.3rem;
    margin: 0;
}

.section-line {
    background: var(--sd-border);
    flex: 1;
    height: 1px;
}

.services-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.service-card {
    align-items: center;
    background: linear-gradient(145deg, #2563eb, #1e40af);
    border-radius: 0.95rem;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
    color: #fff;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: auto 1fr auto;
    padding: 0.95rem 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.3);
    transform: translateY(-3px);
}

.service-card__icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.6rem;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.service-card__title {
    font-size: 0.95rem;
    font-weight: 600;
}

.service-card__arrow {
    font-size: 1rem;
    opacity: 0.8;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--sd-border);
    margin-top: auto;
    padding: 1.8rem 0;
}

.site-footer__inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.site-footer__copy {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.footer-menu a {
    color: #64748b;
    font-size: 0.86rem;
    padding-inline: 0;
}

.footer-menu a:hover {
    background: transparent;
    color: #1e293b;
}

.not-found {
    align-items: center;
    display: flex;
    min-height: 60vh;
    text-align: center;
}

.not-found .container {
    width: min(40rem, calc(100% - 2rem));
}

.not-found__code {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
    margin: 0;
}

.not-found__title {
    color: #64748b;
    font-size: 1.15rem;
    margin: 0.75rem 0 1.5rem;
}

.not-found__link {
    background: var(--sd-primary);
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
}

.not-found__link:hover {
    background: var(--sd-primary-dark);
}

.content-area {
    padding: 2.5rem 0;
}

.entry {
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: 0.8rem;
    padding: 1rem;
}

.entry + .entry {
    margin-top: 1rem;
}

.entry__title {
    font-size: 1.25rem;
    margin: 0;
}

.entry__title a:hover {
    color: var(--sd-primary-dark);
}

.entry__content {
    color: #475569;
    margin-top: 0.75rem;
}

@media (min-width: 700px) {
    .systems-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1040px) {
    .systems-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .site-header__inner {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding-block: 0.8rem;
    }

    .primary-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .header-search {
        justify-self: stretch;
    }

    .header-search input {
        min-width: 100%;
        width: 100%;
    }

    .menu {
        flex-wrap: nowrap;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(1200px, calc(100% - 1.2rem));
    }

    .hero {
        padding-top: 2.2rem;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .menu {
        gap: 0.6rem;
    }

    .kpi-modal {
        padding: 0.85rem;
    }

    .kpi-modal__dialog {
        border-radius: 1.15rem;
        padding: 1.15rem;
    }

    .kpi-modal__header {
        padding-right: 2.5rem;
    }

    .kpi-modal__grid {
        grid-template-columns: 1fr;
    }

    .kpi-option {
        min-height: auto;
        padding: 1.2rem;
    }

    .kpi-option__title {
        font-size: 1.45rem;
    }

    .kpi-option__ghost svg {
        height: 4rem;
        width: 4rem;
    }
}
