
:root {
    --bg: #0f1720;
    --bg-soft: #15202c;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f8fbff;
    --muted: #b6c3d1;
    --accent: #11b5e4;
    --accent-strong: #49d8ff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 28px;
    --container: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.highlight {
    color: #11b5e4;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 10% 10%, rgba(17, 181, 228, 0.08), transparent 24%),
        radial-gradient(circle at 90% 80%, rgba(17, 181, 228, 0.08), transparent 24%),
        linear-gradient(180deg, #0f1720 0%, #0e151e 100%);
}

.site-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.45;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(10, 15, 22, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 24px;
    align-items: center;
    min-height: 92px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-logo-wrap {
    border-radius: 22px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
}

.brand-logo {
    height: 62px;
    width: auto;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-subtitle {
    font-size: 0.74rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

.nav {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.nav a {
    position: relative;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
    transform: scaleX(1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 18px;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #0b1118;
    box-shadow: 0 16px 40px rgba(17, 181, 228, 0.22);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border-color: var(--line);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 16px;
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 64px;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: saturate(0.75) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 32, 0.85) 0%, rgba(15, 23, 32, 0.65) 50%, rgba(15, 23, 32, 0.55) 100%);
}

.hero-pipes {
    position: absolute;
    right: -60px;
    top: 90px;
    width: min(36vw, 560px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px solid rgba(17, 181, 228, 0.12);
    box-shadow:
        inset 0 0 0 36px rgba(17, 181, 228, 0.03),
        inset 0 0 0 96px rgba(17, 181, 228, 0.025);
    opacity: 0.9;
}

.hero-pipes::before,
.hero-pipes::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(17,181,228,0.22), rgba(17,181,228,0.04));
}

.hero-pipes::before {
    left: -180px;
    top: 46%;
    width: 250px;
    height: 12px;
}

.hero-pipes::after {
    left: 34%;
    bottom: -110px;
    width: 12px;
    height: 180px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr; /* jemně víc prostoru pro text */
    gap: 80px; /* větší mezera = víc "luxus" */
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(17, 181, 228, 0.12);
    color: #adf0ff;
    border: 1px solid rgba(17, 181, 228, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
    font-weight: 700;
}

.hero-copy {
    max-width: 570px;   /* zúžení */
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    line-height: 1.05;
    max-width: 16ch;
    margin-bottom: 8px;
}

.section-heading h2,
.contact-card h2 {
    margin: 16px 0 0;
    font-size: clamp(2.35rem, 4.2vw, 3.95rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
    max-width: 11ch;
}

.hero-copy p {
    font-size: 1.08rem;
    max-width: 520px;
    margin-top: 16px;
    color: #cbd5e1; /* lehce světlejší */
    margin-top: 12px;
}

.hero-features {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.hero-features span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    color: #d7e5f1;
    font-size: 0.92rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    position: relative;
    display: block;

    padding: 18px;
    min-height: 125px;

    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.045)
        );

    backdrop-filter: blur(14px);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(17, 181, 228, 0.45);

    background:
        linear-gradient(
            145deg,
            rgba(17, 181, 228, 0.12),
            rgba(255, 255, 255, 0.05)
        );
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 13px;
}

.stat-header strong {
    color: #fff;
    font-size: 0.96rem;
    line-height: 1.25;
}

.stat-description {
    display: block;

    margin-top: 13px;

    color: #b9c5d1;
    font-size: 0.88rem;
    line-height: 1.5;
}

.stat-icon {
    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(17, 181, 228, 0.12);
    border: 1px solid rgba(17, 181, 228, 0.22);
}

.stat-icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: #11b5e4;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-content {
    min-width: 0;
}

.stat-content strong {
    display: block;
    margin-bottom: 5px;

    font-size: 0.96rem;
    line-height: 1.3;

    color: #ffffff;
}

.stat-content span {
    display: block;

    font-size: 0.88rem;
    line-height: 1.5;

    color: #b9c5d1;
}
.stat-card,
.hero-card,
.reference-card,
.service-card,
.contact-card,
.form-card,
.gallery-card {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}



.stat-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.stat-card span,
.section-heading p,
.service-card p,
.reference-content p,
.contact-list p,
.info-box p,
.hero-card-note p {
    color: var(--muted);
}

.hero-card {
    border-radius: 32px;
    padding: 30px;
    background: linear-gradient(
        180deg,
        rgba(21, 32, 44, 0.94),
        rgba(13, 20, 28, 0.94)
    );
}

.hero-card-logo {
    border-radius: 26px;
    padding: 4px 0 8px;
    margin-bottom: 4px;
    border: 0;
    background: transparent;
}

.hero-card-logo img {
    max-height: 84px;
    width: auto;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.35));
}

.hero-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.info-box {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel-strong);
    padding: 22px;
}

.hero-card-note {
    margin-top: 18px;

    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel-strong);

    padding: 22px;
}

.label {
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: #8fa4ba;
    font-weight: 700;
}

.info-box h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    line-height: 1.15;
}

