/* 3nicom.cz – redesign 2026 („nx“): hlavička, patička a homepage.
   Podstránky zatím jedou na body.theme-dark z 3nicom.css, homepage má body.nx-page. */

/* Písmo hostované lokálně (OFL) – žádný přenos IP návštěvníků na Google Fonts */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --nx-ink: #0b1d18;
    --nx-ink-deep: #071410;
    --nx-ink-raised: #13302a;
    --nx-green: #6cc24a;
    --nx-green-dark: #2f7a1f;
    --nx-green-darker: #1f5a12;
    --nx-stone: #f2f4f0;
    --nx-line: #dfe3df;
    --nx-line-stone: #d6dbd5;
    --nx-text: #14201c;
    --nx-muted: #56635e;
    --nx-on-dark: #c9d4cf;
    --nx-on-dark-muted: #a9bab2;
    --nx-line-dark: rgba(255, 255, 255, 0.12);
    --nx-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --nx-header-h: 84px;
}

body,
button,
input,
select,
textarea {
    font-family: var(--nx-font);
}

body {
    padding-top: 0;
}

html {
    scroll-padding-top: var(--nx-header-h);
}

.nx-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: clamp(16px, 4vw, 48px);
    padding-right: clamp(16px, 4vw, 48px);
}

.nx-arrow {
    width: 16px;
    height: 16px;
    flex: none;
}

/* ---------- Tlačítka ---------- */

.nx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}

.nx-btn--lg {
    min-height: 56px;
    padding: 0 30px;
    font-size: 16px;
}

.nx-btn--primary,
body .nx-btn--primary {
    background: var(--nx-green);
    color: var(--nx-ink) !important;
}

.nx-btn--primary:hover,
body .nx-btn--primary:hover {
    background: #8fd96f;
    color: var(--nx-ink) !important;
}

.nx-btn--ghost-light,
body .nx-btn--ghost-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    font-weight: 600;
}

.nx-btn--ghost-light:hover,
body .nx-btn--ghost-light:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nx-btn--outline,
body .nx-btn--outline {
    border-color: var(--nx-ink);
    color: var(--nx-ink) !important;
    font-weight: 600;
}

.nx-btn--outline:hover,
body .nx-btn--outline:hover {
    background: var(--nx-ink);
    color: #ffffff !important;
}

.nx-btn--dark,
body .nx-btn--dark {
    background: var(--nx-ink);
    color: #ffffff !important;
}

.nx-btn--dark:hover,
body .nx-btn--dark:hover {
    background: var(--nx-ink-raised);
}

/* ---------- Hlavička ---------- */

.nx-header.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0;
    background: var(--nx-ink);
    border-bottom: 1px solid var(--nx-line-dark);
}

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

.nx-header .navbar-brand {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nx-header__logo {
    display: block;
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nx-header .navbar-collapse {
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.nx-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

body .nx-nav .nav-link {
    padding: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

body .nx-nav .nav-link:hover,
body .nx-nav .nav-link:focus {
    color: #8fd96f;
}

.nx-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

body .nx-header__phone {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

body .nx-header__phone:hover {
    color: #8fd96f;
}

.nx-header .navbar-toggler {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0;
    color: #ffffff;
}

.nx-header .navbar-toggler svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1180px) and (min-width: 992px) {
    .nx-nav { gap: 22px; }
    .nx-header__phone { display: none; }
}

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

    .nx-header__inner { flex-wrap: wrap; gap: 0; }

    .nx-header__logo { height: 36px; }

    .nx-header .navbar-toggler { display: inline-flex; }

    .nx-header .navbar-collapse {
        flex-basis: 100%;
        gap: 0;
    }

    .nx-header .navbar-collapse.show,
    .nx-header .navbar-collapse.collapsing {
        border-top: 1px solid var(--nx-line-dark);
    }

    .nx-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 8px 0 0;
    }

    body .nx-nav .nav-link {
        display: block;
        padding: 14px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--nx-line-dark);
    }

    .nx-header__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 20px 0 24px;
    }

    .nx-header__actions .nx-btn { width: 100%; }
}

