@font-face {
    font-family: 'Roboto Slab Local';
    src: url('/assets/fonts/roboto-slab.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --font-head: 'Roboto Slab Local', 'Roboto Slab', Georgia, serif;
    --font-body: 'DM Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tr: 0.35s cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
    --bg: #080f1c;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-nav: rgba(8, 15, 28, 0.58);
    --border: rgba(255, 255, 255, 0.09);
    --border-hov: rgba(255, 255, 255, 0.22);
    --txt-1: #f0f4ff;
    --txt-2: #8b99b5;
    --txt-3: #4e5d78;
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-bdr: rgba(255, 255, 255, 0.13);
    --hero-img: url('../img/dark.jpg');
    --hero-ov: linear-gradient(160deg, rgba(8, 15, 28, 0.48) 0%, rgba(8, 15, 28, 0.80) 58%, rgba(8, 15, 28, 1) 100%);
    --tech-bg: rgba(255, 255, 255, 0.05);
    --icon-bg: rgba(249, 115, 22, 0.12);
    --toggle-track: rgba(255, 255, 255, 0.10);
    --accent-a: #f97316;
    --accent-b: #ec4899;
    --accent-grad: linear-gradient(135deg, #f97316, #ec4899);
    --glow-1: rgba(249, 115, 22, 0.20);
    --glow-2: rgba(236, 72, 153, 0.16);
}

[data-theme="light"] {
    --bg: #e8edf5;
    --bg-card: rgba(255, 255, 255, 0.60);
    --bg-nav: rgba(220, 228, 242, 0.52);
    --border: rgba(80, 110, 170, 0.14);
    --border-hov: rgba(80, 110, 170, 0.30);
    --txt-1: #373737;
    --txt-2: #4a5a78;
    --txt-3: #8898b8;
    --input-bg: rgba(255, 255, 255, 0.88);
    --input-bdr: rgba(80, 110, 170, 0.22);
    --hero-img: url('../img/light.jpg');
    --hero-ov: linear-gradient(160deg, rgba(210, 220, 238, 0.30) 0%, rgba(210, 220, 238, 0.65) 52%, rgba(232, 237, 245, 1) 100%);
    --tech-bg: rgba(255, 255, 255, 0.72);
    --icon-bg: rgba(37, 99, 235, 0.10);
    --toggle-track: rgba(0, 0, 0, 0.10);
    --accent-a: #2563eb;
    --accent-b: #7c3aed;
    --accent-grad: linear-gradient(135deg, #2563eb, #7c3aed);
    --glow-1: rgba(37, 99, 235, 0.18);
    --glow-2: rgba(124, 58, 237, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--txt-1);
    overflow-x: hidden;
    transition: background var(--tr), color var(--tr);
}

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

img {
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 0;
    pointer-events: none;
}
.nav-shell {
    width: min(1480px, calc(100% - 2rem));
    min-height: 66px;
    margin: 0 auto;
    padding: 0.62rem 0.85rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--bg-nav);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    pointer-events: auto;
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-head);
    font-weight: 650;
    color: var(--accent-a);
    white-space: nowrap;
}
.nav-brand-mark img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    flex-wrap: wrap;
}
.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.72rem 0.85rem;
    border-radius: 13px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--txt-2);
    transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
    color: var(--txt-1);
    background: var(--bg-card);
}
.nav-links a.active {
    color: var(--txt-1);
    background: var(--icon-bg);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
}
.nav-user-link {
    margin-left: 0.4rem;
}
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--txt-1);
}
.icon {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.theme-dark-only { display: none; }
[data-theme="dark"] .theme-dark-only { display: block; }
[data-theme="dark"] .theme-light-only { display: none; }
[data-theme="light"] .theme-light-only { display: block; }
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-ov);
    transition: background 0.5s;
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.038em;
}

.hero-title img {
    height: clamp(40px, 6vw, 85px);
    width: auto;
}

.glow-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--glow-1);
    border-radius: 50%;
    filter: blur(120px);
    top: 8%;
    left: 4%;

}

.glow-2 {
    position: absolute;
    width: 380px;
    height: 380px;
    background: var(--glow-2);
    border-radius: 50%;
    filter: blur(100px);
    bottom: 10%;
    right: 6%;

}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 0 1.5rem;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.038em;
    color: var(--txt-1);
    margin-bottom: 1.25rem;
}

.hero h1 span {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--txt-2);
    max-width: 520px;
    margin: 0 auto 2.25rem;
}

.btn-group {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.8rem 1.9rem;
    border-radius: 999px;
    background: var(--accent-grad);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.8rem 1.9rem;
    border-radius: 999px;
    background: transparent;
    color: var(--txt-1);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-hov);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-card);
    transform: translateY(-2px);
}

main > section {
    padding: 6rem 1.5rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-a);
    margin-bottom: 0.65rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--txt-1);
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--txt-2);
    max-width: 540px;
}

#about {
    background: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.about-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.about-img-wrap:hover img {
    transform: scale(1.01);
}

.about-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 110px;
    height: 110px;
    background: var(--accent-grad);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.45;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-top: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
    border-color: var(--border-hov);
    transform: translateY(-3px);
}

.stat-num {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 600;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--txt-2);
    margin-top: 0.15rem;
}

#services {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.services-header {
    margin-bottom: 3.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--border-hov);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.service-icon svg {
    width: 20px;
    height: 20px;
}

.service-card h4 {
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--txt-1);
    margin-bottom: 0.7rem;
}

.service-card p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--txt-2);
}

#tech {
    background: transparent;
}

.tech-header {
    margin-bottom: 3rem;
}

.tech-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tech-tab {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--txt-2);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.tech-tab:hover {
    border-color: var(--border-hov);
    color: var(--txt-1);
}

.tech-tab.active {
    background: var(--accent-grad);
    border-color: transparent;
    color: #fff;
}

.tech-panel {
    display: none;
}

.tech-panel.active {
    display: block;
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.875rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--tech-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    transition: border-color 0.25s, transform 0.25s;
    cursor: default;
}

.tech-item:hover {
    border-color: var(--accent-a);
    transform: translateY(-2px);
}

.tech-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-grad);
    flex-shrink: 0;
}

.tech-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--txt-1);
}

#contact {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-items {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.contact-icon svg {
    width: 16px;
    height: 16px;
}

.cil {
    font-size: 0.72rem;
    color: var(--txt-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}

.civ {
    font-size: 0.9rem;
    color: var(--txt-1);
}

.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
}

.contact-form h4 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--txt-1);
    margin-bottom: 0.35rem;
}

.form-sub {
    font-size: 0.875rem;
    color: var(--txt-2);
    margin-bottom: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    margin-bottom: 1rem;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--txt-2);
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
    background: var(--input-bg);
    border: 1px solid var(--input-bdr);
    border-radius: 10px;
    padding: 0.72rem 1rem;
    color: var(--txt-1);
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--txt-3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-a);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.10);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.55;
}

