/* ============================================================
   DELTAPLAN CZ — Landing Page Styles
   Corporate color: #00AEEF
   ============================================================ */

:root {
    --clr-accent: #00AEEF;
    --clr-accent-rgb: 0, 174, 239;
    --clr-accent-hover: #0099d6;
    --clr-accent-glow: rgba(0, 174, 239, 0.35);
    --clr-accent-subtle: rgba(0, 174, 239, 0.08);

    --clr-bg: #060b14;
    --clr-bg-alt: #0a101e;
    --clr-bg-card: #0e1424;
    --clr-bg-card-hover: #111a30;
    --clr-surface: rgba(14, 20, 36, 0.7);

    --clr-text: #e8ecf2;
    --clr-text-dim: #8892a8;
    --clr-text-muted: #5a6680;
    --clr-border: rgba(255, 255, 255, 0.06);
    --clr-border-hover: rgba(255, 255, 255, 0.12);

    --canvas-alpha-edge: 0.4;
    --canvas-alpha-node: 0.75;
    --canvas-alpha-bright: 1.0;
    --canvas-alpha-grid: 0.08;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px var(--clr-accent-glow), 0 0 80px rgba(0, 174, 239, 0.15);

    --nav-height: 72px;
    --container-max: 1200px;
    --container-wide: 1300px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Light Theme ---- */
[data-theme="light"] {
    --clr-accent-hover: #0090cc;
    --clr-accent-glow: rgba(0, 174, 239, 0.25);
    --clr-accent-subtle: rgba(0, 174, 239, 0.1);

    --clr-bg: #f4f6f9;
    --clr-bg-alt: #eceff4;
    --clr-bg-card: #ffffff;
    --clr-bg-card-hover: #f8f9fc;
    --clr-surface: rgba(255, 255, 255, 0.8);

    --clr-text: #11161f;
    --clr-text-dim: #4a5468;
    --clr-text-muted: #7a8398;
    --clr-border: rgba(0, 0, 0, 0.07);
    --clr-border-hover: rgba(0, 0, 0, 0.14);

    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px rgba(0, 174, 239, 0.2), 0 0 80px rgba(0, 174, 239, 0.08);

    --canvas-alpha-edge: 0.3;
    --canvas-alpha-node: 0.6;
    --canvas-alpha-bright: 0.85;
    --canvas-alpha-grid: 0.06;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

::selection {
    background: var(--clr-accent);
    color: #fff;
}

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

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

/* ---- Utility ---- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container--wide {
    max-width: var(--container-wide);
}

.page-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.page-content--inner {
    padding-top: var(--nav-height);
}

.section {
    padding: 120px 0;
    position: relative;
}

.section--dark {
    background: rgba(10, 16, 30, 0.55);
    backdrop-filter: blur(4px);
}

[data-theme="light"] .section--dark {
    background: rgba(236, 239, 244, 0.55);
}

.section--accent {
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.08) 0%, rgba(0, 174, 239, 0.02) 100%);
}

[data-theme="light"] .section--accent {
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.12) 0%, rgba(0, 174, 239, 0.04) 100%);
}

.section__header {
    text-align: center;
    margin-bottom: 72px;
}

.section__tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-accent);
    background: var(--clr-accent-subtle);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.section__desc {
    font-size: 17px;
    color: var(--clr-text-dim);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quint);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--clr-accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 174, 239, 0.35);
}

.btn--primary:hover {
    background: var(--clr-accent-hover);
    box-shadow: 0 6px 28px rgba(0, 174, 239, 0.5);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--clr-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--ghost:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: var(--clr-accent-subtle);
}

.btn--outline {
    background: transparent;
    color: var(--clr-accent);
    border: 1px solid var(--clr-accent);
}

.btn--outline:hover {
    background: var(--clr-accent);
    color: #fff;
}

.btn--full {
    width: 100%;
}

.btn--sm {
    padding: 10px 22px;
    font-size: 13px;
    letter-spacing: 0.04em;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    text-transform:uppercase;
    transition: all 0.4s var(--ease-out-expo);
}

/* The blur lives on a pseudo-element: backdrop-filter on .nav itself would
   make it the containing block for the fixed mobile menu overlay. */
.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(6, 11, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo);
}

.nav.scrolled::before {
    opacity: 1;
}

.nav.scrolled {
    border-bottom: 1px solid var(--clr-border);
}

[data-theme="light"] .nav::before {
    background: rgba(244, 246, 249, 0.85);
}

.nav__inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
}

.nav__logo-img {
    height: 44px;
    width: auto;
    display: block;
}

/* Triangle-only mark, swapped in on mid-size screens (see the nav breakpoints
   below) so the menu stays on one line. */
.nav__logo-mark {
    display: none;
    height: 40px;
    width: auto;
}

.nav__links {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--clr-text-dim);
    transition: color 0.2s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover,
.nav__link.active {
    color: var(--clr-text);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__lang {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav__lang-item {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--clr-text-muted);
    transition: color 0.2s;
}

.nav__lang-item.active {
    color: var(--clr-accent);
}

.nav__lang-item:not(.active):hover {
    color: var(--clr-text-dim);
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--clr-text);
    border-radius: 1px;
    transition: all 0.3s var(--ease-out-expo);
}

.nav--open .nav__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav--open .nav__burger span:nth-child(2) {
    opacity: 0;
}

.nav--open .nav__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    .nav--open .nav__links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;
        position: fixed;
        inset: 0;
        background: rgba(6, 11, 20, 0.92);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding-top: calc(var(--nav-height) + 40px);
        z-index: 1000;
    }

    [data-theme="light"] .nav--open .nav__links {
        background: rgba(244, 246, 249, 0.92);
    }

    .nav--open .nav__links .nav__link {
        font-size: 20px;
        font-weight: 500;
        letter-spacing: -0.01em;
        padding: 8px 0;
    }
}

/* ---- Theme Toggle ---- */
.nav__theme {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-text-dim);
    padding: 6px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav__theme:hover {
    color: var(--clr-accent);
    background: var(--clr-accent-subtle);
}

.nav__theme-sun,
.nav__theme-moon {
    transition: all 0.4s var(--ease-out-expo);
}

.nav__theme-sun { display: block; }
.nav__theme-moon { display: none; }

[data-theme="light"] .nav__theme-sun { display: none; }
[data-theme="light"] .nav__theme-moon { display: block; }

/* ---- Header Socials ---- */
.nav__socials {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--clr-text-dim);
    transition: all 0.3s;
}

.nav__social svg {
    width: 17px;
    height: 17px;
}

.nav__social:hover {
    color: var(--clr-accent);
    background: var(--clr-accent-subtle);
}

/* ---- Nav: keep the desktop menu on one line between the full-width
   layout and the burger menu (≤768px) ---- */
@media (min-width: 1140px) and (max-width: 1279px) {
    .nav__logo-img { height: 32px; }
    .nav__links { gap: 24px; }
}

@media (min-width: 769px) and (max-width: 1139px) {
    .nav__inner { padding: 0 16px; gap: 16px; }
    .nav__logo-img { display: none; }
    .nav__logo-mark { display: block; }
    .nav__links { gap: 18px; }
    .nav__link { font-size: 13px; }
}