.accent {
    color: #aaf0ff !important;
    font-weight: 700;
}

.section {
    padding: 72px 0;
}

.section-alt {
    background: rgba(255,255,255,0.03);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 28px;
    align-items: end;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.reference-grid,
.gallery-grid,
.services-grid,
.contact-grid {
    display: grid;
    gap: 22px;
}

.reference-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reference-card {
    border-radius: 30px;
    overflow: hidden;
}

.reference-visual {
    height: 240px;
    background: linear-gradient(135deg, rgba(17,181,228,0.16), rgba(255,255,255,0.03));
}

.reference-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    opacity: 0.9;
}

.reference-content {
    padding: 24px;
}

.reference-content h3,
.service-card h3,
.form-card h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

.gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
    border-radius: 28px;
    overflow: hidden;
}

.gallery-media {
    position: relative;
    min-height: 260px;
    background: linear-gradient(135deg, rgba(17,181,228,0.14), rgba(255,255,255,0.03));
}

.gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-media span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(8, 13, 18, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 700;
}

.gallery-media.fallback {
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(17,181,228,0.14), rgba(255,255,255,0.03)),
        url("PICTURES/WEB/section-pattern.svg") center/cover no-repeat;
}

.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
    border-radius: 28px;
    padding: 24px;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(17,181,228,0.13);
    color: var(--accent-strong);
    font-weight: 800;
}

.references-intro,
.services-intro {
    max-width: 540px;
    align-self: end;
    padding-bottom: 8px;
}

.references-intro::before,
.services-intro::before {
    content: "";
    display: block;

    width: 48px;
    height: 3px;
    margin-bottom: 18px;

    border-radius: 10px;
    background: #11b5e4;
}

.references-intro strong,
.services-intro strong {
    display: block;

    margin-bottom: 12px;

    color: #ffffff;
    font-size: 1.18rem;
    line-height: 1.4;
    font-weight: 700;
}

.references-intro p,
.services-intro p {
    margin: 0;

    color: #aebbc8;
    font-size: 1rem;
    line-height: 1.7;
}


.contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
}

.contact-card,
.form-card {
    border-radius: 32px;
    padding: 30px;
}

.contact-card {
    background:
        linear-gradient(135deg, rgba(17,181,228,0.14), rgba(255,255,255,0.03)),
        rgba(255,255,255,0.03);
}

.contact-list {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.contact-list a {
    color: #adf0ff;
    font-weight: 700;
}

.contact-form {
    margin-top: 20px;
}

.form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form label {
    display: block;
    margin-bottom: 16px;
}

.contact-form label span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(9, 14, 20, 0.75);
    color: var(--text);
    padding: 14px 16px;
    font: inherit;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(17, 181, 228, 0.25);
    border-color: rgba(17, 181, 228, 0.32);
}

.footer {
    border-top: 1px solid var(--line);
    padding: 24px 0 40px;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}


.section-heading .services-intro p {
    margin: 0;
    max-width: 540px;
    color: #aebbc8;
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .header-inner,
    .hero-grid,
    .section-heading,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        justify-content: flex-start;
    }

    .header-cta {
        display: none;
    }

    .hero-stats,
    .reference-grid,
    .gallery-grid,
    .services-grid,
    .hero-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding: 14px 0;
    }

    .brand {
        gap: 12px;
    }

    .brand-logo {
        height: 50px;
    }

    .brand-subtitle {
        letter-spacing: 0.16em;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        gap: 12px;
        padding: 8px 0 4px;
    }

    .nav.is-open {
        display: flex;
    }

    .hero {
        padding-top: 20px;
    }

    .hero-copy h1,
    .section-heading h2,
    .contact-card h2 {
        font-size: 2.2rem;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .hero-stats,
    .reference-grid,
    .gallery-grid,
    .services-grid,
    .hero-card-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-card,
    .form-card,
    .service-card,
    .hero-card,
    .gallery-card,
    .reference-card {
        border-radius: 24px;
    }

    .section {
        padding: 56px 0;
    }
}

/* Keep section headings visible below the sticky navigation. */
section[id] {
    scroll-margin-top: var(--header-offset, 130px);
}

.hero-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-list p {
    margin: 0;
}

.contact-list .contact-name {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    width: fit-content;
    max-width: 100%;
}

.contact-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: var(--accent-strong);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-link span {
    overflow-wrap: anywhere;
    min-width: 0;
}

.contact-link:hover span {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-link:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 4px;
    border-radius: 4px;
}

.recruitment-section[hidden] {
    display: none;
}

.recruitment-section {
    padding-bottom: 0;
}

.recruitment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 36px;
    border: 1px solid rgba(17, 181, 228, 0.28);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(17, 181, 228, 0.14), rgba(255, 255, 255, 0.03));
    box-shadow: var(--shadow);
}

.recruitment-copy {
    max-width: 680px;
    min-width: 0;
}