.form-submit {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.88rem;
    border-radius: 999px;
    background: var(--accent-grad);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.form-submit:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.form-success {
    display: none;
    text-align: center;
    padding: 1.25rem 0;
    color: var(--txt-2);
    font-size: 0.92rem;
}

footer {
    padding: 2.25rem 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--txt-3);
}

.theme-toggle-bar {
    padding: 1.4rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
}

.toggle-label {
    font-size: 0.78rem;
    color: var(--txt-3);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--toggle-track);
    border-radius: 999px;
    border: 1px solid var(--border);
    transition: background 0.3s;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-grad);
    transition: transform 0.3s;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked~.toggle-thumb {
    transform: translateX(24px);
}

.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width:900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-img-wrap {
        aspect-ratio: 16/7;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

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

    .hamburger {
        display: flex;
    }

    main > section {
        padding: 4rem 1.25rem;
    }

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

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

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .tech-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media(max-width:400px) {
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
}
.hero {
    --resolved-hero: var(--hero-light);
}
[data-theme="dark"] .hero,
[data-theme="dark"] .page-hero-image {
    --resolved-hero: var(--hero-dark);
}
[data-theme="light"] .hero,
[data-theme="light"] .page-hero-image {
    --resolved-hero: var(--hero-light);
}
.hero-bg,
.page-hero-bg {
    background-image: var(--resolved-hero, var(--hero-img));
}
.hero-title {
    margin-bottom: 1.25rem;
}
.hero-title img {
    flex: 0 0 auto;
}
.glow {
    pointer-events: none;
}
.editable-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.edit-chip,
.back-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-a);
}
.rich-copy {
    display: grid;
    gap: 0.85rem;
}
.rich-copy ul,
.rich-copy ol {
    padding-left: 1.25rem;
    color: var(--txt-2);
}
.about-img-contain {
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.about-img-contain img {
    object-fit: contain;
}
.service-card h2,
.service-card h3,
.service-card h4 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--txt-1);
    margin-bottom: 0.7rem;
}
.service-card p {
    margin: 0;
}
.card-eyebrow {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--accent-a);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.section-action {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.numbers-section {
    background: transparent;
}
.numbers-head {
    margin-bottom: 2rem;
}
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.number-card,
.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}
.region-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.region-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}
.region-map img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 55px rgba(0,0,0,0.12);
}
.region-note {
    margin-top: 1rem;
    color: var(--txt-2);
    font-size: 0.9rem;
}
.page-hero {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 8rem;
}
.page-hero-bg,
.page-hero-overlay {
    position: absolute;
    inset: 0;
}
.page-hero-bg {
    background-size: cover;
    background-position: center;
    opacity: 0.42;
}
.page-hero-overlay {
    background: var(--hero-ov);
}
.page-hero-content,
.service-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.page-hero-content.narrow,
.section-inner.narrow {
    max-width: 820px;
}
.page-title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--txt-1);
    margin-bottom: 1rem;
}
.service-hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}
.service-hero-icon {
    width: 130px;
    height: 130px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    background: var(--icon-bg);
    border: 1px solid var(--border);
}
.service-hero-icon .icon {
    width: 58px;
    height: 58px;
    color: var(--accent-a);
}
.btn-group.left {
    justify-content: flex-start;
    margin-top: 1.8rem;
}
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 4rem;
    align-items: start;
}
.article-copy {
    font-size: 1.02rem;
    line-height: 1.8;
}
.article-copy h2,
.article-copy h3 {
    font-family: var(--font-head);
    color: var(--txt-1);
    margin-top: 1rem;
}
.article-aside {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 1rem;
}
.aside-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.3rem;
}
.aside-card strong {
    display: block;
    margin-bottom: 0.7rem;
    font-family: var(--font-head);
}
.aside-card ul {
    color: var(--txt-2);
    padding-left: 1.1rem;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.value-card {
    display: grid;
    gap: 0.65rem;
}
.value-card > span,
.category-index {
    color: var(--accent-a);
    font-weight: 700;
}
.value-card h2,
.tech-category h2 {
    font-family: var(--font-head);
    color: var(--txt-1);
}
.value-card p {
    color: var(--txt-2);
}
.tech-catalog {
    display: grid;
    gap: 1.2rem;
}
.tech-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.4rem;
}
.tech-category-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.portfolio-card {
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
}
.portfolio-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}
.portfolio-images img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}
.portfolio-copy {
    display: grid;
    gap: 0.75rem;
    padding: 1.4rem;
}
.portfolio-copy p {
    color: var(--txt-2);
}
.tech-bubbles {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tech-bubbles span {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--tech-bg);
    border: 1px solid var(--border);
    font-size: 0.78rem;
}
.legal-page {
    min-height: 75vh;
    padding-top: 9rem !important;
}
.legal-copy {
    margin-top: 2rem;
    font-size: 1rem;
    line-height: 1.8;
}
.contact-form-shell .contact-form {
    width: 100%;
}
.check-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: start;
    margin-top: 0.9rem;
    color: var(--txt-2);
    font-size: 0.78rem;
}
.check-row input {
    margin-top: 0.2rem;
}
.check-row a {
    color: var(--accent-a);
}
.honeypot {
    position: absolute;
    left: -9999px;
}
.human-check {
    margin-top: 0.9rem;
}
.human-check-button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--input-bdr);
    background: var(--input-bg);
    color: var(--txt-1);
}
.human-check-box {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    border: 1px solid var(--border-hov);
}
.human-check.verified .human-check-box {
    background: var(--accent-grad);
    color: #fff;
}
.human-check-spinner {
    margin-left: auto;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--accent-a);
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.8s linear infinite;
}
.human-check.loading .human-check-spinner {
    opacity: 1;
}
@keyframes spin { to { transform: rotate(360deg); } }
.field-error,
.form-status {
    min-height: 1.2rem;
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: var(--txt-2);
}
.form-status.success { color: #36a46d; }
.form-status.error,
.field-error { color: #d45b5b; }
.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.78rem;
    color: var(--txt-3);
}
.footer-notification {
    border: 0;
    background: transparent;
    color: inherit;
}
.notification-panel {
    position: fixed;
    right: 1rem;
    top: 5.5rem;
    width: min(370px, calc(100% - 2rem));
    padding: 1rem;
    border-radius: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    z-index: 120;
}
.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}
.icon-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--txt-1);
}
.notification-list {
    display: grid;
    gap: 0.6rem;
}
.notification-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.notification-item span,
.notification-item time,
.muted {
    color: var(--txt-2);
    font-size: 0.8rem;
}
.empty-state {
    padding: 2rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--txt-2);
}
.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 200;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: var(--bg);
}
.auth-section,
.admin-page { padding: 8rem 0 4rem; }
.auth-intro { display: grid; gap: 1rem; align-content: center; }
.auth-security,
.back-link,
.edit-chip,
.text-link,
.mail-from,
.mail-subject,
.row-with-icon,
.card-heading,
.panel-heading,
.update-job-head,
.update-meta,
.user-card-head {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.back-link,
.edit-chip,
.text-link {
  color: var(--primary);
  font-weight: 700;
  width: fit-content;
}
.admin-container { display: grid; gap: 1.25rem; }
.admin-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.admin-list { display: grid; gap: .95rem; }
.admin-list-row,
.mail-row,
.session-item,
.security-row,
.timeline-row,
.slot-card,
.media-card,
.portfolio-card,
.update-job {
  padding: 1rem 1.15rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.admin-list-row,
.mail-row,
.security-row,
.session-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.mail-row.unread { border-color: rgba(234, 111, 63, 0.34); }
.filter-tabs {
  grid-auto-flow: column;
  justify-content: start;
  width: fit-content;
  background: var(--panel);
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.filter-tabs a {
  padding: .65rem 1rem;
  border-radius: 999px;
  color: var(--text-soft);
}
.filter-tabs a.active {
  background: rgba(234, 111, 63, 0.12);
  color: var(--text);
}
.role-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}
.role-user,
.status-badge.success { background: rgba(26, 153, 88, 0.14); color: #1a9958; }
.role-admin,
.status-queued,
.status-running { background: rgba(89, 109, 255, 0.14); color: var(--accent); }
.role-superadmin,
.status-completed { background: rgba(234, 111, 63, 0.14); color: var(--primary); }
.status-badge.failed,
.status-failed { background: rgba(215, 74, 74, 0.14); color: #d74a4a; }
.user-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.user-meta strong { display: block; }

.rich-editor,
.rich-toolbar,
.revision-content,
.message-body,
.legal-copy,
.article-copy,
.rich-copy {
  display: grid;
  gap: 1rem;
}
.rich-toolbar {
  grid-auto-flow: column;
  justify-content: start;
}
.rich-toolbar button {
  min-width: 44px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.rich-editor-area {
  min-height: 280px;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.revision-list details,
.danger-details,
details {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: .9rem 1rem;
  background: rgba(255, 255, 255, 0.03);
}
summary { cursor: pointer; font-weight: 700; }

.mail-list,
.update-list,
.timeline-list,
.notification-list { gap: .9rem; }
.mail-row { grid-template-columns: auto minmax(120px, 220px) 1fr auto; gap: 1rem; }
.mail-avatar,
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 111, 63, 0.16);
  color: var(--primary);
  font-weight: 800;
}
.message-body {
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  white-space: normal;
}
.inquiry-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.attachment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.attachment-grid a { overflow: hidden; border-radius: 18px; }
.attachment-grid img { width: 100%; height: 150px; object-fit: cover; }

.search-field {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 0 1rem;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.search-field input { border: 0; background: transparent; box-shadow: none; padding-left: 0; }

.settings-layout { align-items: start; }
.settings-section + .settings-section { margin-top: 1rem; }
.settings-grid { gap: 1rem; }
.settings-grid label span { display: grid; gap: .3rem; }
.sticky-save {
  position: sticky;
  bottom: 1rem;
  display: flex;
  justify-content: end;
  margin-top: 1rem;
}
.compact-dashboard-grid { grid-template-columns: 1fr; }
.theme-switch {
  grid-auto-flow: column;
  justify-content: start;
  background: rgba(255, 255, 255, 0.04);
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
}
.theme-option {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
}
.theme-option.active {
  background: rgba(234, 111, 63, 0.14);
  color: var(--text);
}
.footer-link-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

@media(max-width:1100px) {
    .nav-shell {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .nav-links {
        position: absolute;
        top: 74px;
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.7rem;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: 0 18px 50px rgba(0,0,0,0.15);
    }
    .nav-links.open { display: flex; }
    .nav-links a { justify-content: flex-start; }
    .region-grid,
    .article-layout,
    .service-hero-content {
        grid-template-columns: 1fr;
    }
    .article-aside { position: static; }
    .service-hero-icon { display: none; }
}
@media(max-width:900px) {
    .numbers-grid,
    .values-grid,
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
    .region-grid { gap: 2.5rem; }
}
@media(max-width:640px) {
    .nav-brand > span:last-child { display: none; }
    .nav-shell { width: calc(100% - 1rem); }
    .hero-title { flex-direction: column; gap: 0.3rem; }
    .numbers-grid,
    .values-grid,
    .portfolio-grid { grid-template-columns: 1fr; }
    .page-hero { min-height: 380px; }
    .footer-inner { align-items: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .fade-up { opacity: 1; transform: none; }
}

:root {
    --panel: var(--bg-card);
    --panel-strong: var(--bg);
    --line: var(--border);
    --line-strong: var(--border-hov);
    --text: var(--txt-1);
    --text-soft: var(--txt-2);
    --text-3: var(--txt-3);
    --primary: var(--accent-a);
    --accent: var(--accent-b);
    --radius: 20px;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.10);
}
.container {
    width: min(1200px, calc(100% - 2rem));
    margin-inline: auto;
}
.container.narrow,
.narrow-admin {
    width: min(840px, calc(100% - 2rem));
    margin-inline: auto;
}
.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-a);
    margin-bottom: 0.65rem;
}
.button,
a.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.72rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
    background: var(--accent-grad);
    color: #fff;
}
.button-ghost,
.button-secondary {
    background: transparent;
    color: var(--txt-1);
    border-color: var(--border-hov);
}
.button-danger {
    background: #c94d4d;
    color: #fff;
}
.button-small {
    min-height: 36px;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
}
.button-large {
    min-height: 50px;
    padding-inline: 1.55rem;
}
.auth-shell,
.admin-heading,
.dashboard-card-grid,
.admin-grid,
.metric-grid,
.user-grid,
.media-grid,
.slot-grid,
.settings-grid,
.form-grid,
.user-create-grid,
.stack-form,
.settings-form,
.inline-form,
.button-row,
.session-list,
.update-list,
.timeline-list,
.security-table,
.inquiry-meta,
.attachment-grid {
    display: grid;
    gap: 1rem;
}
.auth-shell,
.admin-grid.two-col,
.settings-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-grid.two,
.user-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}
.admin-heading h1,
.auth-intro h1 {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--txt-1);
}
.admin-heading p,
.auth-intro p {
    color: var(--txt-2);
}
.admin-card,
.auth-card,
.dashboard-card,
.metric-card,
.mail-preview-card,
.search-preview,
.notice {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.4rem;
    backdrop-filter: blur(12px);
}
.dashboard-card {
    display: grid;
    gap: 0.35rem;
    transition: border-color 0.2s, transform 0.2s;
}
.dashboard-card:hover {
    border-color: var(--border-hov);
    transform: translateY(-2px);
}
.dashboard-card strong,
.admin-card h2,
.metric-card strong {
    font-family: var(--font-head);
    color: var(--txt-1);
}
.dashboard-card span,
.dashboard-card small,
.metric-card span,
.search-preview span,
.search-preview p,
.mail-preview-card span,
.mail-preview-card p {
    color: var(--txt-2);
}
.metric-card strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 2rem;
}
.admin-list-row,
.mail-row,
.session-item,
.security-row,
.timeline-row,
.update-job {
    display: grid;
}
.admin-list-row,
.session-item,
.security-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}
.admin-list-row strong,
.admin-list-row span,
.session-item strong,
.session-item span,
.session-item small {
    display: block;
}
.admin-list-row span,
.session-item span,
.session-item small {
    color: var(--txt-2);
    font-size: 0.78rem;
}
.admin-page label,
.auth-card label {
    display: grid;
    gap: 0.42rem;
    color: var(--txt-2);
    font-size: 0.82rem;
    font-weight: 600;
}
.admin-page input,
.admin-page textarea,
.admin-page select,
.auth-card input,
.auth-card textarea,
.auth-card select {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--input-bdr);
    background: var(--input-bg);
    color: var(--txt-1);
    outline: none;
}
.admin-page input:focus,
.admin-page textarea:focus,
.admin-page select:focus,
.auth-card input:focus,
.auth-card textarea:focus,
.auth-card select:focus {
    border-color: var(--accent-a);
}
.admin-page textarea {
    resize: vertical;
}
.inline-form {
    grid-template-columns: 1fr 1fr 1.5fr auto;
    align-items: end;
}
.button-row {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
}
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
}
.search-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
}
.search-field input {
    border: 0;
    background: transparent;
    padding-left: 0;
}
.inbox-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
}
.mail-row {
    grid-template-columns: auto minmax(140px, 220px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}
.mail-avatar,
.avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--icon-bg);
    color: var(--accent-a);
    font-weight: 700;
}
.mail-from,
.mail-subject {
    display: grid;
    gap: 0.15rem;
}
.mail-from span,
.mail-subject span,
.mail-row time {
    color: var(--txt-2);
    font-size: 0.78rem;
}
.user-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}
.user-meta,
.inquiry-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.user-meta span,
.inquiry-meta span {
    color: var(--txt-2);
    font-size: 0.78rem;
}
.user-meta strong,
.inquiry-meta strong {
    display: block;
    color: var(--txt-1);
}
.slot-card,
.media-card {
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
}
.slot-preview,
.media-card > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    border-radius: 10px;
    background: var(--input-bg);
    margin-bottom: 0.8rem;
}
.compact-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.settings-grid {
    grid-template-columns: 1fr;
}
.setting-field.toggle-field {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}
.setting-field.toggle-field input {
    width: 20px;
    height: 20px;
}
.stack-column {
    display: grid;
    gap: 1rem;
}
.sticky-save {
    position: sticky;
    bottom: 1rem;
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}
.line-chart {
    width: 100%;
    min-height: 260px;
}
.password-strength {
    display: block;
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border);
}
.password-strength i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent-grad);
    transition: width 0.2s;
}
.rich-editor {
    display: grid;
    gap: 0.8rem;
}
.rich-toolbar {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.rich-toolbar button {
    min-width: 40px;
    min-height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--txt-1);
}
.rich-editor-area {
    min-height: 280px;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--input-bdr);
    background: var(--input-bg);
    color: var(--txt-1);
}
.message-body {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--txt-1);
}
.attachment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.attachment-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}
.progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border);
    margin: 0.8rem 0;
}
.progress-track i {
    display: block;
    height: 100%;
    background: var(--accent-grad);
}
.error-detail {
    white-space: pre-wrap;
    max-height: 240px;
    overflow: auto;
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(0,0,0,0.2);
    color: var(--txt-1);
}
.flash-stack,
.toast-stack {
    position: fixed;
    top: 5.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(700px, calc(100% - 2rem));
    display: grid;
    gap: 0.6rem;
    z-index: 150;
}
.flash,
.toast {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 14px 40px rgba(0,0,0,0.14);
}
@media(max-width:900px) {
    .dashboard-card-grid,
    .metric-grid,
    .media-grid,
    .slot-grid,
    .user-grid,
    .auth-shell,
    .admin-grid.two-col,
    .settings-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .inline-form {
        grid-template-columns: 1fr 1fr;
    }
}
@media(max-width:640px) {
    .dashboard-card-grid,
    .metric-grid,
    .media-grid,
    .slot-grid,
    .user-grid,
    .auth-shell,
    .admin-grid.two-col,
    .settings-layout,
    .form-grid.two,
    .user-create-grid,
    .inline-form,
    .inbox-search,
    .mail-row,
    .admin-heading,
    .user-meta,
    .inquiry-meta,
    .attachment-grid {
        grid-template-columns: 1fr;
    }
    .admin-heading {
        display: grid;
    }
    .button-row {
        grid-auto-flow: row;
        justify-content: stretch;
    }
}