@media (min-width: 769px) and (max-width: 959px) {
    .nav__links { gap: 14px; }
    .nav__link { font-size: 12px; }
    /* no room for these here; they come back in the burger menu below 769px */
    .nav__socials { display: none; }
}

/* ---- Hero Canvas ---- */
.hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

/* ---- Hero ---- */
/* On the homepage the flying delta is the main act, so let it show. */
body:has(.hero--intro) .hero-canvas {
    opacity: 0.9;
}

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100svh;
    padding: 120px 24px 80px;
}

/* Motto — resting state: small, docked at the bottom of the first screen,
   below the delta. During the intro (.hero--intro-pending / .hero--typing)
   it sits big in the middle; hero-intro.js animates between the two. */
.hero__motto {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 136px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(18px, 2.4vw, 26px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-align: center;
    color: var(--clr-text);
    transform-origin: 50% 50%;
}

.hero--intro-pending .hero__motto,
.hero--typing .hero__motto {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    font-size: clamp(28px, 8vw, 88px);
}

/* Hidden until the script takes over; revealed anyway if the script never runs. */
.hero--intro-pending .hero__motto {
    visibility: hidden;
    animation: heroIntroFallback 0s 4s forwards;
}

.hero__motto-line {
    display: block;
}

.hero__motto-logo {
    display: inline-block;
    color: var(--clr-accent);
    text-shadow: 0 0 60px rgba(0, 174, 239, 0.45);
}

[data-theme="light"] .hero__motto-logo {
    text-shadow: 0 0 30px rgba(0, 174, 239, 0.2);
}

.hero__motto-logo.is-hidden {
    visibility: hidden;
}

.hero__motto-logo.is-stamped {
    animation: heroLogoStamp 0.7s var(--ease-out-expo) both;
}

.hero__motto-dot.is-off {
    opacity: 0;
}

.hero__caret {
    display: inline-block;
    width: 0.07em;
    height: 0.85em;
    margin-left: 0.06em;
    vertical-align: -0.04em;
    background: var(--clr-accent);
    animation: heroCaretBlink 1s steps(1) infinite;
}

.hero__caret.is-solid {
    animation: none;
}

.hero-next {
    position: relative;
    z-index: 1;
    padding: 80px 24px 120px;
}

.hero-next__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--clr-text-dim);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 64px;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    display: block;
    font-family: var(--font-sans);
    font-size: 40px;
    font-weight: 700;
    color: var(--clr-accent);
    line-height: 1;
    margin-bottom: 6px;
}

.hero__stat-label {
    font-size: 13px;
    color: var(--clr-text-muted);
}

.hero__scroll {
    position: absolute;
    bottom: 28px;
    /* centred without transform — the fadeUp animation owns transform */
    left: 0;
    right: 0;
    width: max-content;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    color: var(--clr-accent);
    text-decoration: none;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.4s forwards;
}

/* Appears only once the motto has docked, so it doesn't compete with the intro. */
.hero--intro-pending .hero__scroll,
.hero--typing .hero__scroll {
    animation: none;
}

.hero__scroll-text {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero__scroll-arrow {
    box-sizing: content-box;
    padding: 9px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background: rgba(0, 174, 239, 0.08);
    animation: heroScrollBounce 1.6s ease-in-out infinite;
    transition: background 0.2s;
}

.hero__scroll:hover .hero__scroll-arrow {
    background: rgba(0, 174, 239, 0.2);
}

.hero__scroll:hover .hero__scroll-text {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(7px); opacity: 0.55; }
}

@keyframes heroCaretBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes heroLogoStamp {
    0% { opacity: 0; transform: scale(1.25); filter: blur(6px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes heroIntroFallback {
    to { visibility: visible; }
}

/* ---- About ---- */
.about__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about__card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all 0.4s var(--ease-out-expo);
}

.about__card:hover {
    background: var(--clr-bg-card-hover);
    border-color: var(--clr-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(var(--clr-accent-rgb), 0.08);
}

.about__card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-accent-subtle);
    color: var(--clr-accent);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.about__card h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.about__card p {
    font-size: 15px;
    color: var(--clr-text-dim);
    line-height: 1.65;
}

/* ---- About Detail ---- */
.about-detail__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: start;
}

.about-detail__content .section__title {
    font-size: clamp(28px, 4vw, 42px);
}

.about-detail__content p {
    font-size: 16px;
    color: var(--clr-text-dim);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-detail__content a {
    color: var(--clr-accent);
    transition: opacity 0.2s;
}

.about-detail__content a:hover {
    opacity: 0.8;
}

.about-detail__team-photo {
    margin-top: 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-detail__team-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.about-detail__highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-detail__highlight {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.about-detail__highlight h3 {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.about-detail__highlight p {
    font-size: 14px;
    color: var(--clr-text-dim);
    line-height: 1.6;
}

.about-detail__highlight a {
    color: var(--clr-accent);
    transition: opacity 0.2s;
}

.about-detail__highlight a:hover {
    opacity: 0.8;
}

.about-detail__highlight--offer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--clr-text-dim);
    line-height: 1.6;
}

.about-detail__highlight--offer li {
    position: relative;
    padding-left: 16px;
}

.about-detail__highlight--offer li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--clr-accent);
}

.about-detail__highlight--offer strong {
    color: var(--clr-text);
}

.about-detail__highlight--cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-detail__highlight--cta .btn {
    align-self: flex-start;
    margin-top: 4px;
}

/* ---- Timeline (History page) ---- */
.timeline__intro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 80px;
}

.timeline__intro-content p {
    font-size: 16px;
    color: var(--clr-text-dim);
    line-height: 1.8;
    margin-bottom: 16px;
}

.timeline__intro-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--clr-border);
}

.timeline__intro-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.timeline__track {
    position: relative;
    padding-left: 32px;
    border-left: 2px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.timeline__era {
    position: relative;
}

.timeline__era-marker {
    position: absolute;
    left: calc(-32px - 10px);
    top: -4px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.timeline__era-marker::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--clr-accent);
    border: 3px solid var(--clr-bg);
    box-shadow: 0 0 0 2px var(--clr-accent);
    flex-shrink: 0;
}

.timeline__year {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--clr-accent);
    white-space: nowrap;
}

.timeline__year--end {
    color: var(--clr-text-muted);
    font-size: 11px;
}

.timeline__year--current {
    color: var(--clr-accent);
    font-size: 14px;
    font-weight: 700;
}

.timeline__era-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-left: 24px;
    transition: border-color 0.3s;
}

.timeline__era-card:hover {
    border-color: var(--clr-border-hover);
}

.timeline__era-card h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.timeline__era-card p {
    font-size: 15px;
    color: var(--clr-text-dim);
    line-height: 1.75;
    margin-bottom: 12px;
}

.timeline__era-card p:last-child {
    margin-bottom: 0;
}

.timeline__cta {
    text-align: center;
    margin-top: 64px;
}

