/* ==========================================================================
   1. GLOBÁLNÍ PROMĚNNÉ A ZÁKLADNÍ STYLY
   ========================================================================== */
:root {
    --adn-bg: #f6f2ec;
    --adn-dark: #182235;
    --adn-text: #253046;
    --adn-muted: #687386;
    --adn-card: #fffaf5;
    --adn-accent: #ee8a5b;
    --adn-accent2: #7aa7ff;
    --adn-border: rgba(24, 34, 53, .12);
    --adn-shadow: 0 28px 80px rgba(24, 34, 53, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--adn-bg);
    color: var(--adn-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==========================================================================
   2. STRUKTURA A STRÁNKOVÝ LAYOUT
   ========================================================================== */
.adn-container {
    width: min(1180px, calc(100vw - 40px));
    margin: 0 auto;
}

.adn-page {
    padding: 70px 0;
}

.adn-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
}

/* ==========================================================================
   3. HLAVIČKA A NAVIGACE
   ========================================================================== */
.adn-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 242, 236, .86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--adn-border);
}

.adn-header .adn-container {
    width: min(1380px, calc(100vw - 80px));
    max-width: 1380px;
    margin: 0 auto;
}

.adn-header-inner {
    min-height: 112px;
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    align-items: center;
    gap: 24px;
}

.adn-logo {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adn-logo img {
    max-height: 78px;
    width: auto;
}

.adn-nav {
    grid-column: 3;
    justify-self: end;
}

.adn-menu {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.adn-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 750;
    color: #2f3a50;
}

.adn-menu a:hover {
    background: #fff;
    color: var(--adn-dark);
    box-shadow: 0 10px 30px rgba(24, 34, 53, .08);
}

.adn-menu-toggle {
    grid-column: 1;
    justify-self: start;
    display: none;
    border: 0;
    background: transparent;
    color: var(--adn-dark);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

/* ==========================================================================
   4. ÚVODNÍ SEKCE HERO
   ========================================================================== */
.adn-hero {
    padding: 86px 0 78px;
    overflow: hidden;
}

.adn-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    gap: 56px;
    align-items: center;
}

.adn-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--adn-dark);
    font-size: clamp(42px, 6vw, 76px);
    line-height: .96;
    letter-spacing: -.07em;
}

.adn-lead {
    max-width: 700px;
    font-size: 20px;
    color: var(--adn-muted);
    margin: 24px 0 0;
}

.adn-badge,
.adn-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--adn-border);
    font-weight: 850;
    color: #8f4a28;
    font-size: 14px;
}

/* ==========================================================================
   5. TLAČÍTKA
   ========================================================================== */
.adn-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.adn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 16px;
    font-weight: 900;
}

.adn-btn-primary {
    background: linear-gradient(135deg, var(--adn-accent), #ffb36f);
    color: #29160d;
    box-shadow: 0 20px 45px rgba(238, 138, 91, .28);
}

.adn-btn-soft {
    background: #fff;
    color: var(--adn-dark);
    border: 1px solid var(--adn-border);
}

/* ==========================================================================
   6. SEKCE, KARTY A OBSAH
   ========================================================================== */
.adn-section {
    padding: 72px 0;
}

.adn-section h2 {
    margin: 0 0 18px;
    color: var(--adn-dark);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.adn-section p {
    color: var(--adn-muted);
    font-size: 18px;
}

.adn-section-dark {
    background: var(--adn-dark);
    color: #fff;
}

.adn-section-dark h2,
.adn-section-dark .adn-kicker {
    color: #fff;
}

.adn-section-dark p {
    color: rgba(255, 255, 255, .72);
}

.adn-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.adn-card,
.adn-note-card,
.adn-content-card {
    background: var(--adn-card);
    border: 1px solid var(--adn-border);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(24, 34, 53, .08);
}

.adn-card h3,
.adn-note-card h3 {
    margin: 0 0 10px;
    color: var(--adn-dark);
    font-size: 24px;
    letter-spacing: -.035em;
}

.adn-card p,
.adn-note-card p {
    margin: 0;
}

.adn-note-card {
    background: #fff;
}

.adn-content-card h1 {
    margin-top: 0;
    color: var(--adn-dark);
    font-size: 44px;
    letter-spacing: -.05em;
}

/* ==========================================================================
   7. HERO PANEL
   ========================================================================== */
.adn-hero-panel {
    position: relative;
    align-self: center;
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 34px;
    background: linear-gradient(145deg, #1b263b, #263957);
    box-shadow: var(--adn-shadow);
    color: #fff;
    overflow: hidden;
}

.adn-hero-panel:before {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(238, 138, 91, .28);
    filter: blur(10px);
}

.adn-metric {
    position: relative;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
}

.adn-metric span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: rgba(238, 138, 91, .95);
    align-items: center;
    justify-content: center;
    font-weight: 950;
    color: #1b263b;
}

.adn-metric strong {
    display: block;
    margin-top: 14px;
    font-size: 20px;
}

.adn-metric p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .72);
}