/* v1.2.1 refinements */
.site-header {
    top: 0.65rem;
}
.nav-shell {
    backdrop-filter: blur(18px);
}
.hero-title img,
.about-img-wrap img,
.region-map img,
.portfolio-images img,
.media-card img,
.slot-preview img {
    background: transparent;
    border: 0;
}
.about-img-contain {
    background: transparent;
    border: 0;
    box-shadow: none;
}
.about-img-contain img {
    object-fit: cover;
}
.region-map img {
    border: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}
.human-check-button {
    justify-content: flex-start;
    cursor: pointer;
}
.human-check-box svg {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.human-check.verified .human-check-box svg {
    opacity: 1;
    transform: scale(1);
}
.human-check .field-error {
    margin-left: 0.2rem;
}
.tech-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.tech-card-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.tech-card-link,
.technology-card {
    text-decoration: none;
    color: inherit;
}
.tech-item-card,
.technology-card {
    align-items: flex-start;
    min-height: 100%;
    padding: 1.1rem 1.15rem;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tech-item-card:hover,
.technology-card:hover {
    border-color: var(--accent-a);
    transform: translateY(-3px);
    box-shadow: 0 14px 42px rgba(0,0,0,0.08);
}
.tech-icon,
.technology-card-icon,
.technology-hero-mark,
.tech-admin-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--tech-bg);
    color: var(--accent-a);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.tech-item-card strong,
.technology-card h3 {
    display: block;
    font-family: var(--font-head);
    color: var(--txt-1);
    margin-bottom: 0.4rem;
}
.tech-item-card span,
.technology-card p {
    font-size: 0.92rem;
    color: var(--txt-2);
    line-height: 1.6;
}
.tech-card-action {
    display: inline-flex;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-a);
}
.category-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--tech-bg);
    color: var(--accent-a);
    font-weight: 700;
}
.technology-hero-mark {
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
}
.public-detail-card,
.detail-side-card {
    display: grid;
    gap: 1rem;
}
.detail-facts {
    display: grid;
    gap: 0.85rem;
}
.detail-facts span {
    display: block;
    color: var(--txt-2);
    font-size: 0.8rem;
}
.detail-facts strong {
    color: var(--txt-1);
}
.stack-links {
    display: grid;
    gap: 0.65rem;
}
.stack-links a {
    color: var(--txt-1);
    text-decoration: none;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: var(--tech-bg);
    border: 1px solid var(--border);
}
.full-width {
    width: 100%;
}
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.top-tabs {
    margin-bottom: 1.4rem;
}
.secondary-tabs {
    margin-top: 1rem;
}
.admin-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}
.admin-tab.active {
    background: rgba(234, 111, 63, 0.14);
    border-color: rgba(234, 111, 63, 0.3);
}
.dashboard-account-layout {
    align-items: start;
}
.dashboard-cluster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.dashboard-cluster-card {
    display: grid;
    gap: 0.45rem;
    padding: 1.1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.dashboard-cluster-card:hover,
.dashboard-cluster-card.active {
    border-color: rgba(234, 111, 63, 0.34);
    transform: translateY(-2px);
}
.dashboard-cluster-card span,
.cluster-head p,
.cluster-tab-hint {
    color: var(--text-soft);
}
.clustered-admin-card {
    margin-top: 1rem;
}
.admin-list-row-rich {
    gap: 1rem;
    align-items: center;
}
.admin-list-leading {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}
.admin-list-leading > div {
    display: grid;
    gap: 0.2rem;
}
.admin-list-leading small {
    color: var(--text-soft);
}
.compact-stack-form {
    gap: 1rem;
}
.align-end {
    align-items: end;
}
.form-sub {
    color: var(--txt-2);
    margin-bottom: 1rem;
}
@media(max-width:900px) {
    .dashboard-account-layout,
    .region-grid {
        grid-template-columns: 1fr;
    }
}
@media(max-width:640px) {
    .site-header {
        top: 0.45rem;
    }
    .dashboard-cluster-grid,
    .tech-card-grid,
    .tech-card-grid-wide {
        grid-template-columns: 1fr;
    }
}

/* v1.2.2 – Verwaltung, Benutzerkonto und Branding */
.nav-user-menu {
    position: relative;
    justify-self: end;
    z-index: 130;
}
.nav-user-button {
    min-width: 205px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.48rem 0.68rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-nav);
    background: color-mix(in srgb, var(--bg-nav) 82%, transparent);
    color: var(--txt-1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.nav-user-button:hover,
.nav-user-button[aria-expanded="true"] {
    border-color: var(--border-hov);
    background: var(--bg-card);
}
.nav-user-avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent-grad);
    color: #fff;
    font-weight: 750;
    font-size: 0.78rem;
    box-shadow: 0 8px 22px var(--glow-1);
}
.nav-user-avatar.large {
    width: 46px;
    height: 46px;
    font-size: 0.9rem;
}
.nav-user-copy {
    min-width: 0;
    display: grid;
    gap: 0.05rem;
    text-align: left;
}
.nav-user-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
}
.nav-user-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--txt-2);
    font-size: 0.72rem;
}
.nav-user-chevron {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--txt-2);
    transition: transform 0.2s ease;
}
.nav-user-button[aria-expanded="true"] .nav-user-chevron {
    transform: rotate(180deg);
}
.nav-user-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(320px, calc(100vw - 2rem));
    padding: 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
}
.nav-user-panel-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: center;
    padding: 0.55rem 0.55rem 0.9rem;
    border-bottom: 1px solid var(--border);
}
.nav-user-panel-head div {
    display: grid;
    gap: 0.15rem;
}
.nav-user-panel-head span {
    color: var(--txt-2);
    font-size: 0.8rem;
}
.nav-user-panel-links {
    display: grid;
    gap: 0.3rem;
    padding: 0.6rem 0;
}
.nav-user-panel-links a,
.nav-user-logout button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.8rem;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--txt-1);
    text-align: left;
    font-weight: 550;
}
.nav-user-panel-links a:hover,
.nav-user-logout button:hover {
    background: var(--bg-card);
}
.nav-user-logout {
    padding-top: 0.55rem;
    border-top: 1px solid var(--border);
}
.nav-user-logout button {
    color: #d95a5a;
}