/* ---------- Homepage: základ ---------- */

body.nx-page {
    background: #ffffff;
    color: var(--nx-text);
    font-size: 17px;
    line-height: 1.6;
}

body.nx-page main a {
    color: var(--nx-green-dark);
}

body.nx-page main a:hover {
    color: var(--nx-green-darker);
    text-decoration: none;
}

.nx-section {
    padding: clamp(72px, 9vw, 128px) 0;
}

.nx-section--stone { background: var(--nx-stone); }

.nx-section--dark {
    background: var(--nx-ink);
    color: #ffffff;
}

.nx-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nx-green-dark);
}

.nx-section--dark .nx-eyebrow,
.nx-contact .nx-eyebrow { color: var(--nx-green); }

.nx-h2 {
    margin: 14px 0 0;
    font-size: clamp(32px, 3.6vw, 52px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: inherit;
}

.nx-lead {
    margin: 0;
    color: var(--nx-muted);
}

.nx-section-head {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 64px;
    align-items: flex-end;
    justify-content: space-between;
}

.nx-section-head__title {
    flex: 1 1 560px;
    min-width: 0;
}

.nx-section-head .nx-lead {
    flex: 1 1 360px;
    max-width: 460px;
}

/* ---------- Hero ---------- */

.nx-hero {
    background-color: var(--nx-ink);
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 120px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 120px);
    color: #ffffff;
}

.nx-hero__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: center;
    padding-top: clamp(56px, 9vw, 120px);
    padding-bottom: clamp(64px, 9vw, 128px);
}

.nx-hero__text {
    flex: 1.35 1 520px;
    min-width: 0;
}

.nx-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nx-on-dark-muted);
}

.nx-hero__eyebrow:before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 2px;
    background: var(--nx-green);
    flex: none;
}

.nx-hero__title {
    margin: 24px 0 0;
    font-size: clamp(38px, 5.6vw, 76px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.nx-hero__title em {
    font-style: normal;
    color: var(--nx-green);
}

.nx-hero__lead {
    margin: 28px 0 0;
    max-width: 620px;
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 300;
    color: var(--nx-on-dark);
}

.nx-hero__actions {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.nx-hero__visual {
    flex: 1 1 400px;
    min-width: 0;
    position: relative;
    aspect-ratio: 1 / 0.92;
}

.nx-browser {
    position: absolute;
    background: var(--nx-ink-raised);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.nx-browser--back { right: 0; top: 0; width: 78%; }
.nx-browser--front { left: 0; bottom: 0; width: 58%; }

.nx-browser__bar {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nx-browser__bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.nx-browser img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top;
}

/* Čísla */

.nx-stats {
    border-top: 1px solid var(--nx-line-dark);
    background: rgba(0, 0, 0, 0.18);
}

.nx-stats__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nx-stat {
    padding: 36px 24px;
    border-right: 1px solid var(--nx-line-dark);
}

.nx-stat:first-child { padding-left: 0; }
.nx-stat:last-child { border-right: 0; }

.nx-stat__num {
    font-size: clamp(40px, 4vw, 58px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.nx-stat__num span { color: var(--nx-green); }

.nx-stat__label {
    margin-top: 10px;
    font-size: 14px;
    color: var(--nx-on-dark-muted);
}

@media (max-width: 991.98px) {
    .nx-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nx-stat { padding: 28px 16px 28px 0; border-right: 0; border-bottom: 1px solid var(--nx-line-dark); }
    .nx-stat:first-child { grid-column: 1 / -1; }
    .nx-stat:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 575.98px) {
    .nx-hero__visual { display: none; }
}

/* ---------- Služby ---------- */

/* style.css má section#sluzby h2/h3 s oranžovou barvou – přebít přes id */
#sluzby .nx-h2 {
    font-size: clamp(32px, 3.6vw, 52px);
    font-weight: 800;
    color: var(--nx-text);
}

#sluzby .nx-service__title {
    font-size: 24px;
    font-weight: 700;
    color: inherit;
}

.nx-services {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--nx-line);
    border-left: 1px solid var(--nx-line);
}

body.nx-page main a.nx-service {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 280px;
    padding: 36px 32px 40px;
    border-right: 1px solid var(--nx-line);
    border-bottom: 1px solid var(--nx-line);
    color: var(--nx-text);
    transition: background-color .2s;
}

body.nx-page main a.nx-service:hover { background: var(--nx-stone); }

.nx-service__num {
    font-size: 14px;
    font-weight: 700;
    color: var(--nx-green-dark);
}

.nx-service__title {
    margin: 18px 0 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: inherit;
}

.nx-service__text {
    margin: 0;
    font-size: 16px;
    color: var(--nx-muted);
}

.nx-service__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--nx-green-dark);
}

body.nx-page main a.nx-service--cta {
    background: var(--nx-ink);
    color: #ffffff;
}

body.nx-page main a.nx-service--cta:hover { background: var(--nx-ink-raised); }

.nx-service--cta .nx-service__num,
.nx-service--cta .nx-service__more { color: var(--nx-green); }

@media (max-width: 1199.98px) {
    .nx-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .nx-services { grid-template-columns: minmax(0, 1fr); }
    body.nx-page main a.nx-service { min-height: 0; padding: 28px 24px 32px; }
}

/* ---------- Realizace ---------- */

.nx-projects {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

body.nx-page main a.nx-project {
    display: block;
    background: #ffffff;
    color: var(--nx-text);
}

.nx-project__thumb {
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.nx-project__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .4s;
}

.nx-project:hover .nx-project__thumb img { transform: scale(1.03); }

.nx-project__body {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 22px 24px 26px;
}

.nx-project__name {
    font-size: 19px;
    font-weight: 700;
}

.nx-project__meta {
    font-size: 14px;
    color: var(--nx-muted);
    text-align: right;
}

.nx-logos-title {
    margin-top: 80px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nx-muted);
}

.nx-logos {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--nx-line-stone);
    border-left: 1px solid var(--nx-line-stone);
}