/* ==========================================================================
   8. SEZNAMY PROJEKTŮ
   ========================================================================== */
.adn-project-list {
    display: grid;
    gap: 14px;
}

.adn-project-list div {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
}

.adn-project-list strong {
    display: block;
    font-size: 20px;
}

.adn-project-list span {
    display: block;
    color: rgba(255, 255, 255, .68);
    margin-top: 4px;
}

/* ==========================================================================
   9. KONTAKT A PATIČKA
   ========================================================================== */
.adn-contact {
    padding-bottom: 90px;
}

.adn-contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient(135deg, #fff, #fff5ec);
    border: 1px solid var(--adn-border);
    box-shadow: var(--adn-shadow);
}

.adn-contact-box h2 {
    margin-bottom: 8px;
}

.adn-contact-box p {
    margin: 0;
}

.adn-footer {
    background: #111827;
    color: #fff;
    padding: 34px 0;
}

.adn-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.adn-footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.adn-footer-links a {
    color: rgba(255, 255, 255, .72);
}

/* ==========================================================================
   10. SPECIFICKÉ ÚPRAVY
   ========================================================================== */
.adn-kicker {
    background: rgba(122, 167, 255, 0.12);
    border: 1px solid rgba(122, 167, 255, 0.3);
    color: var(--adn-accent2);
    padding: 8px 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#historie .adn-container {
    width: min(1180px, calc(100vw - 40px));
    max-width: 1180px;
    margin: 0 auto;
}

/* ==========================================================================
   11. TABLET
   ========================================================================== */
@media (max-width: 980px) {
    .adn-header .adn-container {
        width: calc(100vw - 40px);
    }

    .adn-header-inner {
        min-height: 108px;
        grid-template-columns: 64px 1fr 64px;
        padding: 18px 0;
    }

    .adn-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        color: var(--adn-dark);
        font-size: 34px;
        box-shadow: none;
    }

    .adn-logo {
        grid-column: 2;
        justify-self: center;
    }

    .adn-logo img {
        max-height: 70px;
    }

    .adn-nav {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 20px;
        right: 20px;
        z-index: 100;
        padding: 16px;
        border-radius: 24px;
        background: #fff;
        box-shadow: var(--adn-shadow);
    }

    .adn-nav.is-open {
        display: block;
    }

    .adn-menu {
        display: grid;
        gap: 4px;
    }

    .adn-menu a {
        padding: 14px 16px;
    }

    .adn-hero {
        padding: 58px 0 64px;
    }

    .adn-hero-grid,
    .adn-split {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .adn-hero h1 {
        max-width: 760px;
        font-size: clamp(44px, 7vw, 66px);
    }

    .adn-lead {
        max-width: 760px;
    }

    .adn-cards {
        grid-template-columns: 1fr;
    }

    .adn-contact-box,
    .adn-footer-inner {
        display: grid;
    }

    .adn-section {
        padding: 54px 0;
    }
}

/* ==========================================================================
   12. MOBIL
   ========================================================================== */