.management-page {
    min-height: 75vh;
    padding-top: 9rem;
}
.management-container {
    width: min(1220px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    gap: 1.15rem;
}
.management-title-block {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}
.management-title-block h1 {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--txt-1);
}
.management-title-block p {
    color: var(--txt-2);
}
.dashboard-title-block {
    margin-bottom: 1rem;
}
.dashboard-main-tabs,
.management-tabs {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.management-tab {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-hov);
    background: transparent;
    color: var(--txt-2);
    font-weight: 560;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.management-tab:hover {
    color: var(--txt-1);
    transform: translateY(-1px);
}
.management-tab.active {
    border-color: var(--border-hov);
    border-color: color-mix(in srgb, var(--accent-a) 55%, var(--border));
    background: var(--icon-bg);
    background: color-mix(in srgb, var(--accent-a) 12%, var(--bg-card));
    color: var(--txt-1);
}
.section-tabs {
    margin-bottom: 0.25rem;
}
.management-back {
    margin-top: 0;
    margin-bottom: 0.35rem;
}
.management-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.4rem;
}
.management-tile {
    min-height: 92px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.2rem;
    border-radius: 24px;
    border: 1px solid var(--border-hov);
    background: var(--bg-card);
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    color: var(--txt-1);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.management-tile:hover {
    transform: translateY(-2px);
    border-color: var(--border-hov);
    border-color: color-mix(in srgb, var(--accent-a) 40%, var(--border-hov));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.10);
}
.management-tile-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 1px solid var(--border);
    border-color: color-mix(in srgb, var(--accent-a) 25%, var(--border));
    background: var(--icon-bg);
    background: color-mix(in srgb, var(--accent-a) 12%, var(--bg-card));
    color: var(--accent-a);
}
.management-tile-icon .icon {
    width: 1.25rem;
    height: 1.25rem;
}
.management-tile-copy {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
}
.management-tile-copy strong {
    font-family: var(--font-head);
    font-size: 1.05rem;
}
.management-tile-copy small {
    color: var(--txt-2);
    font-size: 0.9rem;
    line-height: 1.45;
}
.management-tile-arrow {
    color: var(--txt-1);
}
.management-surface {
    border: 1px solid var(--border-hov);
    border-radius: 24px;
    background: var(--bg-card);
    background: color-mix(in srgb, var(--bg-card) 94%, transparent);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 1.35rem;
}
.surface-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}
.surface-heading h2 {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    color: var(--txt-1);
}
.surface-heading p {
    color: var(--txt-2);
    margin-top: 0.25rem;
}
.management-table-list,
.title-editor-list,
.activity-timeline,
.recent-login-list {
    display: grid;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}