body.nx-page main a.nx-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 104px;
    padding: 0 24px;
    border-right: 1px solid var(--nx-line-stone);
    border-bottom: 1px solid var(--nx-line-stone);
}

.nx-logo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 38px;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .2s, opacity .2s;
}

.nx-logo--light img { filter: brightness(0); opacity: .55; }

.nx-logo:hover img {
    filter: none;
    opacity: 1;
}

.nx-logo--light:hover img { filter: brightness(0); opacity: .9; }

@media (max-width: 991.98px) {
    .nx-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nx-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .nx-projects { grid-template-columns: minmax(0, 1fr); }
    .nx-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.nx-page main a.nx-logo { height: 88px; padding: 0 16px; }
}

/* ---------- Jak pracujeme ---------- */

.nx-steps {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
}

.nx-step {
    border-top: 2px solid rgba(255, 255, 255, 0.25);
    padding-top: 28px;
}

.nx-step:first-child { border-top-color: var(--nx-green); }

.nx-step__num {
    font-size: 64px;
    font-weight: 200;
    line-height: 1;
    color: rgba(255, 255, 255, 0.35);
}

.nx-step__title {
    margin: 24px 0 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.nx-step__text {
    margin: 12px 0 0;
    color: var(--nx-on-dark);
}

@media (max-width: 767.98px) {
    .nx-steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* ---------- Hosting a správa ---------- */

.nx-split {
    display: flex;
    flex-wrap: wrap;
    gap: 56px 80px;
}

.nx-split__side {
    flex: 1 1 420px;
    min-width: 0;
}

.nx-split__main {
    flex: 1 1 520px;
    min-width: 0;
}

.nx-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    border-top: 1px solid var(--nx-line);
}

.nx-feature {
    display: flex;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--nx-line);
}

.nx-feature svg {
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    color: var(--nx-green-dark);
}

.nx-feature__title { font-weight: 700; }

.nx-feature__text {
    font-size: 15px;
    color: var(--nx-muted);
}