@media (max-width: 560px) {
    .adn-container {
        width: min(100% - 28px, 1180px);
    }

    .adn-header .adn-container {
        width: calc(100vw - 28px);
    }

    .adn-header-inner {
        min-height: 92px;
        grid-template-columns: 48px 1fr 48px;
    }

    .adn-menu-toggle {
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

    .adn-logo img {
        max-height: 54px;
    }

    .adn-hero {
        padding: 42px 0 52px;
    }

    .adn-badge,
    .adn-kicker {
        font-size: 12px;
        padding: 7px 11px;
        max-width: 100%;
    }

    .adn-hero h1 {
        font-size: 40px;
        line-height: .98;
        letter-spacing: -.065em;
    }

    .adn-lead {
        font-size: 18px;
        line-height: 1.65;
    }

    .adn-actions {
        display: grid;
        gap: 12px;
    }

    .adn-actions .adn-btn {
        width: 100%;
    }

    .adn-hero-panel {
        padding: 18px;
        border-radius: 28px;
    }

    .adn-metric {
        padding: 20px;
        border-radius: 22px;
    }

    .adn-card,
    .adn-note-card,
    .adn-content-card {
        border-radius: 22px;
        padding: 22px;
    }
}
/* FIX HLAVIČKY DESKTOP – logo vlevo, menu vpravo v jednom řádku */
@media (min-width: 981px) {
    .adn-header-inner {
        min-height: 96px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 40px !important;
    }

    .adn-logo {
        grid-column: auto !important;
        justify-self: auto !important;
        margin: 0 !important;
    }

    .adn-logo img {
        max-height: 66px !important;
    }

    .adn-nav {
        grid-column: auto !important;
        justify-self: auto !important;
        margin-left: auto !important;
    }

    .adn-menu {
        display: flex !important;
        gap: 34px !important;
        align-items: center !important;
    }
}

/* tablet/mobil zůstává: hamburger vlevo, logo střed */
@media (max-width: 980px) {
    .adn-header-inner {
        display: grid !important;
        grid-template-columns: 56px 1fr 56px !important;
    }

    .adn-logo {
        grid-column: 2 !important;
        justify-self: center !important;
    }

    .adn-menu-toggle {
        grid-column: 1 !important;
        display: flex !important;
    }
}
/* FINÁLNÍ FIX HLAVIČKY – DESKTOP */
@media (min-width: 981px) {
    .adn-header {
        height: auto !important;
    }

    .adn-header .adn-container {
        width: min(1380px, calc(100vw - 80px)) !important;
        max-width: 1380px !important;
        margin: 0 auto !important;
    }

    .adn-header-inner {
        min-height: 96px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 40px !important;
        padding: 16px 0 !important;
    }

    .adn-logo {
        order: 1 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .adn-logo img {
        max-height: 64px !important;
        width: auto !important;
        display: block !important;
    }

    .adn-nav {
        order: 2 !important;
        display: block !important;
        position: static !important;
        margin-left: auto !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .adn-menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 34px !important;
    }

    .adn-menu-toggle {
        display: none !important;
    }
}
.adn-header {
    background: red !important;
}
/* DOČASNĚ SMAZAT TEST */
.adn-header {
    background: rgba(246, 242, 236, .86) !important;
}

/* MOBIL/TABLET – pevná nízká hlavička */
@media (max-width: 980px) {
    .adn-header-inner {
        min-height: 96px !important;
        height: 96px !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .adn-logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    .adn-logo img {
        max-height: 56px !important;
        width: auto !important;
        display: block !important;
    }

    .adn-menu-toggle {
        position: absolute !important;
        left: 18px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 48px !important;
        height: 48px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: 0 !important;
        font-size: 36px !important;
        line-height: 1 !important;
        color: var(--adn-dark) !important;
        z-index: 10 !important;
    }

    .adn-nav.is-open {
        top: calc(100% + 14px) !important;
        left: auto !important;
        right: 18px !important;
        width: 260px !important;
        padding: 26px !important;
    }
}
/* ADMANET – language switcher CS / EN */
.adn-lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 18px;
}

.adn-lang-switcher ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.adn-lang-switcher li {
    margin: 0;
    padding: 0;
}

.adn-lang-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.18);
    transition: .2s ease;
}

.adn-lang-switcher a:hover {
    background: rgba(255,255,255,.20);
    transform: translateY(-1px);
}

.adn-lang-switcher .current-lang a {
    background: #ffffff;
    color: #111827;
    border-color: #ffffff;
}

/* mobile */
@media (max-width: 760px) {
    .adn-lang-switcher {
        margin-left: 0;
        margin-top: 14px;
        justify-content: center;
        width: 100%;
    }

    .adn-lang-switcher ul {
        justify-content: center;
    }
}
/* ADMANET – language switcher fix */
.adn-lang-switcher,
.adn-lang-switcher ul,
.adn-lang-switcher li {
    list-style: none !important;
}

.adn-lang-switcher ul {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.adn-lang-switcher li::marker {
    content: "" !important;
}

.adn-lang-switcher li {
    margin: 0 !important;
    padding: 0 !important;
}

.adn-lang-switcher {
    display: flex !important;
    align-items: center !important;
    margin-left: 18px !important;
}

.adn-lang-switcher a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.55) !important;
    color: #111827 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

.adn-lang-switcher .current-lang a {
    background: #ffffff !important;
    color: #111827 !important;
}
/* ADMANET – header/menu align fix */
.adn-header-inner,
.adn-nav {
    display: flex !important;
    align-items: center !important;
}

.adn-header-inner {
    justify-content: space-between !important;
}

.adn-nav {
    gap: 28px !important;
}

.adn-menu {
    display: flex !important;
    align-items: center !important;
    gap: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.adn-menu li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.adn-lang-switcher {
    margin-left: 8px !important;
}

.adn-lang-switcher ul {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}