/* ---- Services ---- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--clr-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--clr-border);
}

.service__item {
    background: var(--clr-bg-card);
    padding: 40px 32px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

.service__item:hover {
    background: var(--clr-bg-card-hover);
}

.service__num {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--clr-accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 16px;
}

.service__item h3 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.service__item p {
    font-size: 14px;
    color: var(--clr-text-dim);
    line-height: 1.6;
}

/* ---- Projects ---- */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project__card {
    display: block;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.project__card:hover {
    border-color: var(--clr-accent);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(var(--clr-accent-rgb), 0.1);
}

.project__image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%);
}

.project__img--empty {
    z-index: 2;
    font-size: 13px;
    color: var(--clr-text-muted);
}

[data-theme="light"] .project__image {
    background: linear-gradient(135deg, #ccd6e0 0%, #b8c5d6 100%);
}

.project__image--1 { background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%); }
.project__image--2 { background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 100%); }
.project__image--3 { background: linear-gradient(135deg, #0f1923 0%, #1a2a3a 100%); }
.project__image--4 { background: linear-gradient(135deg, #0a1a1a 0%, #1a2a2a 100%); }
.project__image--5 { background: linear-gradient(135deg, #121926 0%, #1e2a3c 100%); }
.project__image--6 { background: linear-gradient(135deg, #0d1520 0%, #1a2535 100%); }

[data-theme="light"] .project__image--1 { background: linear-gradient(135deg, #ccd6e0 0%, #b8c5d6 100%); }
[data-theme="light"] .project__image--2 { background: linear-gradient(135deg, #ced8e4 0%, #c0cdda 100%); }
[data-theme="light"] .project__image--3 { background: linear-gradient(135deg, #c8d2de 0%, #bac7d5 100%); }
[data-theme="light"] .project__image--4 { background: linear-gradient(135deg, #d0d8e2 0%, #c2cfdb 100%); }
[data-theme="light"] .project__image--5 { background: linear-gradient(135deg, #ccd4df 0%, #bfcbd8 100%); }
[data-theme="light"] .project__image--6 { background: linear-gradient(135deg, #c6d0db 0%, #b9c5d2 100%); }

.project__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.6s var(--ease-out-expo);
}

.project__card:hover .project__img {
    transform: scale(1.05);
}

.project__image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent 50%);
}

.project__placeholder {
    color: rgba(0, 174, 239, 0.15);
    transition: all 0.5s var(--ease-out-expo);
}

.project__card:hover .project__placeholder {
    color: rgba(0, 174, 239, 0.4);
    transform: scale(1.1);
}

.project__info {
    padding: 24px;
}

.project__info h3 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.project__info p {
    font-size: 14px;
    color: var(--clr-text-dim);
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-accent);
    background: var(--clr-accent-subtle);
    padding: 4px 12px;
    border-radius: 100px;
}

.projects__cta {
    text-align: center;
    margin-top: 56px;
}

.projects__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
}

.filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.filter__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    padding-left: 4px;
}

.filter__select {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 28px 8px 12px;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    background: var(--clr-bg-alt);
    color: var(--clr-text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s ease;
}

.filter__select:hover {
    border-color: var(--clr-accent);
}

.filter__select:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.15);
}

.filter__reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    background: var(--clr-bg-alt);
    color: var(--clr-text-muted);
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter__reset:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: var(--clr-bg-card-hover);
}

.projects__view-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 100px;
    padding: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.view-toggle-btn {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--clr-text-dim);
    transition: all 0.25s ease;
}

.view-toggle-btn.active {
    background: var(--clr-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.3);
}

.view-toggle-btn:not(.active):hover {
    color: var(--clr-text);
    background: var(--clr-bg-card-hover);
}

.projects__view {
    display: grid;
    margin-bottom: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
}

.projects__view-pane {
    width: 100%;
    height: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    grid-area: 1 / 1;
    transition: opacity 0.3s ease;
}

.projects__view-pane.projects__view--hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

#projects-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

#projects-globe {
    width: 100%;
    height: 100%;
    position: relative;
}

#projects-globe {
    background: radial-gradient(ellipse at center, #0b1a2a 0%, #05080d 75%);
}

#projects-globe.is-light {
    background: radial-gradient(ellipse at center, #eef6fb 0%, #d9e7f0 75%);
}

#projects-globe .maplibregl-popup.map-popup-wrapper .maplibregl-popup-content {
    background: var(--clr-bg-card);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 12px;
    width: 320px;
    max-width: calc(100vw - 48px);
    line-height: 1.5;
    font-family: inherit;
}

#projects-globe .maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
#projects-globe .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
#projects-globe .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--clr-bg-card); }
#projects-globe .maplibregl-popup-anchor-top .maplibregl-popup-tip,
#projects-globe .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
#projects-globe .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--clr-bg-card); }
#projects-globe .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--clr-bg-card); }
#projects-globe .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--clr-bg-card); }

#projects-globe .globe-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

#projects-map .leaflet-tile {
    filter: saturate(0.4) hue-rotate(165deg);
}

[data-theme="light"] #projects-map .leaflet-tile {
    filter: saturate(0.5) hue-rotate(155deg);
}

.map-pin {
    background: none !important;
    border: none !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: filter 0.25s ease;
}

.map-pin:hover {
    filter: drop-shadow(0 4px 10px rgba(0, 174, 239, 0.6));
    z-index: 1000 !important;
}

.map-cluster-wrap {
    background: none !important;
    border: none !important;
}

.map-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #33c1f5, var(--clr-accent) 70%);
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1;
    border: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 16px rgba(0, 174, 239, 0.55), 0 0 0 6px rgba(0, 174, 239, 0.12);
    cursor: pointer;
    transition: transform 0.2s var(--ease-out-quint), box-shadow 0.2s ease;
}

.map-cluster:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(0, 174, 239, 0.7), 0 0 0 8px rgba(0, 174, 239, 0.18);
}

[data-theme="light"] .map-cluster {
    border-color: rgba(255, 255, 255, 0.95);
}

.map-popup-wrapper .leaflet-popup-content-wrapper {
    background: var(--clr-bg-card);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 12px;
}

.map-popup-wrapper .leaflet-popup-content {
    margin: 0;
    line-height: 1.5;
    width: 320px !important;
}

.map-popup-wrapper .leaflet-popup-tip {
    background: var(--clr-bg-card);
    box-shadow: none;
}

.map-popup {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.map-popup__img {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.map-popup__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--clr-bg-alt);
}

.map-popup__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-popup__body {
    min-width: 0;
}

.map-popup__title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}

.map-popup__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-accent);
    background: var(--clr-accent-subtle);
    padding: 2px 8px;
    border-radius: 100px;
    margin-bottom: 4px;
}

.map-popup__year {
    display: inline-block;
    font-size: 11px;
    color: var(--clr-text-muted);
    margin-bottom: 4px;
}

.map-popup__address {
    font-size: 12px;
    color: var(--clr-text-dim);
    line-height: 1.45;
    margin-bottom: 4px;
}

.map-popup__desc {
    font-size: 12px;
    color: var(--clr-text-dim);
    line-height: 1.45;
}

.map-popup__cta {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--clr-accent);
}

.map-popup--link {
    cursor: pointer;
}

.map-popup--link:hover .map-popup__title {
    color: var(--clr-accent);
}

.map-popup--link:hover .map-popup__cta {
    text-decoration: underline;
}

.map-popup--cluster {
    flex-direction: column;
    align-items: stretch;
}

.map-popup__cluster-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-accent);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--clr-border);
}