@media (max-width: 575.98px) {
    .nx-features { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Technologie ---------- */

.nx-tech {
    background: var(--nx-stone);
    padding: clamp(32px, 4vw, 56px);
}

.nx-tech__head {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    align-items: baseline;
    justify-content: space-between;
}

.nx-tech__title {
    margin: 0;
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--nx-text);
}

.nx-tech__grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.nx-tech__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nx-green-dark);
}

.nx-tech__list {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.9;
}

@media (max-width: 991.98px) {
    .nx-tech__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .nx-tech__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- FAQ ---------- */

.nx-faq {
    flex: 999 1 560px;
    min-width: 0;
    border-top: 1px solid var(--nx-line);
}

.nx-faq__side {
    flex: 1 1 340px;
    min-width: 0;
}

.nx-faq details { border-bottom: 1px solid var(--nx-line); }

.nx-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    font-size: 19px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.nx-faq summary::-webkit-details-marker { display: none; }

.nx-faq summary:after {
    content: "+";
    flex: none;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: var(--nx-green-dark);
    transition: transform .2s;
}

.nx-faq details[open] summary:after { transform: rotate(45deg); }

.nx-faq__answer {
    margin: 0 0 24px;
    max-width: 720px;
    color: var(--nx-muted);
}

/* ---------- Kontakt ---------- */

.nx-contact {
    background-color: var(--nx-ink);
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 120px);
    color: #ffffff;
}

.nx-contact__title {
    margin: 14px 0 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.nx-contact__lead {
    margin: 24px 0 0;
    max-width: 480px;
    color: var(--nx-on-dark);
}

.nx-contact__list {
    margin-top: 48px;
    display: grid;
    gap: 28px;
}

.nx-contact__label {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nx-on-dark-muted);
}

body.nx-page main a.nx-contact__value {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    color: #ffffff;
}

body.nx-page main a.nx-contact__value:hover { color: #8fd96f; }

.nx-contact__address { color: #e3eae6; }

.nx-form {
    flex: 1 1 480px;
    min-width: 0;
    display: grid;
    gap: 20px;
    padding: clamp(28px, 4vw, 48px);
    background: #ffffff;
    color: var(--nx-text);
}

.nx-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.nx-field {
    display: grid;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.nx-field__req { color: #b3261e; }

.nx-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #c4cbc6;
    border-radius: 0;
    background: #ffffff;
    color: var(--nx-text);
    font-size: 16px;
    font-weight: 400;
}

textarea.nx-input {
    height: auto;
    padding: 14px 16px;
    resize: vertical;
}

.nx-input:focus {
    outline: 2px solid var(--nx-green-dark);
    outline-offset: -1px;
    border-color: var(--nx-green-dark);
}

.nx-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    font-size: 14px;
    color: var(--nx-muted);
}

.nx-consent input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--nx-green-dark);
}

.nx-form .nx-btn { width: 100%; }

@media (max-width: 575.98px) {
    .nx-form__row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Patička ---------- */

.nx-footer {
    background: var(--nx-ink-deep);
    color: var(--nx-on-dark);
    font-size: 15px;
    line-height: 1.6;
}

.nx-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding-top: 72px;
    padding-bottom: 40px;
}

.nx-footer__logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nx-footer__about {
    margin: 20px 0 0;
    max-width: 280px;
}

.nx-footer__heading {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
}

.nx-footer__links {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

body .nx-footer a {
    color: var(--nx-on-dark);
}

body .nx-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.nx-footer__social {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

body .nx-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 18px;
}

body .nx-footer__social a:hover { border-color: #ffffff; }

.nx-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    justify-content: space-between;
    padding-top: 24px;
    padding-bottom: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #93a49c;
}

@media (max-width: 991.98px) {
    .nx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .nx-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 56px; }
}

/* Plovoucí tlačítko WhatsApp (dříve v 3nicom.css) */
body .whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 6500;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
    transition: transform .16s ease, box-shadow .16s ease;
}