.management-list-row,
.title-editor-row,
.activity-row,
.recent-login-row {
    display: grid;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-bottom: 1px solid var(--border);
    background: transparent;
}
.management-list-row:last-child,
.title-editor-row:last-child,
.activity-row:last-child,
.recent-login-row:last-child {
    border-bottom: 0;
}
.management-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
}
.management-list-row:hover {
    background: var(--bg-card);
}
.management-list-row > div,
.management-list-row .row-with-icon > div {
    display: grid;
    gap: 0.2rem;
}
.management-list-row span {
    color: var(--txt-2);
    font-size: 0.86rem;
}
.compact-management-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.activity-row {
    grid-template-columns: auto 1fr;
    align-items: start;
}
.activity-dot {
    width: 10px;
    height: 10px;
    margin-top: 0.42rem;
    border-radius: 999px;
    background: var(--accent-grad);
    box-shadow: 0 0 0 5px var(--icon-bg);
}
.activity-copy {
    display: grid;
    gap: 0.15rem;
}
.activity-copy span,
.activity-copy small {
    color: var(--txt-2);
}
.activity-copy small {
    font-size: 0.78rem;
}

.branding-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.branding-icon-card {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    background: color-mix(in srgb, var(--bg) 38%, transparent);
}
.branding-icon-card h3 {
    font-family: var(--font-head);
    color: var(--txt-1);
    margin-bottom: 0.35rem;
}
.branding-icon-card p {
    color: var(--txt-2);
}
.branding-preview {
    min-height: 180px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.branding-preview.light-preview {
    background: #f4f7fb;
}
.branding-preview.dark-preview {
    background: #0a1220;
}
.branding-preview img {
    width: 112px;
    height: 112px;
    object-fit: contain;
}
.file-select-row {
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px dashed var(--border-hov);
    color: var(--txt-2);
}
.branding-format-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: start;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: var(--bg-card);
    color: var(--txt-2);
}
.branding-format-note .icon {
    color: var(--accent-a);
    margin-top: 0.15rem;
}