.map-popup__cluster-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-popup__cluster-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.map-popup__cluster-item:hover {
    background: var(--clr-bg-card-hover);
}

.map-popup__cluster-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.map-popup__cluster-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.map-popup__cluster-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.map-popup__cluster-cat {
    font-size: 10px;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.leaflet-container {
    background: var(--clr-bg-alt);
}

.leaflet-control-zoom a {
    background: var(--clr-bg-card) !important;
    color: var(--clr-text) !important;
    border-color: var(--clr-border) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--clr-bg-card-hover) !important;
}

.leaflet-control-attribution {
    background: var(--clr-bg-card) !important;
    color: var(--clr-text-muted) !important;
    font-size: 10px !important;
}

.leaflet-control-attribution a {
    color: var(--clr-accent) !important;
}

@media (max-width: 768px) {
    .projects__view-pane {
        height: 360px;
    }
}

/* ---- Careers ---- */
.careers__box {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.careers__badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--clr-accent);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 24px;
    animation: badgePulse 2s ease-in-out infinite;
}

.careers__box h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.careers__box p {
    font-size: 17px;
    color: var(--clr-text-dim);
    line-height: 1.7;
    margin-bottom: 32px;
}

.careers__mail {
    color: var(--clr-accent);
    font-weight: 600;
    white-space: nowrap;
}

.careers__mail:hover { opacity: 0.8; }

/* ---- News ---- */
.news__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.news__card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.news__card:hover {
    border-color: var(--clr-border-hover);
    transform: translateY(-4px);
}

.news__date {
    font-size: 12px;
    font-weight: 600;
    color: var(--clr-accent);
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.news__card h3 {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news__card p {
    font-size: 14px;
    color: var(--clr-text-dim);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 16px;
}

.news__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-accent);
    transition: opacity 0.2s;
}

.news__link:hover {
    opacity: 0.8;
}

/* ---- Links ---- */
.links__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.link__card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--clr-text);
    transition: all 0.4s var(--ease-out-expo);
}

.link__logo {
    background: #fff;
    height: 140px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--clr-border);
}

.link__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s var(--ease-out-expo);
}

.link__card:hover .link__logo img {
    transform: scale(1.04);
}

.link__body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.link__card:hover {
    background: var(--clr-bg-card-hover);
    border-color: var(--clr-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(var(--clr-accent-rgb), 0.08);
}

.link__name {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.link__card p {
    font-size: 14px;
    color: var(--clr-text-dim);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 20px;
}

.link__url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-accent);
}

.link__url svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.link__card:hover .link__url svg {
    transform: translate(2px, -2px);
}

.news__empty {
    color: var(--clr-text-dim);
    font-size: 15px;
}

/* News page: list of full-width cards */
.news__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news__card--wide {
    padding: clamp(24px, 3vw, 40px);
}

.news__card--wide:hover { transform: none; }

.news__card--wide .news__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.news__card--wide .news__date { margin-bottom: 0; }

.news__card--wide h3 {
    font-size: clamp(20px, 2vw, 26px);
    margin-bottom: 0;
}

.news__card--wide .news__content { font-size: 15px; gap: 16px; }

.news__card--wide .news-content__video { max-width: 960px; }
.news__card--wide h4.news-content__heading { font-size: 19px; }
.news__card--wide h5.news-content__heading { font-size: 16px; }

/* Card content from the admin builder */
.news__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: var(--clr-text-dim);
    line-height: 1.55;
    min-width: 0;
    overflow-wrap: anywhere;
}

.news__card .news__content p {
    flex: none;
    margin: 0;
}

.news__content > * { margin: 0; }

.news-content__heading {
    font-family: var(--font-sans);
    color: var(--clr-text);
    font-weight: 600;
    line-height: 1.3;
}
h4.news-content__heading { font-size: 16px; }
h5.news-content__heading { font-size: 14px; }

.news-content__text p + p,
.news-content__text p + ul,
.news-content__text p + ol,
.news-content__text ul + p,
.news-content__text ol + p { margin-top: 8px; }
.news-content__text ul,
.news-content__text ol { padding-left: 20px; }
.news-content__text ul { list-style: disc; }
.news-content__text ol { list-style: decimal; }
.news-content__text strong,
.news-content__text b { color: var(--clr-text); }
.news-content__text a,
.news-content__html a {
    color: var(--clr-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-content__image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}
.news-content__image figcaption {
    font-size: 12px;
    color: var(--clr-text-muted);
    margin-top: 6px;
}

.news-content__video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}
.news-content__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.news-content__quote {
    border-left: 2px solid var(--clr-accent);
    padding: 2px 0 2px 14px;
    font-style: italic;
    color: var(--clr-text);
}
.news-content__quote cite {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-style: normal;
    color: var(--clr-text-muted);
}

.news-content__divider {
    border: 0;
    border-top: 1px solid var(--clr-border-hover);
}

.news-content__html iframe,
.news-content__html img,
.news-content__html video {
    max-width: 100%;
}

/* ---- Contact ---- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.contact__desc {
    font-size: 17px;
    color: var(--clr-text-dim);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact__company {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-text);
    margin: 0;
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--clr-text-dim);
}

.contact__detail svg {
    color: var(--clr-accent);
    flex-shrink: 0;
}

.contact__detail a {
    color: var(--clr-text);
    transition: color 0.2s;
}

.contact__detail a:hover {
    color: var(--clr-accent-light);
}

.contact__divider {
    border: 0;
    border-top: 1px solid var(--clr-border);
    margin: 4px 0;
}

.contact__map iframe {
    width: 100%;
    height: 450px;
    filter: grayscale(40%);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    color: var(--clr-text);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
    color: var(--clr-text-muted);
}

.form__group input:focus,
.form__group textarea:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px var(--clr-accent-subtle);
}

.form__group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---- Footer ---- */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--clr-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    margin-bottom: 48px;
}

.footer__brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__logo-img {
    height: 52px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}

.footer__brand p {
    font-size: 14px;
    color: var(--clr-text-dim);
    max-width: 280px;
    line-height: 1.6;
}

.footer__links h4 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--clr-text);
}

.footer__links a {
    display: block;
    font-size: 14px;
    color: var(--clr-text-dim);
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--clr-accent);
}

.footer__bottom {
    padding-top: 32px;
    border-top: 1px solid var(--clr-border);
    text-align: center;
}

.footer__bottom p {
    font-size: 13px;
    color: var(--clr-text-muted);
}

/* ---- Team ---- */
.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.team__card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.team__card:hover {
    background: var(--clr-bg-card-hover);
    border-color: var(--clr-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(var(--clr-accent-rgb), 0.08);
}

.team__photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    background: var(--clr-bg-alt);
}