body .whatsapp-float:hover,
body .whatsapp-float:focus {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

/* Na mobilu menší, ať nepřekrývá odesílací tlačítko formuláře */
@media (max-width: 575.98px) {
    body .whatsapp-float { width: 48px; height: 48px; right: 12px; bottom: 12px; }
    body .whatsapp-float svg { width: 24px; height: 24px; }
}

/* =====================================================================
   Podstránky
   ===================================================================== */

.nx-section--tight { padding: clamp(40px, 5vw, 64px) 0; }

/* Úvodní pás podstránky */

.nx-page-hero {
    background-color: var(--nx-ink);
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 120px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 120px);
    color: #ffffff;
    padding: clamp(28px, 4vw, 40px) 0 clamp(56px, 7vw, 96px);
}

.nx-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: var(--nx-on-dark-muted);
}

body.nx-page .nx-breadcrumb a { color: var(--nx-on-dark); }
body.nx-page .nx-breadcrumb a:hover { color: #ffffff; }

.nx-page-hero__grid {
    margin-top: clamp(40px, 6vw, 72px);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 48px 80px;
}

.nx-page-hero__grid > div:first-child {
    flex: 1.4 1 560px;
    min-width: 0;
}

.nx-page-hero__title {
    margin: 22px 0 0;
    font-size: clamp(36px, 4.6vw, 64px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.nx-page-hero__title em {
    font-style: normal;
    color: var(--nx-green);
}

.nx-page-hero__lead {
    margin: 24px 0 0;
    max-width: 640px;
    font-size: clamp(17px, 1.4vw, 19px);
    font-weight: 300;
    color: var(--nx-on-dark);
}

.nx-page-hero__stats {
    flex: 1 1 360px;
    min-width: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--nx-line-dark);
}

.nx-page-hero__stats > div {
    padding: 22px 16px 22px 0;
    border-bottom: 1px solid var(--nx-line-dark);
}

.nx-page-hero__stats dt {
    font-size: clamp(34px, 3.2vw, 46px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
}

.nx-page-hero__stats dt span { color: var(--nx-green); }

.nx-page-hero__stats dd {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--nx-on-dark-muted);
}

/* Výzva k akci na konci stránky */

.nx-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px 64px;
}

.nx-cta__inner > div:first-child {
    flex: 1 1 560px;
    min-width: 0;
}

.nx-cta__lead {
    margin: 20px 0 0;
    max-width: 560px;
    color: var(--nx-on-dark);
}

.nx-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- Reference ---------- */

.nx-ref-toolbar {
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

.nx-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nx-filter {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--nx-line-stone);
    border-radius: 0;
    background: #ffffff;
    color: var(--nx-text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}

.nx-filter:hover { border-color: var(--nx-ink); }

.nx-filter[aria-pressed="true"] {
    background: var(--nx-ink);
    border-color: var(--nx-ink);
    color: #ffffff;
}

.nx-filter:focus-visible,
.nx-search input:focus-visible {
    outline: 2px solid var(--nx-green-dark);
    outline-offset: 2px;
}

.nx-search {
    position: relative;
    flex: 0 1 340px;
    min-width: 220px;
    margin: 0;
}

.nx-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--nx-muted);
    pointer-events: none;
}

.nx-search input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    border: 1px solid var(--nx-line-stone);
    border-radius: 0;
    background: #ffffff;
    color: var(--nx-text);
    font-size: 15px;
}

.nx-ref-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

body.nx-page main a.nx-ref-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: var(--nx-text);
    box-shadow: 0 1px 0 rgba(11, 29, 24, 0.06);
    transition: box-shadow .25s, transform .25s;
}

body.nx-page main a.nx-ref-card:hover {
    box-shadow: 0 24px 48px -24px rgba(11, 29, 24, 0.35);
    transform: translateY(-3px);
}

.nx-ref-card__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--nx-line);
}

.nx-ref-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .5s;
}

.nx-ref-card:hover .nx-ref-card__thumb img { transform: scale(1.04); }

.nx-ref-card__tag {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 5px 10px;
    background: var(--nx-ink);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nx-ref-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 24px 24px;
}

.nx-ref-card__client {
    font-size: 14px;
    font-weight: 600;
    color: var(--nx-text);
}

.nx-ref-card__client span {
    font-weight: 400;
    color: var(--nx-muted);
}