.title-editor-surface + .title-editor-surface {
    margin-top: 0.4rem;
}
.title-editor-row {
    grid-template-columns: minmax(200px, 0.8fr) minmax(260px, 1.4fr) auto;
}
.title-editor-meta {
    display: grid;
    gap: 0.15rem;
}
.title-editor-meta span {
    color: var(--txt-2);
    font-size: 0.8rem;
}

.account-page {
    padding-top: 9rem;
}
.account-tabs {
    margin-bottom: 0.2rem;
}
.account-settings-card {
    max-width: 760px;
}
.account-password-form {
    max-width: 620px;
}
.session-list-modern {
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}
.session-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}
.session-row:last-child {
    border-bottom: 0;
}
.session-device-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--accent-a);
}
.session-main {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}
.session-main span,
.session-main small,
.recent-login-row span {
    color: var(--txt-2);
    font-size: 0.82rem;
}
.current-session-badge {
    display: inline-flex;
    margin-left: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(26, 153, 88, 0.14);
    color: #2bab6b !important;
    font-size: 0.72rem !important;
}
.recent-login-row {
    grid-template-columns: auto 1fr;
}
.recent-login-row > div {
    display: grid;
    gap: 0.15rem;
}
.user-position-label {
    display: inline-flex;
    margin-top: 0.2rem;
    color: var(--txt-2);
    font-size: 0.8rem;
}
.user-card-modern {
    display: grid;
    gap: 1rem;
}
.modern-user-create {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tech-card-grid.tech-count-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.tech-card-grid.tech-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tech-card-grid.tech-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tech-card-grid.tech-count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tech-card-grid.tech-count-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tech-card-grid.tech-count-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hero-bg,
.page-hero-bg {
    will-change: transform;
}

@media (max-width: 1220px) {
    .nav-user-button {
        min-width: 174px;
    }
    .nav-user-copy small {
        max-width: 100px;
    }
    .tech-card-grid.tech-count-5,
    .tech-card-grid.tech-count-4,
    .tech-card-grid.tech-count-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .nav-shell {
        grid-template-columns: auto 1fr auto;
    }
    .nav-brand { grid-column: 1; }
    .nav-user-menu { grid-column: 2; }
    .nav-toggle { grid-column: 3; }
    .nav-links {
        top: 78px;
    }
    .management-tile-grid,
    .compact-management-tiles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nav-user-button {
        min-width: 0;
        grid-template-columns: auto auto;
        padding: 0.42rem;
        border-radius: 15px;
    }
    .nav-user-copy {
        display: none;
    }
    .nav-user-chevron {
        width: 0.8rem;
        height: 0.8rem;
    }
    .management-title-block h1 {
        font-size: clamp(2.5rem, 12vw, 3.6rem);
    }
    .management-tile {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 1rem;
    }
    .branding-icon-grid,
    .modern-user-create {
        grid-template-columns: 1fr;
    }
    .title-editor-row {
        grid-template-columns: 1fr;
    }
    .session-row {
        grid-template-columns: auto 1fr;
    }
    .session-row form {
        grid-column: 1 / -1;
    }
    .tech-card-grid.tech-count-3,
    .tech-card-grid.tech-count-4,
    .tech-card-grid.tech-count-5,
    .tech-card-grid.tech-count-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .management-container {
        width: min(100% - 1rem, 1220px);
    }
    .management-tab {
        min-height: 42px;
        padding: 0.65rem 0.8rem;
        font-size: 0.85rem;
    }
    .management-tile {
        grid-template-columns: auto 1fr;
    }
    .management-tile-arrow {
        display: none;
    }
    .tech-card-grid.tech-count-2,
    .tech-card-grid.tech-count-3,
    .tech-card-grid.tech-count-4,
    .tech-card-grid.tech-count-5,
    .tech-card-grid.tech-count-6 {
        grid-template-columns: 1fr;
    }
}


/* v1.2.3 – Navigation, Rollen, Portfolio-Seiten und Technologie-Marken */
.nav-shell.nav-align-right .nav-links {
    justify-content: flex-end;
    justify-self: end;
}
.nav-shell.nav-align-left .nav-links {
    justify-content: flex-start;
    justify-self: start;
}
.nav-user-panel-links button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.8rem;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--txt-1);
    text-align: left;
    font: inherit;
    font-weight: 550;
    cursor: pointer;
}
.nav-user-panel-links button:hover {
    background: var(--bg-card);
}
.nav-user-panel-links button em {
    margin-left: auto;
    min-width: 1.5rem;
    min-height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.42rem;
    border-radius: 999px;
    background: var(--accent-grad);
    color: #fff;
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
}
.notification-panel {
    position: fixed;
    right: max(1rem, calc((100vw - 1480px) / 2));
    top: 5.8rem;
    z-index: 160;
}

.site-footer {
    padding: 2.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
}
.footer-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}
.footer-column {
    min-width: 0;
    display: grid;
    gap: 0.8rem;
}
.footer-column > strong {
    font-family: var(--font-head);
    color: var(--txt-1);
}
.footer-brand-column p {
    max-width: 360px;
    color: var(--txt-2);
    font-size: 0.9rem;
    line-height: 1.65;
}
.footer-brand-line {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-head);
    font-size: 1.05rem;
    color: var(--txt-1);
}
.footer-brand-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}
.footer-nav-column {
    justify-items: center;
    text-align: center;
}
.footer-link-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 0.5rem 1.2rem;
}
.footer-link-grid a {
    color: var(--txt-2);
    font-size: 0.88rem;
    transition: color 0.2s ease;
}
.footer-link-grid a:hover {
    color: var(--txt-1);
}
.footer-theme-column {
    justify-items: end;
    text-align: right;
}
.compact-theme-toggle {
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}
.footer-bottom-line {
    width: min(1180px, 100%);
    margin: 2rem auto 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--txt-2);
    font-size: 0.82rem;
}

