:root {
    --ink: #1f2933;
    --ink-2: #334155;
    --muted: #667085;
    --line: #e5e7eb;
    --line-strong: #d8dde5;
    --surface: #ffffff;
    --surface-soft: #f7f8fa;
    --surface-warm: #fbf8f8;
    --brand: #c9182b;
    --brand-dark: #9f1020;
    --brand-soft: #fbecef;
    --success: #138a64;
    --shadow-sm: 0 8px 28px rgba(20, 29, 40, 0.06);
    --shadow-md: 0 22px 70px rgba(20, 29, 40, 0.10);
    --radius: 18px;
    --container: 1240px;
    --header-h: 82px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
    font: inherit;
}

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

:focus-visible {
    outline: 3px solid rgba(201, 24, 43, 0.22);
    outline-offset: 3px;
}

.site-page {
    overflow: clip;
}

.site-container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.section-pad {
    padding: 88px 0;
}

.section-block {
    padding: 76px 0;
}

.section-muted {
    background: linear-gradient(180deg, #fafbfc 0%, #f7f8fa 100%);
    border-block: 1px solid #eff1f4;
}

.eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.17em;
    color: #667085;
}

.section-line {
    display: inline-block;
    width: 24px;
    height: 2px;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 999px;
    background: var(--brand);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.brand img {
    width: 248px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.desktop-nav a,
.footer-nav a {
    position: relative;
    color: #394150;
    font-size: 0.93rem;
    font-weight: 600;
    transition: color 180ms ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--brand);
    transition: width 180ms ease;
}

.desktop-nav a:hover,
.footer-nav a:hover {
    color: var(--ink);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.menu-button {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
}

.mobile-nav-inner {
    display: grid;
    padding-block: 12px 18px;
}

.mobile-nav a {
    padding: 12px 2px;
    border-bottom: 1px solid #f1f3f5;
    font-weight: 650;
}

/* Hero */
.hero {
    position: relative;
    background:
        radial-gradient(circle at 8% 50%, rgba(201, 24, 43, 0.045), transparent 23%),
        radial-gradient(circle at 94% 10%, rgba(31, 41, 51, 0.045), transparent 24%),
        linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: -220px;
    border-radius: 50%;
    border: 1px solid rgba(201, 24, 43, 0.08);
    box-shadow: 0 0 0 38px rgba(201, 24, 43, 0.018), 0 0 0 78px rgba(201, 24, 43, 0.014);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(520px, 1.04fr);
    gap: 72px;
    align-items: center;
}

.hero-copy h1 {
    margin: 16px 0 22px;
    max-width: 690px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 5vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.046em;
    font-weight: 650;
    color: #202733;
}

.hero-copy h1 .accent-text {
    display: block;
    color: var(--brand-dark);
}

.hero-lead {
    max-width: 660px;
    margin: 0;
    color: #586273;
    font-size: 1.08rem;
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    min-height: 50px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-dark {
    color: #fff;
    background: #202b36;
    border: 1px solid #202b36;
    box-shadow: 0 10px 26px rgba(32, 43, 54, 0.16);
}

.button-dark:hover {
    background: #18212a;
    box-shadow: 0 14px 30px rgba(32, 43, 54, 0.20);
}

.button-outline {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid #aeb6c1;
}

.button-outline:hover {
    border-color: #6b7280;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 27px;
    color: #586273;
    font-size: 0.91rem;
    font-weight: 600;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.hero-points i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(201, 24, 43, 0.08);
}

.hero-visual {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.dashboard-shell {
    width: calc(100% - 52px);
    min-height: 470px;
    display: grid;
    grid-template-columns: 128px 1fr;
    overflow: hidden;
    border: 1px solid #e6e9ee;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.dashboard-sidebar {
    padding: 22px 14px;
    color: #cfd5dd;
    background: linear-gradient(180deg, #27323d, #1e2832);
}

.dashboard-sidebar img {
    width: 36px;
    margin: 0 0 24px 6px;
    filter: brightness(0) invert(1);
    opacity: 0.94;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    margin-bottom: 4px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 650;
}

.dash-nav-item span {
    width: 17px;
    color: #94a1af;
}

.dash-nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.dashboard-main {
    min-width: 0;
    padding: 18px 20px 20px;
    background: #fbfcfd;
}

.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.dash-search {
    flex: 1;
    max-width: 300px;
    padding: 10px 14px;
    color: #9ba3ad;
    background: #f2f4f7;
    border: 1px solid #eceff3;
    border-radius: 10px;
    font-size: 0.7rem;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4d5968;
    font-size: 0.72rem;
    font-weight: 700;
}

.avatar-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e6e9ed, #cdd4dc);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e0e4e9;
}

.dash-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.dash-kicker {
    color: #8e98a5;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.dash-title-row h2 {
    margin: 3px 0 0;
    font-size: 1.25rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    color: #4b635c;
    background: #f2f7f5;
    border: 1px solid #e1eee9;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 750;
}

.status-pill span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.stat-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e9edf1;
    border-radius: 13px;
    background: #fff;
}

.stat-icon {
    display: block;
    margin-bottom: 3px;
    color: var(--brand);
    font-size: 0.86rem;
}

.stat-icon.neutral {
    color: #728091;
}

.stat-card strong,
.stat-card small {
    display: block;
}

.stat-card strong {
    font-size: 1.02rem;
}

.stat-card small {
    margin-top: 2px;
    overflow: hidden;
    color: #8b95a2;
    font-size: 0.54rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chart-card {
    margin-top: 12px;
    padding: 13px 14px 0;
    overflow: hidden;
    border: 1px solid #e9edf1;
    border-radius: 14px;
    background: #fff;
}

.chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chart-head strong,
.chart-head small {
    display: block;
}

.chart-head strong {
    font-size: 0.75rem;
}

.chart-head small {
    margin-top: 2px;
    color: #909aa6;
    font-size: 0.56rem;
}

.chart-head > span {
    padding: 5px 8px;
    color: #7e8995;
    background: #f7f8fa;
    border-radius: 8px;
    font-size: 0.58rem;
}

.line-chart {
    width: 100%;
    height: 152px;
    margin-top: 8px;
}

.grid-line {
    stroke: #edf0f3;
    stroke-width: 1;
}

.chart-area {
    fill: url(#chartFill);
}

.chart-line {
    fill: none;
    stroke: var(--brand);
    stroke-width: 3;
    stroke-linecap: round;
}

.mobile-status-card {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 168px;
    min-height: 350px;
    padding: 12px 12px 14px;
    border: 5px solid #fff;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 54px rgba(20, 29, 40, 0.16);
}

.mobile-notch {
    width: 48px;
    height: 5px;
    margin: -4px auto 10px;
    border-radius: 999px;
    background: #20262e;
}

.mobile-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.64rem;
}

.mobile-title-row span {
    color: var(--success);
    font-size: 0.52rem;
    font-weight: 800;
}

.mini-map {
    position: relative;
    height: 112px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 13px;
    background:
        linear-gradient(25deg, transparent 47%, #dce6df 48% 51%, transparent 52%),
        linear-gradient(120deg, transparent 47%, #dce6df 48% 51%, transparent 52%),
        #f1f5f2;
}

.map-road {
    position: absolute;
    width: 180px;
    height: 7px;
    border-radius: 999px;
    background: #fff;
}

.road-a { transform: rotate(28deg); left: -22px; top: 48px; }
.road-b { transform: rotate(-34deg); left: 20px; top: 64px; }

.map-pin {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50% 50% 50% 0;
    background: var(--brand);
    transform: rotate(-45deg);
    box-shadow: 0 2px 7px rgba(159, 16, 32, 0.24);
}

.map-pin::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    left: 4px;
    top: 4px;
    border-radius: 50%;
    background: #fff;
}

.pin-one { left: 30px; top: 28px; }
.pin-two { right: 25px; top: 42px; }
.pin-three { left: 78px; bottom: 20px; }

.mobile-stat {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 8px;
    align-items: center;
    padding: 11px 2px;
    border-bottom: 1px solid #eff1f4;
}

.mobile-stat:last-child {
    border-bottom: 0;
}

.mobile-stat strong {
    font-size: 0.96rem;
}

.mobile-stat span {
    font-size: 0.58rem;
    font-weight: 700;
}

.mobile-stat small {
    display: block;
    margin-top: 2px;
    color: #8c96a2;
    font-size: 0.52rem;
    font-weight: 500;
}

/* Sections */
.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 70px;
    align-items: end;
    margin-bottom: 34px;
}

.section-heading.compact {
    grid-template-columns: 1fr;
}

.section-heading h2 {
    max-width: 760px;
    margin: 10px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 600;
}

.section-heading > p {
    margin: 0 0 4px;
    color: #697383;
    line-height: 1.7;
}

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

.service-card {
    min-height: 178px;
    padding: 28px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    align-items: start;
    border: 1px solid #e5e9ee;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 41, 51, 0.035);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-2px);
    border-color: #d9dee5;
    box-shadow: 0 16px 34px rgba(31, 41, 51, 0.07);
}

.icon-disc {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.35rem;
    font-weight: 800;
}

.icon-disc.charcoal {
    color: #33404d;
    background: #f0f3f5;
}

.icon-disc.red {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.service-card h3,
.project-card h3 {
    margin: 1px 0 8px;
    font-size: 1.08rem;
}

.service-card p,
.project-card p {
    margin: 0;
    color: #697383;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    padding: 22px;
    min-width: 0;
    border: 1px solid #e3e7ec;
    border-radius: var(--radius);
    background: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.project-icon {
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 900;
}

.project-icon.medical {
    font-size: 1.3rem;
}

.project-tag {
    padding: 5px 8px;
    color: #5e6876;
    background: #f4f5f7;
    border: 1px solid #eaedf1;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 750;
}

.project-card p {
    min-height: 104px;
    font-size: 0.92rem;
}

.project-card img {
    width: 100%;
    height: 150px;
    margin-top: 18px;
    object-fit: cover;
    border: 1px solid #edf0f3;
    border-radius: 12px;
    background: #f7f8fa;
}

.technology-section {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.technology-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 36px;
    align-items: center;
}

.technology-title {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.technology-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-pill {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    color: #4f5967;
    background: #fafbfc;
    border: 1px solid #e7eaee;
    border-radius: 999px;
    font-size: 0.81rem;
}

.tech-pill b {
    font-weight: 700;
}

/* Contact */
.contact-section {
    background:
        radial-gradient(circle at 12% 90%, rgba(201, 24, 43, 0.045), transparent 30%),
        linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
    gap: 70px;
    align-items: start;
}

.contact-copy h2 {
    max-width: 580px;
    margin: 13px 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 600;
}

.contact-copy > p {
    max-width: 540px;
    color: #667181;
    font-size: 1.02rem;
    line-height: 1.72;
}

.contact-direct {
    margin-top: 36px;
    display: grid;
    gap: 5px;
}

.contact-direct span {
    color: #88929f;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-direct a {
    width: fit-content;
    color: #202b36;
    font-size: 1.18rem;
    font-weight: 800;
    border-bottom: 1px solid #b9c0c8;
}

.contact-note {
    max-width: 520px;
    margin-top: 38px;
    padding-top: 20px;
    display: grid;
    gap: 4px;
    border-top: 1px solid #e4e7eb;
    color: #65707e;
    font-size: 0.92rem;
}

.contact-note strong {
    color: #303b47;
}

.contact-form-card {
    padding: 30px;
    border: 1px solid #e1e5ea;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.form-row.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    margin-bottom: 17px;
}

.form-field label {
    display: flex;
    gap: 5px;
    margin-bottom: 7px;
    color: #394452;
    font-size: 0.82rem;
    font-weight: 700;
}

.form-field label span {
    color: #929ba6;
    font-weight: 500;
}

.contact-form-card .rz-textbox,
.contact-form-card .rz-textarea {
    width: 100%;
    color: #27323d;
    border: 1px solid #dce1e7;
    border-radius: 11px;
    background: #fbfcfd;
    box-shadow: none;
}

.contact-form-card .rz-textbox {
    min-height: 46px;
    padding-inline: 13px;
}

.contact-form-card .rz-textarea {
    min-height: 138px;
    padding: 12px 13px;
    resize: vertical;
}

.contact-form-card .rz-textbox:focus,
.contact-form-card .rz-textarea:focus {
    border-color: #9ca6b1;
    box-shadow: 0 0 0 3px rgba(31, 41, 51, 0.055);
}

.validation-message {
    display: block;
    margin-top: 5px;
    color: #b42318;
    font-size: 0.76rem;
}

.hp-wrap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.turnstile-host {
    min-height: 1px;
    margin: 0 0 12px;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 8px;
}

.privacy-note {
    max-width: 330px;
    color: #88919c;
    font-size: 0.76rem;
}

.contact-submit.rz-button {
    min-height: 48px;
    padding: 0 20px;
    color: #fff;
    background: #202b36;
    border: 1px solid #202b36;
    border-radius: 11px;
    box-shadow: none;
    font-weight: 750;
}

.contact-submit.rz-button:hover {
    background: #18212a;
}

.form-status {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 650;
}

.form-status.success {
    color: #126348;
    background: #eef8f4;
    border: 1px solid #d5eee5;
}

.form-status.error {
    color: #8d1d1d;
    background: #fff3f3;
    border: 1px solid #f3d7d7;
}

/* Footer */
.site-footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.footer-brand img {
    width: 214px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    object-position: left center;
}

.footer-brand p {
    margin: 10px 0 0;
    color: #7d8794;
    font-size: 0.82rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.footer-nav a {
    font-size: 0.82rem;
}

.footer-contact {
    justify-self: end;
    display: grid;
    justify-items: end;
    gap: 4px;
    color: #65707e;
    font-size: 0.82rem;
}

.footer-contact a {
    color: #26313d;
    font-weight: 700;
}

.footer-contact small {
    color: #9aa2ac;
}

.not-found-page {
    min-height: 70vh;
    padding: 110px 20px;
    text-align: center;
}

.not-found-page h1 {
    margin: 10px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.not-found-page p {
    margin: 0 0 28px;
    color: var(--muted);
}

/* Tablet */
@media (max-width: 1120px) {
    :root {
        --container: 980px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-copy {
        max-width: 820px;
    }

    .hero-copy h1 {
        max-width: 820px;
        font-size: clamp(3.2rem, 7vw, 5.4rem);
    }

    .hero-visual {
        max-width: 900px;
        width: 100%;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: unset;
    }

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

    .project-card p {
        min-height: 78px;
    }

    .technology-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .contact-copy {
        max-width: 760px;
    }
}

@media (max-width: 860px) {
    :root {
        --header-h: 72px;
    }

    .site-container {
        width: min(calc(100% - 30px), var(--container));
    }

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: flex;
    }

    .mobile-nav.open {
        display: block;
    }

    .brand img {
        width: 208px;
        max-height: 50px;
    }

    .section-pad {
        padding: 68px 0;
    }

    .section-block {
        padding: 62px 0;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-shell {
        width: calc(100% - 34px);
        grid-template-columns: 105px 1fr;
    }

    .dashboard-sidebar {
        padding-inline: 10px;
    }

    .dash-nav-item {
        gap: 7px;
        padding-inline: 7px;
        font-size: 0.64rem;
    }

    .mobile-status-card {
        width: 152px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-nav {
        display: none;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .site-container {
        width: min(calc(100% - 24px), var(--container));
    }

    .header-inner {
        gap: 14px;
    }

    .brand img {
        width: 176px;
        max-height: 45px;
    }

    .menu-button {
        width: 42px;
        height: 42px;
    }

    .hero {
        padding-top: 54px;
    }

    .hero-copy h1 {
        margin-top: 12px;
        font-size: clamp(2.65rem, 12vw, 4.1rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .hero-points {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-visual {
        min-height: 430px;
        align-items: flex-start;
    }

    .dashboard-shell {
        width: 100%;
        min-height: 390px;
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-main {
        padding: 16px;
    }

    .dash-search {
        max-width: 190px;
    }

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

    .chart-card {
        padding-inline: 10px;
    }

    .line-chart {
        height: 128px;
    }

    .mobile-status-card {
        display: none;
    }

    .section-heading h2 {
        font-size: 2.25rem;
    }

    .service-card {
        padding: 22px;
        grid-template-columns: 46px 1fr;
    }

    .icon-disc {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card p {
        min-height: 0;
    }

    .project-card img {
        height: 175px;
    }

    .technology-list {
        gap: 8px;
    }

    .tech-pill {
        min-height: 36px;
        padding-inline: 12px;
    }

    .contact-copy h2 {
        font-size: 2.6rem;
    }

    .contact-form-card {
        padding: 20px;
        border-radius: 16px;
    }

    .form-row.two-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-submit.rz-button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-contact {
        justify-self: start;
        justify-items: start;
    }
}

@media (max-width: 390px) {
    .brand img {
        width: 160px;
    }

    .hero-copy h1 {
        font-size: 2.45rem;
    }

    .dash-user {
        display: none;
    }

    .dash-search {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 2026 visual asset refresh */
.hero-image-visual {
    min-height: 500px;
    align-items: center;
    justify-content: center;
}

.hero-mockup-frame {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #e2e7ec;
    border-radius: 26px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 28px 80px rgba(20,29,40,.13);
}

.hero-mockup-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 38%);
}

.hero-mockup-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 485 / 415;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
}

.project-card img {
    height: 165px;
    border-radius: 14px;
    transition: transform 260ms ease;
}

.project-card:hover img {
    transform: scale(1.015);
}

.technology-list {
    gap: 12px;
}

.tech-pill {
    gap: 9px;
    min-height: 46px;
    padding: 0 15px 0 10px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(31,41,51,.035);
}

.tech-pill img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 28px;
}

@media (max-width: 1080px) {
    .hero-image-visual {
        min-height: auto;
    }

    .hero-mockup-frame {
        max-width: 720px;
        margin: 12px auto 0;
    }
}

@media (max-width: 640px) {
    .hero-mockup-frame {
        padding: 8px;
        border-radius: 18px;
    }

    .hero-mockup-frame img {
        border-radius: 12px;
    }

    .project-card img {
        height: 190px;
    }

    .technology-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        width: 100%;
    }

    .tech-pill {
        width: 100%;
        justify-content: flex-start;
    }
}

/* EmBRACE / EU supported smart-board project */
.embrace-section {
    position: relative;
    overflow: hidden;
    border-top: 1px solid #edf0f3;
    background:
        radial-gradient(circle at 92% 12%, rgba(31, 181, 165, .08), transparent 24%),
        radial-gradient(circle at 4% 90%, rgba(13, 90, 167, .065), transparent 26%),
        #fff;
}

.embrace-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #0d5aa7 0 62%, #1fb5a5 62% 100%);
}

.embrace-grid {
    display: grid;
    grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
    gap: 70px;
    align-items: center;
}

.embrace-poster-wrap {
    min-width: 0;
}

.embrace-poster-link {
    display: block;
    overflow: hidden;
    border: 1px solid #dde3e9;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(31, 41, 51, .13);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.embrace-poster-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 78px rgba(31, 41, 51, .16);
}

.embrace-poster-link img {
    width: 100%;
    height: auto;
    aspect-ratio: 1448 / 2048;
    object-fit: contain;
    background: #fff;
}

.poster-full-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    color: #536071;
    font-size: .82rem;
    font-weight: 700;
    border-bottom: 1px solid #cbd2da;
}

.embrace-program-mark {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 8px 12px;
    color: #0d5aa7;
    border: 1px solid #d7e4f2;
    border-radius: 999px;
    background: #f4f8fc;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.eu-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1fb5a5;
    box-shadow: 0 0 0 4px rgba(31, 181, 165, .11);
}

.embrace-copy > h2 {
    max-width: 720px;
    margin: 12px 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.55rem, 4.2vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.042em;
    font-weight: 600;
    color: #202733;
}

.embrace-lead {
    max-width: 760px;
    margin: 0;
    color: #586273;
    font-size: 1.05rem;
    line-height: 1.74;
}

.smartboard-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 30px;
}

.smartboard-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    color: #3c4a59;
    border: 1px solid #e0e5ea;
    border-radius: 999px;
    background: #fff;
    font-size: .8rem;
    font-weight: 700;
}

.smartboard-points span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1fb5a5;
}

.embrace-info-card {
    padding: 26px 28px;
    border: 1px solid #dfe5eb;
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 12px 34px rgba(31, 41, 51, .055);
}

.embrace-info-card .eyebrow {
    color: #0d5aa7;
}

.embrace-info-card h3 {
    margin: 9px 0 13px;
    font-size: 1.22rem;
    line-height: 1.35;
}

.embrace-info-card p {
    margin: 0 0 13px;
    color: #65707e;
    line-height: 1.68;
    font-size: .92rem;
}

.embrace-info-card p strong {
    color: #344150;
}

.embrace-support-note {
    margin: 18px 0 14px;
    padding: 14px 16px;
    color: #154d5c;
    border-left: 3px solid #1fb5a5;
    border-radius: 0 10px 10px 0;
    background: #f0faf8;
    font-size: .92rem;
    font-weight: 800;
}

.embrace-info-card .embrace-funding-note {
    margin-bottom: 0;
    color: #718096;
    font-size: .8rem;
}

.embrace-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #e8ebef;
}

.embrace-links a {
    color: #0d5aa7;
    font-size: .82rem;
    font-weight: 800;
}

.embrace-links a:hover,
.poster-full-link:hover {
    color: #093f76;
}

@media (max-width: 1120px) {
    .embrace-grid {
        grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
        gap: 44px;
    }
}

@media (max-width: 860px) {
    .embrace-grid {
        grid-template-columns: 1fr;
    }

    .embrace-poster-wrap {
        width: min(100%, 560px);
        margin: 0 auto;
    }

    .embrace-copy {
        max-width: 760px;
    }
}

@media (max-width: 640px) {
    .embrace-section {
        padding-block: 62px;
    }

    .embrace-grid {
        gap: 34px;
    }

    .embrace-poster-link {
        border-radius: 14px;
    }

    .embrace-copy > h2 {
        font-size: clamp(2.35rem, 11vw, 3.35rem);
    }

    .smartboard-points {
        display: grid;
        grid-template-columns: 1fr;
    }

    .smartboard-points span {
        width: 100%;
        border-radius: 11px;
    }

    .embrace-info-card {
        padding: 21px;
        border-radius: 15px;
    }

    .embrace-links {
        display: grid;
    }
}

.smartboard-project-feature {
    min-height: 132px;
    margin-bottom: 18px;
    padding: 24px 26px;
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 20px;
    align-items: center;
    border: 1px solid #dde4ea;
    border-radius: var(--radius);
    background:
        linear-gradient(100deg, rgba(13, 90, 167, .045), transparent 42%),
        #fff;
    box-shadow: 0 10px 30px rgba(31, 41, 51, .035);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.smartboard-project-feature:hover {
    transform: translateY(-2px);
    border-color: #ccd6df;
    box-shadow: 0 16px 36px rgba(31, 41, 51, .075);
}

.smartboard-project-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(145deg, #233244, #0d5aa7);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow: 0 10px 24px rgba(13, 90, 167, .18);
}

.smartboard-project-copy h3 {
    margin: 8px 0 5px;
    font-size: 1.22rem;
}

.smartboard-project-copy p {
    margin: 0;
    color: #697383;
    font-size: .92rem;
}

.smartboard-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.smartboard-project-meta span {
    padding: 4px 8px;
    color: #536071;
    border: 1px solid #e2e7ec;
    border-radius: 999px;
    background: #f8fafb;
    font-size: .64rem;
    font-weight: 800;
}

.smartboard-project-meta span:last-child {
    color: #0d5aa7;
    border-color: #d9e6f2;
    background: #f4f8fc;
}

.smartboard-project-arrow {
    color: #0d5aa7;
    font-size: 1.45rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    .smartboard-project-feature {
        grid-template-columns: 50px 1fr;
        gap: 14px;
        padding: 20px;
    }

    .smartboard-project-icon {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }

    .smartboard-project-arrow {
        display: none;
    }
}

/* EmBRACE partner banner */
.embrace-banner-link {
    display: block;
    width: min(100%, 648px);
    margin: 20px 0 16px;
    padding: 12px 14px;
    border: 1px solid #dfe5eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 41, 51, .05);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.embrace-banner-link:hover {
    transform: translateY(-2px);
    border-color: #cbd7e3;
    box-shadow: 0 12px 30px rgba(31, 41, 51, .08);
}

.embrace-banner-link img {
    display: block;
    width: 100%;
    height: auto;
}

.embrace-info-card .embrace-partners {
    margin: 0 0 16px;
    color: #65707e;
}

.embrace-partners a {
    color: #0d5aa7;
    font-weight: 800;
    text-decoration: none;
}

.embrace-partners a:hover {
    color: #093f76;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .embrace-banner-link {
        margin-top: 18px;
        padding: 9px 10px;
        border-radius: 11px;
    }
}

/* Programmatic heading focus from Blazor FocusOnNavigate should not render a visual box. */
.hero-copy h1:focus,
.hero-copy h1:focus-visible,
.not-found-page h1:focus,
.not-found-page h1:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Language selector. SR is the default on the local-language page. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.language-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.language-select {
    min-width: 62px;
    height: 34px;
    padding: 0 28px 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink);
    background-color: #fff;
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1;
    cursor: pointer;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    appearance: auto;
}

.language-select:hover {
    border-color: rgba(201, 24, 43, .38);
    background-color: var(--brand-soft);
}

.language-select:focus,
.language-select:focus-visible {
    border-color: rgba(201, 24, 43, .48);
    box-shadow: 0 0 0 3px rgba(201, 24, 43, .09);
}

.mobile-language-selector {
    width: fit-content;
    margin-top: 8px;
}

.mobile-language-selector .language-select {
    min-width: 86px;
    height: 40px;
    font-size: .82rem;
}

.footer-language-selector .language-select {
    min-width: 58px;
    height: 30px;
    padding-left: 10px;
    padding-right: 24px;
    font-size: .72rem;
}

@media (max-width: 640px) {
    .footer-language-selector .language-select {
        height: 36px;
        min-width: 76px;
    }
}