.team__info {
    padding: 20px 20px 24px;
}

.team__name {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.team__role {
    font-size: 13px;
    color: var(--clr-accent);
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.team__email,
.team__phone {
    font-size: 12px;
    color: var(--clr-text-muted);
    word-break: break-all;
    transition: color 0.2s;
}

.team__phone {
    display: inline-block;
    margin-top: 2px;
    word-break: normal;
    white-space: nowrap;
    text-decoration: none;
}

.team__card:hover .team__phone:hover {
    color: var(--clr-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.team__card:hover .team__email,
.team__card:hover .team__phone {
    color: var(--clr-text-dim);
}

/* ---- Reveal animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Keyframes ---- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(0, 174, 239, 0); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .about__grid { grid-template-columns: 1fr; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .projects__grid { grid-template-columns: repeat(2, 1fr); }
    .news__grid { grid-template-columns: repeat(2, 1fr); }
    .contact__grid { grid-template-columns: 1fr; gap: 48px; }
    .hero__stats { gap: 40px; }
    .team__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .about-detail__grid { grid-template-columns: 1fr; gap: 40px; }
    .timeline__intro { grid-template-columns: 1fr; gap: 32px; }
    .timeline__intro-image { max-width: 300px; }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__socials { display: none; }
    .nav__burger { display: flex; }

    .nav--open .nav__socials {
        display: flex;
        gap: 8px;
        position: fixed;
        left: 50%;
        bottom: 48px;
        transform: translateX(-50%);
        z-index: 1001;
    }

    .nav--open .nav__social {
        width: 46px;
        height: 46px;
    }

    .nav--open .nav__social svg {
        width: 21px;
        height: 21px;
    }

    .section { padding: 80px 0; }
    .section__header { margin-bottom: 48px; }

    .hero { padding: 100px 16px 60px; }
    .hero__motto { bottom: 124px; }
    .hero__stats { gap: 28px; flex-wrap: wrap; }
    .hero__stat-number { font-size: 32px; }

    .services__grid { grid-template-columns: 1fr; }
    .projects__grid { grid-template-columns: 1fr; }
    .news__grid { grid-template-columns: 1fr; }
    .team__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .timeline__track { padding-left: 24px; }
    .timeline__era-marker { left: calc(-24px - 8px); }
    .timeline__era-marker::before { width: 16px; height: 16px; }
    .timeline__era-card { padding: 24px; margin-left: 16px; }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; align-items: stretch; }
}

/* ---- Admin Upload ---- */
.upload-section {
    padding: 120px 0 80px;
}

.upload-section h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    text-align: center;
}

.upload-message {
    text-align: center;
    padding: 14px 24px;
    margin-bottom: 28px;
    background: var(--clr-accent-subtle);
    border: 1px solid var(--clr-accent);
    border-radius: var(--radius);
    color: var(--clr-accent);
    font-size: 15px;
    font-weight: 500;
}

.upload-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.upload-card h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.upload-card p {
    font-size: 14px;
    color: var(--clr-text-dim);
    line-height: 1.6;
    margin-bottom: 16px;
}

.upload-card code {
    background: var(--clr-bg-alt);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.upload-form input[type="file"] {
    font-size: 14px;
    color: var(--clr-text-dim);
    padding: 10px 0;
}

/* ---- Admin (Správa) ---- */
.admin-body {
    background: var(--clr-bg-alt);
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--clr-surface);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clr-border);
}

.admin-header__inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.admin-header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.admin-header__logo img {
    height: 30px;
    width: auto;
}

.admin-header__logo span {
    color: var(--clr-text-dim);
    border-left: 1px solid var(--clr-border-hover);
    padding-left: 12px;
}

.admin-nav {
    display: flex;
    gap: 6px;
    margin-right: auto;
}

.admin-nav__link {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-text-dim);
    transition: all 0.2s var(--ease-out-quint);
}

.admin-nav__link:hover {
    color: var(--clr-text);
    background: var(--clr-accent-subtle);
}

.admin-nav__link.active {
    color: var(--clr-accent);
    background: var(--clr-accent-subtle);
}

.admin-main {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 40px 24px 80px;
    flex: 1;
}

.admin-flash {
    padding: 14px 20px;
    margin-bottom: 24px;
    background: var(--clr-accent-subtle);
    border: 1px solid var(--clr-accent);
    border-radius: var(--radius);
    color: var(--clr-accent);
    font-size: 14px;
    font-weight: 500;
}

.admin-flash--error {
    background: rgba(239, 83, 80, 0.08);
    border-color: #ef5350;
    color: #ef5350;
}

.admin-panel {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.admin-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.admin-panel__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-panel__count {
    font-size: 14px;
    color: var(--clr-text-dim);
    margin-top: 4px;
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--clr-border);
}

.admin-search .admin-input {
    flex: 1;
    min-width: 220px;
    max-width: 520px;
}

.admin-empty {
    color: var(--clr-text-dim);
    font-size: 15px;
    padding: 24px 0;
}

.admin-section {
    padding: 22px 0;
    border-top: 1px solid var(--clr-border);
}

.admin-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.admin-section__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.admin-field__hint code {
    background: var(--clr-bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.admin-upload {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-upload .admin-input {
    max-width: 220px;
}

.admin-panel--files {
    margin-top: 24px;
}

.admin-panel__title--sm {
    font-size: 20px;
}

.admin-table--files td {
    padding: 10px 16px;
    vertical-align: middle;
}

.admin-file__preview {
    width: 56px;
}

.admin-file-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    padding: 3px;
    background: var(--clr-bg-alt);
    display: block;
}

.admin-file-thumb--file {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    border: 1px dashed var(--clr-border-hover);
}

.admin-file__name {
    display: block;
    word-break: break-all;
}

.admin-file__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.admin-file__actions form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 720px) {
    .admin-file__actions {
        justify-content: flex-start;
    }
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--clr-text-muted);
    border-bottom: 1px solid var(--clr-border-hover);
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--clr-border);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: var(--clr-bg-card-hover);
}

.admin-table__mono {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 13px;
    color: var(--clr-accent);
    white-space: nowrap;
}

.admin-table__muted {
    display: block;
    font-size: 12px;
    color: var(--clr-text-muted);
    margin-top: 2px;
}

.admin-table__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    white-space: nowrap;
}

.admin-table__actions form {
    display: inline-flex;
}

.admin-btn--danger {
    color: #ef5350;
    border-color: rgba(239, 83, 80, 0.4);
}

.admin-btn--danger:hover {
    border-color: #ef5350;
    color: #ef5350;
    background: rgba(239, 83, 80, 0.08);
}

.admin-tag {
    display: inline-block;
    padding: 3px 10px;
    margin: 2px 4px 2px 0;
    font-size: 12px;
    font-weight: 500;
    border-radius: 100px;
    background: var(--clr-accent-subtle);
    color: var(--clr-accent);
}

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

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-field--full {
    grid-column: 1 / -1;
}

.admin-field > span {
    font-size: 13px;
    font-weight: 500;
    color: var(--clr-text-dim);
}