.technology-brand-mark {
    --technology-icon: none;
    width: 48px;
    height: 48px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 14px;
    background: var(--accent-a);
    -webkit-mask-image: var(--technology-icon);
    mask-image: var(--technology-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 70%;
    mask-size: 70%;
}
.technology-brand-mark.large {
    width: 58px;
    height: 58px;
}
.technology-brand-mark.hero {
    width: 68px;
    height: 68px;
    margin-bottom: 1rem;
}
.technology-brand-mark.admin {
    width: 46px;
    height: 46px;
}
.tech-item-card .technology-brand-mark,
.technology-card .technology-brand-mark {
    align-self: flex-start;
}
.tech-item-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
}
.technology-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
}

.management-toolbar {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .nav-shell.nav-align-right .nav-links,
    .nav-shell.nav-align-left .nav-links {
        justify-self: stretch;
        justify-content: flex-start;
    }
    .footer-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-theme-column {
        grid-column: 1 / -1;
        justify-items: center;
        text-align: center;
    }
}
@media (max-width: 700px) {
    .footer-shell {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand-column,
    .footer-nav-column,
    .footer-theme-column {
        justify-items: center;
        text-align: center;
    }
    .footer-brand-line {
        justify-content: center;
    }
    .footer-brand-column p {
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    .tech-item-card,
    .technology-card {
        grid-template-columns: auto minmax(0, 1fr);
    }
}

/* v1.2.4 */
.tech-catalog-spacious {
    gap: 2.6rem;
}
.tech-catalog-spacious .tech-category {
    padding: 1.65rem;
}
.tech-item-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.tech-item-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--accent-grad);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
}
.tech-item-card:hover::before,
.tech-card-link:focus-visible .tech-item-card::before {
    opacity: 1;
}
.tech-item-card > * {
    position: relative;
    z-index: 1;
}

.compact-detail-hero {
    min-height: 360px;
}
.detail-title-row {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    width: 100%;
}
.detail-title-row .page-title {
    margin: 0;
}
.detail-title-icon,
.service-detail-mark {
    width: clamp(64px, 7vw, 86px);
    height: clamp(64px, 7vw, 86px);
    flex: 0 0 auto;
}
.service-detail-mark {
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--icon-bg);
    border: 1px solid var(--border);
    color: var(--accent-a);
}
.service-detail-mark .icon {
    width: 46%;
    height: 46%;
}
.detail-content-section {
    padding-top: 4.5rem;
}
.detail-copy-shell {
    max-width: 920px;
}
.detail-main-copy {
    font-size: 1.04rem;
    line-height: 1.85;
}
.detail-main-copy h2,
.detail-main-copy h3 {
    margin-top: 1.7rem;
}

.home-stat-editor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.home-stat-editor-card {
    position: relative;
    display: grid;
    gap: 0.9rem;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-card);
}
.editor-card-index {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent-grad);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}

.compact-slot-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.compact-slot-card,
.compact-media-card {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 0.8rem;
}
.media-preview-contain {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--input-bg);
    border-radius: 12px;
}
.media-preview-contain img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    border: 0;
    margin: 0;
}
.compact-slot-card .slot-preview {
    height: 150px;
    aspect-ratio: auto;
    margin: 0;
}
.compact-media-library {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.compact-media-card {
    padding: 0.85rem;
}
.media-library-preview {
    height: 150px;
}
.media-card-copy {
    min-width: 0;
    display: grid;
    gap: 0.28rem;
}
.media-card-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--txt-1);
}
.media-card-copy span {
    color: var(--txt-2);
    font-size: 0.78rem;
}
.media-card-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.media-usage-link {
    width: fit-content;
    color: var(--accent-a);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}
.media-usage-head {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
    margin-bottom: 1.8rem;
}
.media-usage-preview {
    height: 130px;
}
.media-usage-list {
    display: grid;
    gap: 0.75rem;
}
.media-usage-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--txt-1);
    text-decoration: none;
}
.media-usage-row small {
    display: block;
    color: var(--txt-2);
}
.usage-kind {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--tech-bg);
    color: var(--accent-a);
    font-size: 0.74rem;
    font-weight: 700;
}

.site-footer-minimal {
    padding: 2rem 1.5rem 1.2rem;
}
.footer-minimal-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    min-height: 64px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}
.footer-minimal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    width: fit-content;
    color: var(--txt-1);
    text-decoration: none;
    font-family: var(--font-head);
}
.footer-minimal-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}
.footer-minimal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}
.footer-minimal-links a {
    color: var(--txt-2);
    font-size: 0.88rem;
    text-decoration: none;
}
.footer-minimal-links a:hover {
    color: var(--txt-1);
}
.footer-theme-button {
    width: 44px;
    height: 44px;
    justify-self: end;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--txt-1);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-theme-button:hover {
    transform: translateY(-2px);
    border-color: var(--border-hov);
}
.footer-theme-button .icon {
    width: 19px;
    height: 19px;
}
.footer-bottom-line {
    width: min(1180px, 100%);
    margin: 1.25rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--txt-3);
    font-size: 0.78rem;
}

.analytics-surface {
    display: grid;
    gap: 1.35rem;
}
.analytics-metrics {
    margin-bottom: 0;
}
.interactive-chart-card,
.breakdown-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-card);
    padding: 1.25rem;
}
.line-chart-shell {
    position: relative;
    width: 100%;
    margin-top: 0.8rem;
}
.line-chart {
    width: 100%;
    min-height: 300px;
    display: block;
    cursor: crosshair;
}
.chart-tooltip {
    position: absolute;
    transform: translate(-50%, -100%);
    z-index: 10;
    min-width: 86px;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    border: 1px solid var(--border-hov);
    background: var(--bg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
    pointer-events: none;
    text-align: center;
}
.chart-tooltip strong,
.chart-tooltip span {
    display: block;
}
.chart-tooltip strong {
    color: var(--txt-1);
    font-family: var(--font-head);
    font-size: 1.05rem;
}
.chart-tooltip span {
    color: var(--txt-2);
    font-size: 0.72rem;
}
.analytics-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.analytics-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.donut-layout {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.donut-chart {
    width: 150px;
    height: 150px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--border);
}
.donut-chart::after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
}
.donut-center {
    position: relative;
    z-index: 1;
    display: grid;
    text-align: center;
}
.donut-center strong {
    font-family: var(--font-head);
    color: var(--txt-1);
    font-size: 1.35rem;
}
.donut-center span {
    color: var(--txt-2);
    font-size: 0.7rem;
}
.donut-legend {
    display: grid;
    gap: 0.55rem;
}
.donut-legend-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.55rem;
    color: var(--txt-2);
    font-size: 0.78rem;
}
.donut-legend-row i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.donut-legend-row strong {
    color: var(--txt-1);
}
.donut-legend-row small {
    color: var(--txt-3);
}
.rank-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}
.rank-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border-radius: 11px;
    background: var(--tech-bg);
}
.rank-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--txt-2);
    font-size: 0.8rem;
}
.rank-row strong {
    color: var(--txt-1);
}
:root {
    --chart-1: #f97316;
    --chart-2: #ec4899;
    --chart-3: #8b5cf6;
    --chart-4: #3b82f6;
    --chart-5: #06b6d4;
    --chart-6: #10b981;
    --chart-7: #eab308;
    --chart-8: #ef4444;
}
[data-theme="light"] {
    --chart-1: #3b82f6;
    --chart-2: #6366f1;
    --chart-3: #8b5cf6;
    --chart-4: #06b6d4;
    --chart-5: #10b981;
    --chart-6: #f59e0b;
    --chart-7: #ec4899;
    --chart-8: #64748b;
}
.chart-color-0 { background: var(--chart-1); }
.chart-color-1 { background: var(--chart-2); }
.chart-color-2 { background: var(--chart-3); }
.chart-color-3 { background: var(--chart-4); }
.chart-color-4 { background: var(--chart-5); }
.chart-color-5 { background: var(--chart-6); }
.chart-color-6 { background: var(--chart-7); }
.chart-color-7 { background: var(--chart-8); }