.recruitment-copy h2 {
    margin: 18px 0 14px;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.recruitment-copy p {
    margin: 0;
    color: var(--muted);
}

.recruitment-cta {
    flex-shrink: 0;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 12px;
}

@media (max-width: 1100px) {
    .recruitment-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .recruitment-card {
        padding: 24px;
        border-radius: 24px;
        gap: 24px;
    }

    .recruitment-cta {
        width: 100%;
    }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.certificates { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.certificates h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.certificates-intro { color: var(--muted); margin: 8px 0 24px; }
.certificates-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.certificate-card { padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.certificate-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(0,0,0,.15); color: var(--accent-strong); font-size: .85rem; font-weight: 600; }
.certificate-preview img { width: auto; height: 180px; max-width: 100%; object-fit: contain; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.certificate-preview:hover { background: rgba(17,181,228,.1); }
.certificate-card h4 { font-size: 1.05rem; margin: 20px 0 8px; }
.certificate-card p { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.certificate-pdf { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-strong); font-weight: 600; }
.certificate-dialog { width: min(900px, calc(100% - 24px)); max-height: 92vh; max-height: 92dvh; padding: 24px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 24px; overflow: auto; overscroll-behavior: contain; }
.certificate-dialog::backdrop { background: rgba(0,0,0,.8); }
.certificate-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: -24px; background: var(--bg); padding: 12px 0; z-index: 1; }
.certificate-dialog-header h2 { font-size: 1.15rem; margin: 0; }
.certificate-close { flex: 0 0 44px; width: 44px; height: 44px; font-size: 2rem; line-height: 1; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.certificate-full { width: 100%; height: auto; margin: 12px 0 20px; background: white; }
.certificate-full[hidden] { display: none; }
.certificate-preview:focus-visible, .certificate-pdf:focus-visible, .certificate-close:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; }
body.certificate-modal-open { overflow: hidden; }
@media (max-width: 760px) {
    .certificates-grid { grid-template-columns: 1fr; }
    .certificate-dialog { padding: 16px; border-radius: 16px; }
    .certificate-dialog-header { top: -16px; }
}

.project-open { display: block; height: 100%; }
.project-open .reference-visual img { mix-blend-mode: normal; opacity: 1; }
.project-open:hover .project-gallery-label { text-decoration: underline; text-underline-offset: 4px; }
.project-open:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: -3px; border-radius: 30px; }
.project-gallery-label { display: block; margin-top: 18px; color: var(--accent-strong); font-weight: 600; font-size: .9rem; }
.project-dialog { width: min(1100px, calc(100% - 24px)); max-height: 94vh; max-height: 94dvh; padding: 24px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); color: var(--text); }
.project-dialog::backdrop { background: rgba(0,0,0,.85); }
.project-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.project-dialog-heading h2 { margin: 0; font-size: clamp(1rem, 2.5vw, 1.5rem); }
.project-stage { margin-top: 18px; background: #090e14; border-radius: 12px; overflow: hidden; }
.project-stage img { width: 100%; height: 58vh; height: 58dvh; object-fit: contain; }
.project-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 16px 0; }
.project-thumbnails { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.project-thumbnails button { padding: 3px; border: 2px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; }
.project-thumbnails button[aria-pressed="true"] { border-color: var(--accent-strong); }
.project-thumbnails img { width: 74px; height: 56px; object-fit: cover; border-radius: 4px; }
.project-dialog button:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
@media (max-width: 760px) {
    .project-dialog { padding: 14px; border-radius: 16px; }
    .project-stage img { height: 48vh; height: 48dvh; }
}

.gallery-open { display: block; aspect-ratio: 4 / 3; min-height: 0; }
.gallery-open img { width: 100%; height: 100%; object-fit: cover; }
.gallery-open:hover span { border-color: var(--accent-strong); color: var(--accent-strong); }
.gallery-open:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: -3px; }

body.recruitment-popup-open { overflow: hidden; }
.recruitment-popup {
    width: min(620px, calc(100% - 24px));
    max-height: 90vh;
    max-height: 90dvh;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    color: var(--text);
    background: var(--bg);
    border: 1px solid rgba(17,181,228,.35);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.recruitment-popup::backdrop { background: rgba(0,0,0,.8); }
.recruitment-popup-exit { position: sticky; top: 0; z-index: 1; padding: 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.recruitment-popup-exit .btn { width: 100%; gap: 12px; padding: 12px 16px; font: inherit; font-weight: 700; }
.recruitment-popup-exit .btn span { font-size: 1.5rem; line-height: 1; }
.recruitment-popup-content { padding: 28px 32px 32px; background: linear-gradient(135deg, rgba(17,181,228,.12), transparent); }
.recruitment-popup-content h2 { margin: 20px 0 16px; font-size: clamp(1.65rem, 5vw, 2.3rem); line-height: 1.15; }
.recruitment-popup-content p { color: var(--muted); margin: 0 0 24px; }
.recruitment-popup .btn { text-align: center; }
.recruitment-popup .btn:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
@media (max-width: 760px) {
    .recruitment-popup-exit { padding: 16px; }
    .recruitment-popup-content { padding: 20px; }
    .recruitment-popup-content .btn { width: 100%; padding: 12px; }
}