.admin-input,
.admin-field input:not([type="checkbox"]):not([type="radio"]),
.admin-field textarea {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--clr-text);
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-border-hover);
    border-radius: var(--radius);
    padding: 12px 14px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-input:focus,
.admin-field input:not([type="checkbox"]):not([type="radio"]):focus,
.admin-field textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px var(--clr-accent-subtle);
}

.admin-field textarea {
    resize: vertical;
    min-height: 96px;
}

.admin-form__actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--clr-border);
}

.admin-image-field {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.admin-image-preview {
    width: 160px;
    height: 110px;
    object-fit: contain;
    padding: 4px;
    border-radius: var(--radius);
    border: 1px solid var(--clr-border-hover);
    background: var(--clr-bg-alt);
    flex-shrink: 0;
}

.admin-image-preview--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--clr-text-muted);
}

.admin-image-field__controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 220px;
}

/* ---- Custom file input ---- */
.admin-file-input {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    cursor: pointer;
    min-width: 0;
}

.admin-file-input input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-file-input__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 100px;
    background: var(--clr-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.25s var(--ease-out-quint), box-shadow 0.25s var(--ease-out-quint), transform 0.25s var(--ease-out-quint);
}

.admin-file-input__btn::before {
    content: "";
    width: 15px;
    height: 15px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 16V4m0 0L8 8m4-4 4 4M5 16v2a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 16V4m0 0L8 8m4-4 4 4M5 16v2a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.admin-file-input:hover .admin-file-input__btn {
    background: var(--clr-accent-hover);
    box-shadow: 0 6px 20px rgba(var(--clr-accent-rgb), 0.4);
    transform: translateY(-1px);
}

.admin-file-input:active .admin-file-input__btn {
    transform: translateY(0);
}

.admin-file-input:focus-within .admin-file-input__btn {
    box-shadow: 0 0 0 3px var(--clr-accent-subtle);
}

.admin-file-input__name {
    font-size: 13px;
    color: var(--clr-text-muted);
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.admin-file-input__name--set {
    color: var(--clr-text);
}

.admin-file-input--sm {
    gap: 8px;
}

.admin-file-input--sm .admin-file-input__btn {
    padding: 8px 14px;
    font-size: 12px;
    background: var(--clr-accent-subtle);
    color: var(--clr-accent);
    border: 1px solid rgba(var(--clr-accent-rgb), 0.35);
}

.admin-file-input--sm:hover .admin-file-input__btn {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    box-shadow: 0 4px 14px rgba(var(--clr-accent-rgb), 0.35);
    transform: none;
}

.admin-file-input--sm .admin-file-input__name {
    max-width: 120px;
}

.admin-field__hint {
    font-size: 12px;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

.admin-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--clr-text-dim);
    cursor: pointer;
    user-select: none;
}

.admin-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    accent-color: var(--clr-accent);
    cursor: pointer;
}

.admin-table__project {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-table__thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    padding: 3px;
    flex-shrink: 0;
    background: var(--clr-bg-alt);
}

.admin-table__thumb--empty {
    border: 1px dashed var(--clr-border-hover);
}

.admin-body--login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.admin-login {
    width: 100%;
    max-width: 400px;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.admin-login__logo {
    height: 40px;
    width: auto;
    margin: 0 auto 24px;
}

.admin-login__title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.admin-login__subtitle {
    font-size: 14px;
    color: var(--clr-text-dim);
    margin-bottom: 24px;
}

.admin-login__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-login__back {
    display: inline-block;
    margin-top: 20px;
    font-size: 13px;
    color: var(--clr-text-muted);
    transition: color 0.2s ease;
}

.admin-login__back:hover {
    color: var(--clr-accent);
}

@media (max-width: 720px) {
    .admin-form__grid {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        padding: 22px 18px;
    }

    .admin-header__logo span {
        display: none;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Admin flash, filters, list ---- */
.admin-flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-body--login .admin-flash {
    justify-content: center;
}

.admin-flash + .admin-flash {
    margin-top: -12px;
}

.admin-flash__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    font-size: 20px;
    line-height: 1;
    color: inherit;
    background: none;
    border: none;
    border-radius: 50%;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.admin-flash__close:hover {
    opacity: 1;
    background: rgba(var(--clr-accent-rgb), 0.12);
}

.admin-panel__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: -8px 0 24px;
}

.admin-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid var(--clr-border-hover);
    font-size: 13px;
    font-weight: 500;
    color: var(--clr-text-dim);
    transition: all 0.2s var(--ease-out-quint);
}

.admin-filter:hover {
    color: var(--clr-text);
    border-color: var(--clr-accent);
}

.admin-filter.active {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
    background: var(--clr-accent-subtle);
}

.admin-filter__count {
    font-size: 12px;
    color: var(--clr-text-muted);
}

.admin-table__name {
    font-weight: 600;
    color: var(--clr-text);
    transition: color 0.2s ease;
}

.admin-table__name:hover {
    color: var(--clr-accent);
}

.admin-tag--muted {
    background: var(--clr-bg-alt);
    color: var(--clr-text-dim);
}

.admin-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

/* ---- Admin form sections, errors, gallery ---- */
.admin-form__legend {
    margin-bottom: 4px;
}

.admin-form__section {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin: 28px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--clr-border);
}

.admin-form__legend + .admin-form__section {
    margin-top: 12px;
    padding-top: 0;
    border-top: none;
}

.admin-field__error {
    font-size: 12px;
    font-weight: 500;
    color: #ef5350;
}

.admin-field--error > span {
    color: #ef5350;
}

.admin-field--error input:not([type="checkbox"]):not([type="radio"]),
.admin-field--error input:not([type="checkbox"]):not([type="radio"]):focus {
    border-color: #ef5350;
    box-shadow: 0 0 0 3px rgba(239, 83, 80, 0.12);
}

.admin-form__actions {
    flex-wrap: wrap;
}

.admin-checkbox input[type="radio"] {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--clr-accent);
    cursor: pointer;
}

.admin-checkbox--danger input[type="checkbox"] {
    accent-color: #ef5350;
}

.admin-gallery {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}

.admin-gallery__item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--clr-border-hover);
    border-radius: var(--radius);
    background: var(--clr-bg-alt);
    overflow: hidden;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.admin-gallery__item:has(input[name="cover"]:checked) {
    border-color: var(--clr-accent);
}

.admin-gallery__item:has(input[name="remove_images"]:checked) {
    opacity: 0.45;
    border-color: #ef5350;
}

.admin-gallery__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.admin-gallery__controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px 12px;
}

.admin-image-preview[hidden] {
    display: none;
}

.admin-image-preview--new {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px var(--clr-accent-subtle);
}

.admin-upload-preview {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: 4px 0;
}

.admin-upload-preview[hidden] {
    display: none;
}

.admin-upload .admin-upload-preview {
    order: 1;
    flex-basis: 100%;
}

.admin-upload-preview__item {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px dashed rgba(var(--clr-accent-rgb), 0.5);
    border-radius: var(--radius);
    background: var(--clr-bg-alt);
    overflow: hidden;
}

.admin-upload-preview__thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: flex;
}