@media(max-width: 1000px) {
    .analytics-breakdown-grid {
        grid-template-columns: 1fr;
    }
    .home-stat-editor-grid {
        grid-template-columns: 1fr;
    }
}
@media(max-width: 760px) {
    .footer-minimal-shell {
        grid-template-columns: 1fr auto;
    }
    .footer-minimal-links {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }
    .footer-theme-button {
        grid-column: 2;
        grid-row: 1;
    }
    .analytics-detail-grid {
        grid-template-columns: 1fr;
    }
    .donut-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .donut-legend {
        width: 100%;
    }
    .media-usage-head {
        grid-template-columns: 1fr;
    }
    .media-usage-preview {
        max-width: 260px;
    }
    .detail-title-row {
        align-items: center;
        gap: 1rem;
    }
}

/* v1.3.0 – Keycloak SSO, Profilbilder und Freigabestatus */
.sso-probe {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  left: -9999px;
  top: -9999px;
}
.avatar-with-photo {
  position: relative;
  overflow: hidden;
}
.avatar-with-photo > span {
  position: relative;
  z-index: 1;
}
.avatar-with-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 2;
}
.avatar-with-photo img.is-broken {
  display: none;
}
.auth-status-wrap {
  min-height: 66vh;
  display: grid;
  align-items: center;
}
.keycloak-status-card {
  text-align: center;
  justify-items: center;
  gap: 1rem;
}
.status-orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--tech-bg);
  border: 1px solid var(--border);
  color: var(--accent-a);
}
.status-orb .icon {
  width: 26px;
  height: 26px;
}
.status-orb.denied,
.status-orb.error {
  color: #e35d6a;
}
.approval-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid var(--border);
}
.approval-status.pending {
  color: #d48a27;
  background: rgba(212, 138, 39, .12);
}
.approval-status.approved {
  color: #38a169;
  background: rgba(56, 161, 105, .12);
}
.approval-status.denied {
  color: #e35d6a;
  background: rgba(227, 93, 106, .12);
}
.user-card-modern.pending-user {
  border-color: rgba(212, 138, 39, .38);
}
.user-card-modern.denied-user {
  opacity: .82;
}
.approval-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}
.auth-source-badge {
  color: var(--txt-2);
  font-size: .78rem;
}
.account-identity-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}
.account-identity-card > div {
  display: grid;
  gap: .2rem;
}
.account-identity-card span,
.account-identity-card small {
  color: var(--txt-2);
}

/* v1.3.0 – Update-Oberfläche */
.update-uploader-modern .file-drop span {
  display: grid;
  gap: .25rem;
}
.update-uploader-modern .file-drop small {
  color: var(--txt-2);
  font-weight: 400;
}
.update-job-modern {
  display: grid;
  gap: 1rem;
}
.update-stage-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .5rem;
  position: relative;
}
.update-stage-track::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 9px;
  height: 2px;
  background: var(--border);
}
.update-stage {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .4rem;
  color: var(--txt-3);
  text-align: center;
}
.update-stage-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-hov);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.update-stage.completed,
.update-stage.active {
  color: var(--txt-1);
}
.update-stage.completed .update-stage-dot {
  background: var(--accent-a);
  border-color: var(--accent-a);
}
.update-stage.active .update-stage-dot {
  border-color: var(--accent-a);
  transform: scale(1.18);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-a) 18%, transparent);
}
.update-job-modern.failed .update-stage-dot {
  border-color: #e35d6a;
}
.update-progress-track i {
  transition: width .55s ease;
}
@media(max-width:700px) {
  .update-stage-track {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 1rem;
  }
  .update-stage-track::before { display:none; }
}


/* v1.3.1 – lokale Überschriftenschrift, kompakte Technologiekarten, Titelnavigation */
h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.section-title,
.management-title-block h1,
.surface-heading h2,
.tech-category-head h2,
.technology-card h3,
.tech-item-card strong,
.management-tile-copy strong,
.title-group-card strong {
    font-family: var(--font-head);
}

.tech-card-grid-wide {
    align-items: stretch;
    grid-auto-rows: 1fr;
}
.technology-card {
    height: 100%;
    min-height: 188px;
    max-height: 210px;
    overflow: hidden;
    align-content: start;
}
.technology-card-copy {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.technology-card-copy p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    margin-bottom: 0;
}
.technology-card .tech-card-action {
    margin-top: auto;
    padding-top: 0.8rem;
}

.title-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 1rem;
}
.title-group-card {
    min-height: 150px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--txt-1);
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.title-group-card:hover,
.title-group-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--border-hov);
    box-shadow: 0 14px 38px rgba(0,0,0,.08);
}
.title-group-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--tech-bg);
    color: var(--accent-a);
}
.title-group-card-icon .icon {
    width: 22px;
    height: 22px;
}
.title-group-card-copy {
    min-width: 0;
    display: grid;
    gap: .35rem;
}
.title-group-card-copy strong {
    font-size: 1.05rem;
}
.title-group-card-copy span {
    color: var(--txt-2);
    font-size: .82rem;
    line-height: 1.5;
}
.title-group-card-count {
    min-width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    padding: 0 .55rem;
    border-radius: 999px;
    background: var(--accent-grad);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
}
.title-editor-back {
    margin-bottom: 1rem;
}

@media (max-width: 760px) {
    .technology-card {
        min-height: 178px;
        max-height: 198px;
    }
    .title-group-card {
        min-height: 126px;
    }
}

.tech-card-link {
    height: 100%;
}
.tech-item-card {
    height: 100%;
    min-height: 126px;
    max-height: 146px;
    overflow: hidden;
}
.tech-item-card > div {
    min-width: 0;
    min-height: 0;
}
.tech-item-card span:not(.technology-brand-mark) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