.nx-ref-card__title {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--nx-text);
}

.nx-ref-card__integ {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 8px 10px;
    background: var(--nx-stone);
    font-size: 14px;
    color: var(--nx-muted);
}

.nx-ref-card__integ svg {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--nx-green-dark);
}

.nx-ref-card__integ strong { color: var(--nx-text); }

.nx-ref-card__link {
    margin-top: auto;
    padding-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--nx-green-dark);
}

.nx-ref-more { margin-top: clamp(64px, 7vw, 96px); }

.nx-ref-more__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--nx-ink);
}

.nx-ref-more__title {
    margin: 0;
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 800;
    color: var(--nx-text);
}

.nx-ref-more__count {
    font-size: 15px;
    color: var(--nx-muted);
}

.nx-ref-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 32px;
}

body.nx-page main a.nx-ref-tile {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 12px;
    min-height: 56px;
    padding: 16px 0;
    border-bottom: 1px solid var(--nx-line-stone);
    color: var(--nx-text);
}

body.nx-page main a.nx-ref-tile:hover { color: var(--nx-green-dark); }

.nx-ref-tile__domain {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.nx-ref-tile__type {
    flex: none;
    font-size: 13px;
    color: var(--nx-muted);
}

.nx-ref-item[hidden],
.nx-ref-empty[hidden],
[data-ref-group][hidden] { display: none !important; }

.nx-ref-empty {
    margin-top: 40px;
    padding: 32px;
    background: #ffffff;
    color: var(--nx-muted);
}

.nx-ref-empty p { margin: 0; }

.nx-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--nx-green-dark);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 1199.98px) {
    .nx-ref-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .nx-ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nx-ref-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .nx-ref-grid { grid-template-columns: minmax(0, 1fr); }
    .nx-ref-list { grid-template-columns: minmax(0, 1fr); }
    .nx-search { flex-basis: 100%; }
    .nx-filters { width: 100%; }
    .nx-filter { flex: 1 1 auto; padding: 0 14px; }
}

/* ---------- Služby a Projekty ---------- */

.nx-subnav {
    position: sticky;
    top: var(--nx-header-h);
    z-index: 1020;
    background: #ffffff;
    border-bottom: 1px solid var(--nx-line);
}

.nx-subnav__inner {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nx-subnav__inner::-webkit-scrollbar { display: none; }

body.nx-page .nx-subnav a {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    border-bottom: 2px solid transparent;
    color: var(--nx-text);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

body.nx-page .nx-subnav a:hover,
body.nx-page .nx-subnav a.is-active {
    color: var(--nx-green-dark);
    border-bottom-color: var(--nx-green-dark);
}

.nx-block { padding: clamp(64px, 8vw, 112px) 0; scroll-margin-top: calc(var(--nx-header-h) + 56px); }
.nx-block + .nx-block { border-top: 1px solid var(--nx-line); }
.nx-block--stone { background: var(--nx-stone); }
.nx-block--stone + .nx-block,
.nx-block + .nx-block--stone { border-top: 0; }

.nx-block__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px 80px;
    align-items: start;
}

.nx-block__num {
    font-size: 14px;
    font-weight: 700;
    color: var(--nx-green-dark);
}

.nx-block__title {
    margin: 14px 0 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--nx-text);
}

.nx-block__lead {
    margin: 20px 0 0;
    color: var(--nx-muted);
}

.nx-block__aside { margin-top: 28px; }

.nx-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.nx-panels--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.nx-panel {
    padding: 28px;
    background: var(--nx-stone);
}

.nx-block--stone .nx-panel { background: #ffffff; }

.nx-panel__title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nx-green-dark);
}

.nx-panel__title + .nx-tags { margin-top: 0; }
.nx-list + .nx-panel__title,
.nx-tags + .nx-panel__title { margin-top: 24px; }

.nx-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    font-size: 16px;
}

.nx-list li {
    position: relative;
    padding-left: 22px;
}

.nx-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background: var(--nx-green);
}

.nx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nx-tag {
    padding: 4px 10px;
    border: 1px solid var(--nx-line-stone);
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.nx-facts {
    margin: 28px 0 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--nx-line);
}