.admin-upload-preview__name {
    padding: 6px 8px;
    font-size: 11px;
    color: var(--clr-text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-upload-preview__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: #fff;
    background: rgba(2, 6, 12, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.admin-upload-preview__remove:hover {
    background: #ef5350;
}

@media (max-width: 720px) {
    .admin-header__inner {
        flex-wrap: wrap;
        gap: 10px 16px;
        padding: 12px 16px 0;
    }

    .admin-header__logout {
        margin-left: auto;
    }

    .admin-nav {
        order: 3;
        width: calc(100% + 32px);
        margin: 0 -16px;
        padding: 0 12px 10px;
        overflow-x: auto;
    }

    .admin-nav__link {
        white-space: nowrap;
    }

    .admin-main {
        padding: 20px 16px 60px;
    }

    .admin-panel__header {
        align-items: flex-start;
    }

    .admin-search .admin-input {
        min-width: 0;
        flex-basis: 100%;
        max-width: none;
    }

    /* Tables become stacked cards so actions stay reachable without sideways scrolling */
    .admin-table--cards thead {
        display: none;
    }

    .admin-table--cards,
    .admin-table--cards tbody,
    .admin-table--cards tr,
    .admin-table--cards td {
        display: block;
        width: 100%;
    }

    .admin-table--cards tr {
        padding: 14px 0;
        border-bottom: 1px solid var(--clr-border);
    }

    .admin-table--cards td {
        padding: 3px 0;
        border-bottom: none;
    }

    .admin-table--cards td[data-label]::before {
        content: attr(data-label) ": ";
        color: var(--clr-text-muted);
    }

    .admin-table--cards .admin-table__main {
        padding: 4px 0 8px;
    }

    .admin-table--cards .admin-table__actions {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .admin-table--files tr {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 4px 12px;
        padding: 12px 0;
        border-bottom: 1px solid var(--clr-border);
    }

    .admin-table--files td {
        padding: 0;
        border-bottom: none;
    }

    .admin-table--files .admin-file__actions {
        grid-column: 1 / -1;
    }

    .admin-form__actions .btn {
        flex: 1 1 100%;
    }
}

/* ---- Project photo gallery (public detail) ---- */
.portfolio-gallery__stage {
    position: relative;
}

.portfolio-gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    outline: none;
}

.portfolio-gallery__track::-webkit-scrollbar {
    display: none;
}

.portfolio-gallery__slide {
    flex: 0 0 100%;
    height: clamp(260px, 52vw, 560px);
    max-height: none;
    scroll-snap-align: start;
}

.portfolio-gallery__nav {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    background: rgba(2, 6, 12, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.portfolio-gallery__nav:hover {
    background: var(--clr-accent);
}

.portfolio-gallery__nav:disabled {
    opacity: 0;
    pointer-events: none;
}

.portfolio-gallery__nav--prev {
    left: 16px;
}

.portfolio-gallery__nav--next {
    right: 16px;
}

.portfolio-gallery__counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: rgba(2, 6, 12, 0.55);
    border-radius: 100px;
}

.portfolio-gallery__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 6px;
    margin: -32px 0 40px;
}

.portfolio-gallery__thumb {
    flex: 0 0 auto;
    width: 96px;
    height: 68px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--clr-bg-card);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.portfolio-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-gallery__thumb:hover {
    opacity: 1;
}

.portfolio-gallery__thumb.active {
    opacity: 1;
    border-color: var(--clr-accent);
}

.project-modal .portfolio-gallery__thumbs {
    margin: -20px 0 32px;
}

/* ---- Project documents (public detail) ---- */
.portfolio__docs {
    margin-top: 36px;
}

.portfolio__doc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portfolio__doc {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.portfolio__doc:hover {
    border-color: var(--clr-accent);
    background: var(--clr-bg-card-hover);
}

.portfolio__doc-ext {
    flex-shrink: 0;
    min-width: 46px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
    color: var(--clr-accent);
    background: var(--clr-accent-subtle);
    border-radius: var(--radius-sm);
}

.portfolio__doc-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--clr-text);
    overflow-wrap: anywhere;
}

.portfolio__doc-size {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--clr-text-muted);
}

.portfolio__doc-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-color: var(--clr-text-dim);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v12m0 0-4-4m4 4 4-4M5 16v2a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v12m0 0-4-4m4 4 4-4M5 16v2a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: background-color 0.2s ease;
}

.portfolio__doc:hover .portfolio__doc-icon {
    background-color: var(--clr-accent);
}

/* ---- Project documents (admin) ---- */
.admin-docs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-docs__item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid var(--clr-border-hover);
    border-radius: var(--radius);
    background: var(--clr-bg-alt);
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.admin-docs__item:has(input[name="remove_documents"]:checked) {
    opacity: 0.45;
    border-color: #ef5350;
}

.admin-docs__title {
    flex: 1;
    min-width: 180px;
}

.admin-docs__item .admin-field input:not([type="checkbox"]) {
    padding: 9px 12px;
    font-size: 14px;
    background: var(--clr-bg-card);
}

.admin-docs__size {
    min-width: 64px;
    margin-top: 0;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .admin-docs__title {
        flex-basis: calc(100% - 64px);
    }
}

@media (max-width: 720px) {
    .portfolio-gallery__nav {
        display: none;
    }

    .portfolio-gallery__thumb {
        width: 72px;
        height: 52px;
    }
}

/* ---- Project portfolio detail ---- */
.portfolio {
    padding-top: 72px;
}

.portfolio__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-text-dim);
    margin-bottom: 28px;
    transition: color 0.2s ease, gap 0.2s var(--ease-out-quint);
}

.portfolio__back:hover {
    color: var(--clr-accent);
    gap: 10px;
}

.portfolio__hero {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--clr-border);
}

.portfolio__image {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
    background: var(--clr-bg-alt);
}

.portfolio__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    font-size: 15px;
    color: var(--clr-text-muted);
    background: var(--clr-bg-card);
}

.portfolio__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 56px;
    align-items: start;
}

.portfolio__title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 14px 0 8px;
}

.portfolio__identifier {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--clr-text-muted);
}

.portfolio__desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--clr-text-dim);
    white-space: pre-line;
    margin-top: 20px;
}

.portfolio__levels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.portfolio__level {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--clr-accent);
    background: var(--clr-accent-subtle);
    padding: 5px 12px;
    border-radius: 100px;
}

.portfolio__meta {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.portfolio__meta-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.portfolio__facts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 26px;
}

.portfolio__fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portfolio__fact dt {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clr-text-muted);
}

.portfolio__fact dd {
    font-size: 14px;
    color: var(--clr-text);
    line-height: 1.5;
}

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

    .portfolio__meta {
        position: static;
    }
}

/* ---- Project detail modal ---- */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 24px;
    overflow-y: auto;
    background: rgba(2, 6, 12, 0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.project-modal.active {
    display: flex;
}

.project-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 1040px;
    margin: auto;
    padding: 40px;
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-border-hover);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: project-modal-in 0.35s var(--ease-out-expo);
}

.project-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: var(--clr-text);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border-hover);
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-out-quint);
}