.nx-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--nx-line);
    font-size: 15px;
}

.nx-facts dt { font-weight: 400; color: var(--nx-muted); }
.nx-facts dd { margin: 0; font-weight: 700; text-align: right; }

.nx-band {
    padding: clamp(48px, 6vw, 72px) 0;
    background: var(--nx-ink);
    color: #ffffff;
}

.nx-band .nx-cta__inner { align-items: center; }

.nx-band__title {
    margin: 0;
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .nx-block__grid { grid-template-columns: minmax(0, 1fr); }
    .nx-panels--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767.98px) {
    .nx-panels { grid-template-columns: minmax(0, 1fr); }
    :root { --nx-subnav-h: 52px; }
    body.nx-page .nx-subnav a { min-height: 52px; }
}

/* ---------- Textové stránky ---------- */

.nx-prose {
    max-width: 760px;
    font-size: 17px;
}

.nx-prose h2 {
    margin: 40px 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--nx-text);
}

.nx-prose h2:first-child { margin-top: 0; }
.nx-prose p { margin: 0 0 16px; color: #33413c; }
.nx-prose code { color: var(--nx-text); background: var(--nx-stone); padding: 1px 6px; }

/* Služby jako nelinkované dlaždice (např. Codex Limits) */
.nx-services--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

div.nx-service {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 36px 32px 40px;
    border-right: 1px solid var(--nx-line);
    border-bottom: 1px solid var(--nx-line);
}

@media (max-width: 1199.98px) {
    .nx-services--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .nx-services--4 { grid-template-columns: minmax(0, 1fr); }
    div.nx-service { padding: 28px 24px 32px; }
}

/* Odkazy na tmavém pozadí uvnitř obsahu */
body.nx-page main a.nx-link-light {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.nx-page main a.nx-link-light:hover { color: #8fd96f; }

.nx-panel p { margin: 0 0 14px; }
.nx-panel code,
.nx-list code { color: var(--nx-text); background: rgba(11, 29, 24, 0.06); padding: 1px 6px; }

/* Náhled aplikace Codex Limits */
.nx-app-teaser {
    flex: 1 1 360px;
    min-width: 0;
    max-width: 440px;
    background: var(--nx-ink-raised);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.nx-app-teaser__body { padding: 24px; }

.nx-app-teaser__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.nx-app-teaser__name { font-size: 18px; font-weight: 700; }
.nx-app-teaser__meta { font-size: 13px; color: var(--nx-on-dark-muted); }

.nx-app-teaser__badge {
    padding: 3px 10px;
    background: var(--nx-green);
    color: var(--nx-ink);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nx-app-teaser__stats {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.nx-app-teaser__stats div {
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nx-app-teaser__stats span {
    display: block;
    font-size: 12px;
    color: var(--nx-on-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nx-app-teaser__stats strong {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    font-weight: 300;
}

.nx-app-teaser__preview {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 13px;
    color: var(--nx-on-dark-muted);
}

.nx-app-teaser__preview code {
    color: #ffffff;
    background: none;
    font-size: 15px;
}

/* ---------- Přístupnost ---------- */

.nx-skip {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--nx-green);
    color: var(--nx-ink) !important;
    font-weight: 700;
}

.nx-skip:focus { top: 12px; }

#main:focus { outline: none; }

body.nx-page a:focus-visible,
body.nx-page button:focus-visible,
body.nx-page summary:focus-visible,
body.nx-page input:focus-visible,
body.nx-page textarea:focus-visible {
    outline: 2px solid var(--nx-green);
    outline-offset: 3px;
}

body.nx-page main a:focus-visible,
body.nx-page main button:focus-visible,
body.nx-page main summary:focus-visible {
    outline-color: var(--nx-green-dark);
}

body.nx-page .nx-section--dark a:focus-visible,
body.nx-page .nx-contact a:focus-visible,
body.nx-page .nx-page-hero a:focus-visible,
body.nx-page .nx-hero a:focus-visible {
    outline-color: var(--nx-green);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