.project-modal__close:hover {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
    transform: rotate(90deg);
}

.project-modal__loading {
    padding: 100px 20px;
    text-align: center;
    font-size: 15px;
    color: var(--clr-text-dim);
}

.project-modal .portfolio__hero {
    margin-bottom: 36px;
}

.project-modal .portfolio__meta {
    position: static;
}

@keyframes project-modal-in {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
    .project-modal {
        padding: 16px;
    }

    .project-modal__dialog {
        padding: 24px 18px;
        border-radius: var(--radius-lg);
    }
}

/* ---- Admin image lightbox ---- */
.admin-zoomable {
    cursor: zoom-in;
}

.admin-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(2, 6, 12, 0.88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.admin-lightbox.active {
    display: flex;
}

.admin-lightbox__img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--clr-bg-card);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.admin-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.25s var(--ease-out-quint);
}

.admin-lightbox__close:hover {
    background: var(--clr-accent);
    transform: rotate(90deg);
}

.contact__team-link {
    margin-top: 12px;
    align-self: flex-start;
}


/* ---- Admin: news content builder ---- */
.admin-field--row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
}

.nb {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
}

.nb__palette,
.nb__settings {
    position: sticky;
    top: 16px;
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 16px;
}

.nb__settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.nb__heading {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-text);
}

.nb__hint {
    font-size: 12px;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

.nb__palette .nb__hint { margin: 4px 0 12px; }

.nb__widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.nb__widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px 10px;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text-dim);
    font: 500 12px var(--font-sans);
    cursor: grab;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.nb__widget:hover,
.nb__widget:focus-visible {
    border-color: var(--clr-accent);
    color: var(--clr-text);
    background: var(--clr-accent-subtle);
}

.nb__widget:active { cursor: grabbing; }

.nb__widget-icon {
    font-size: 17px;
    line-height: 1;
    color: var(--clr-accent);
    font-family: var(--font-display);
    font-weight: 600;
}

.nb__stage { min-width: 0; }

.nb__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.nb__toolbar-label {
    font-size: 12px;
    color: var(--clr-text-muted);
    margin-right: 4px;
}

.nb__view,
.nb__segmented button,
.nb__format button {
    background: transparent;
    border: 1px solid var(--clr-border-hover);
    color: var(--clr-text-dim);
    font: 500 12px var(--font-sans);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nb__view[aria-pressed="true"],
.nb__segmented button[aria-pressed="true"] {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background: var(--clr-accent-subtle);
}

.nb__viewport {
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0) 0 0 / 16px 16px,
        var(--clr-bg);
    border: 1px dashed var(--clr-border-hover);
    border-radius: var(--radius);
    padding: 28px 16px;
    display: flex;
    justify-content: center;
    min-height: 420px;
}

.nb__card {
    width: 100%;
    transition: max-width 0.3s var(--ease-out-expo);
}

.nb__card[data-view="mobile"] { max-width: 345px; }

.nb__placeholder-text { color: var(--clr-text-muted); }

.nb__canvas {
    min-height: 120px;
    gap: 4px;
}

.nb__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
    border: 1px dashed var(--clr-border-hover);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--clr-text-muted);
    padding: 16px;
}

.nb__block {
    position: relative;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 6px;
    margin: 0 -7px;
    cursor: pointer;
}

.nb__block:hover { border-color: var(--clr-border-hover); }
.nb__block.is-selected { border-color: var(--clr-accent); }

.nb__block-tools {
    position: absolute;
    top: -13px;
    right: 6px;
    display: none;
    align-items: center;
    gap: 2px;
    background: var(--clr-accent);
    border-radius: 6px;
    padding: 2px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nb__block:hover .nb__block-tools,
.nb__block.is-selected .nb__block-tools,
.nb__block:focus-within .nb__block-tools { display: flex; }
.is-dragging .nb__block-tools { display: none !important; }

.nb__block-tools button,
.nb__block-name {
    background: transparent;
    border: 0;
    color: #fff;
    font: 600 11px var(--font-sans);
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
}

.nb__block-name { cursor: grab; white-space: nowrap; }
.nb__block-tools button:hover:not(:disabled) { background: rgba(0, 0, 0, 0.2); }
.nb__block-tools button:disabled { opacity: 0.4; cursor: default; }
.nb__block-tools .nb__danger:hover { background: #c0392b; }

.nb__block-body [contenteditable] {
    outline: none;
    cursor: text;
    min-height: 1.4em;
}

.nb__block-body a { pointer-events: none; }
.nb__block-body [contenteditable] a { pointer-events: auto; }
.nb__block-body iframe { pointer-events: none; }

.nb__block-placeholder {
    padding: 14px 10px;
    text-align: center;
    font-size: 12px;
    color: var(--clr-text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--clr-border-hover);
    border-radius: var(--radius-sm);
}

.nb__drop-marker {
    height: 3px;
    margin: 2px 0;
    border-radius: 2px;
    background: var(--clr-accent);
    box-shadow: 0 0 10px var(--clr-accent-glow);
}

.nb__field > span {
    font-size: 12px;
    color: var(--clr-text-dim);
}

.nb__select {
    width: 100%;
    padding: 10px 12px;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border-hover);
    border-radius: var(--radius-sm);
    color: var(--clr-text);
    font: inherit;
    font-size: 14px;
}

.nb__segmented,
.nb__format {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nb__format button { min-width: 32px; font-size: 13px; }
.nb__format button:hover,
.nb__segmented button:hover { color: var(--clr-text); border-color: var(--clr-accent); }

.nb__range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nb__range input { flex: 1; accent-color: var(--clr-accent); }
.nb__range output { font-size: 12px; color: var(--clr-text-dim); min-width: 44px; text-align: right; }

.admin-field textarea.nb__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    min-height: 180px;
}

.nb__image-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nb__image-thumb {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

@media (max-width: 1100px) {
    .nb { grid-template-columns: minmax(0, 1fr) 260px; }
    .nb__palette { grid-column: 1 / -1; position: static; }
    .nb__palette .nb__widgets { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}

@media (max-width: 720px) {
    .nb { grid-template-columns: minmax(0, 1fr); }
    .nb__settings { position: static; max-height: none; }
    .nb__viewport { padding: 20px 8px; }
}

/* Admin settings */
.admin-settings__status {
    font-size: 14px;
    color: var(--clr-text-dim);
    line-height: 1.6;
    margin-bottom: 14px;
}



.admin-status {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--clr-border);
}

.admin-status--on { color: #1f9d55; border-color: currentColor; }
.admin-status--off { color: var(--clr-text-muted); }

.admin-notice {
    margin-bottom: 16px;
    padding: 10px 14px;
    border: 1px dashed var(--clr-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--clr-text-dim);
}

.admin-notice a,
.preview-banner a { color: var(--clr-accent); text-decoration: underline; }

.preview-banner {
    position: relative;
    z-index: 5;
    margin: 0;
    padding: 8px 16px;
    text-align: center;
    font-size: 13px;
    background: var(--clr-bg-alt);
    color: var(--clr-text-dim);
    border-bottom: 1px solid var(--clr-border);
}
