:root {
    --ink: #162422;
    --muted: #68726f;
    --paper: #f7f6f1;
    --white: #ffffff;
    --line: #dce0d9;
    --accent: #eb654b;
    --accent2: #efa583;
    --nav: #12221f;
    --serif: Georgia,'Times New Roman',serif;
    --sans: Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    background: var(--paper);
    font-family: var(--sans);
    color: var(--ink);
    min-width: 300px;
    overflow-x: clip;
    transition: background-color .42s ease;
}

button,a {
    font: inherit;
}

button {
    cursor: pointer;
}

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

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

::selection {
    background: #fbbca3;
    color: #182521;
}

.page-wrap {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 clamp(20px,4vw,66px);
}

.site-header {
    height: 92px;
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -.15em;
    padding-right: 5px;
}

.brand-mark:after {
    content: "";
    position: absolute;
    left: 30px;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.brand-text {
    font-size: 20px;
    letter-spacing: -.06em;
    font-weight: 800;
}

.brand-text span {
    color: var(--accent);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ecefe8;
    padding: 5px;
    border-radius: 15px;
}

.top-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 650;
    color: #5b6560;
    white-space: nowrap;
    transition: background .25s,color .25s;
}

.top-nav a:hover {
    background: #e3e8df;
    color: var(--ink);
}

.top-nav a[aria-current="page"] {
    background: var(--nav);
    color: #fff;
    box-shadow: 0 5px 12px #10211b22;
}

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

.lab-tag {
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 9px 12px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .09em;
    font-weight: 750;
    white-space: nowrap;
}

.lab-tag strong {
    color: var(--accent);
}

.main {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 92px);
}

.subtle-grid {
    position: absolute;
    inset: 0 0 auto 0;
    height: 650px;
    z-index: -1;
    opacity: .32;
    background-image: linear-gradient(to right,#9ca8a126 1px,transparent 1px),linear-gradient(to bottom,#9ca8a126 1px,transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom,#000,transparent 92%);
    pointer-events: none;
}

.hero {
    padding: clamp(35px,5vw,70px) 0 42px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0,1.01fr) minmax(0,.99fr);
    align-items: center;
    gap: clamp(20px,3vw,58px);
}

.hero-left {
    padding: 0 0 6px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64736a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 750;
    margin-bottom: 22px;
}

.eyebrow .eyebrow-rule {
    display: block;
    width: 34px;
    height: 2px;
    background: var(--accent);
}

.title-holder {
    min-height: clamp(225px,23vw,330px);
    display: flex;
    align-items: flex-start;
    overflow: visible;
}

.hero-title {
    font-family: var(--serif);
    letter-spacing: -.065em;
    font-weight: 500;
    line-height: 1.02;
    font-size: clamp(54px,6vw,94px);
    max-width: 720px;
    margin: 0;
    white-space: normal;
}

.hero-title em {
    color: var(--accent);
    font-style: normal;
}

.hero-description {
    max-width: 500px;
    color: #56625d;
    font-size: clamp(15px,1.45vw,18px);
    line-height: 1.75;
    margin: 20px 0 25px;
    min-height: 85px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cta {
    display: inline-flex;
    gap: 13px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--nav);
    background: var(--nav);
    color: #fff;
    border-radius: 100px;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 750;
    transition: transform .2s,background .2s;
}

.cta:hover {
    transform: translateY(-2px);
    background: #28433c;
}

.cta .arrow {
    font-size: 18px;
    line-height: 1;
}

.ghost-link {
    font-size: 13px;
    font-weight: 750;
    border-bottom: 1px solid #9ba9a1;
    padding: 9px 0;
}

.ghost-link:hover {
    border-color: var(--accent);
}

.visual-stage {
    position: relative;
    height: clamp(390px,43vw,560px);
    border-radius: 24px;
    overflow: hidden;
    background: #142622;
    color: #fff;
    box-shadow: 0 26px 70px #2836321b;
    isolation: isolate;
}

.visual-stage .scene-piece {
    transform-box: fill-box;
    transform-origin: center center;
    will-change: transform,opacity;
}

.visual-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid #ffffff18;
    border-radius: inherit;
}

.visual-caption {
    position: absolute;
    left: 24px;
    bottom: 23px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #e4e6da;
    opacity: .8;
}

.visual-caption:before {
    content: "";
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.visual-counter {
    position: absolute;
    right: 24px;
    top: 25px;
    font-size: 11px;
    color: #f5f6edbb;
    letter-spacing: .15em;
}

.art {
    height: 100%;
    width: 100%;
    position: absolute;
    inset: 0;
}

.art svg {
    width: 100%;
    height: 100%;
    display: block;
}

.art .glow {
    position: absolute;
    inset: -35%;
    background: radial-gradient(circle at 56% 46%,#cba98924,transparent 37%);
    pointer-events: none;
}

.art .art-label {
    position: absolute;
    top: 25px;
    left: 27px;
    color: #cfd8ce;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.visual-stamp {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid #ffffff45;
    border-radius: 100px;
    padding: 9px 13px;
    background: #10292399;
    font-size: 11px;
    z-index: 2;
    letter-spacing: .06em;
}

.microstrip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    color: #627067;
    font-size: 12px;
    margin-bottom: 52px;
}

.microstrip .left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.microstrip .dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
}

.microstrip .right {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.details {
    padding-bottom: 90px;
}

.details-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.details-head h2 {
    font-family: var(--serif);
    font-size: clamp(30px,3.2vw,45px);
    letter-spacing: -.055em;
    font-weight: 500;
    margin: 0;
}

.details-head p {
    max-width: 370px;
    font-size: 13px;
    color: #69736f;
    line-height: 1.6;
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
}

.contact-grid {
    grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr);
}

.tile {
    min-height: 230px;
    border: 1px solid #e1e5de;
    background: #fff;
    border-radius: 17px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.tile:before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    right: -48px;
    top: -58px;
    background: var(--accent);
    opacity: .065;
}

.tile .tile-no {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .15em;
    color: var(--accent);
}

.tile h3 {
    font-family: var(--serif);
    font-size: clamp(24px,2.3vw,33px);
    font-weight: 500;
    letter-spacing: -.045em;
    margin: 0 0 8px;
}

.tile p {
    line-height: 1.65;
    color: #6d7771;
    font-size: 13px;
    max-width: 340px;
    margin: 0;
}

.tile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    color: #76827a;
    font-size: 11px;
}

.tile-foot .mini-arrow {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    border: 1px solid #dfe7df;
    display: grid;
    place-items: center;
    color: #233d32;
    font-size: 16px;
}

.tile.tone-dark {
    background: #1b302b;
    border-color: #1b302b;
    color: #fff;
}

.tile.tone-dark p {
    color: #d4dcd3a3;
}

.tile.tone-dark .tile-foot {
    color: #c2d0c4a3;
}

.tile.tone-dark .mini-arrow {
    color: #fff;
    border-color: #ffffff4d;
}

.inline-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}

.inline-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #5b6862;
}

.inline-form input,.inline-form textarea {
    background: #fff;
    border: 1px solid #dce2db;
    border-radius: 10px;
    padding: 14px;
    color: var(--ink);
    font-size: 14px;
    resize: vertical;
}

.inline-form .wide {
    grid-column: 1/-1;
}

.inline-form .send {
    justify-self: start;
}

.form-message {
    font-size: 12px;
    font-weight: 700;
    color: #285e4b;
    margin: 4px 0 0;
}

.demo-note {
    font-size: 11px;
    color: #7d8680;
    line-height: 1.55;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 23px 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #707b74;
    font-size: 11px;
}

.site-footer strong {
    color: #354941;
}

.site-footer a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.control-dock {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-dock button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 22px #15281d2c;
    border-radius: 50px;
    border: 1px solid #b9c5bc;
    background: #fff;
    color: #233a32;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 800;
}

.control-dock .mode-symbol {
    color: var(--accent);
}

/* EXPERIMENT 05: jedno tlačidlo na cyklické prepínanie režimov. */
.control-dock {
    max-width: min(335px, calc(100vw - 26px));
}

.control-dock .mode-cycle {
    color: var(--muted);
    font-size: 17px;
    line-height: 1;
    margin-left: 3px;
}

.control-dock button:hover {
    border-color: var(--accent);
}

.mobile-nav {
    display: none;
}

[data-flight] {
    will-change: transform,opacity;
}

.lock-interactions nav a,.lock-interactions .cta,.lock-interactions .ghost-link {
    pointer-events: none;
}

body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
}

@media (max-width:1130px) {
    .top-nav a {
        padding: 11px 12px;
    }

    .lab-tag {
        display: none;
    }

    .hero-title {
        font-size: clamp(53px,6.2vw,78px);
    }

    .title-holder {
        min-height: 250px;
    }

}

@media (max-width:760px) {
    body {
        padding-bottom: calc(85px + env(safe-area-inset-bottom));
    }

    .page-wrap {
        padding: 0 18px;
    }

    .site-header {
        height: 70px;
    }

    .top-nav {
        display: none;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        font-size: 21px;
    }

    .brand-mark:after {
        left: 23px;
        top: 2px;
        width: 8px;
        height: 8px;
    }

    .brand-text {
        font-size: 19px;
    }

    .header-side {
        font-size: 11px;
    }

    .site-header .lab-tag {
        display: block;
        font-size: 9px;
        padding: 7px 9px;
    }

    .hero {
        padding: 30px 0 28px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .eyebrow {
        margin-bottom: 17px;
        font-size: 11px;
    }

    .title-holder {
        min-height: clamp(205px,34vw,255px);
        display: flex;
    }

    .hero-title {
        font-size: clamp(46px,10vw,67px);
        max-width: 680px;
        min-height: 1.05em;
    }

    .hero-description {
        min-height: 0;
        font-size: 15px;
        line-height: 1.62;
        margin: 18px 0 20px;
    }

    .visual-stage {
        height: clamp(260px,67vw,380px);
        border-radius: 17px;
    }

    .visual-stamp {
        display: none;
    }

    .visual-caption {
        left: 16px;
        bottom: 15px;
    }

    .visual-counter {
        right: 16px;
        top: 18px;
    }

    .microstrip {
        margin-bottom: 30px;
        padding: 13px 0;
        font-size: 11px;
    }

    .microstrip .right {
        font-size: 9px;
    }

    .details-head {
        display: block;
        margin-bottom: 17px;
    }

    .details-head p {
        margin-top: 7px;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

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

    .tile {
        padding: 19px;
        min-height: 215px;
    }

    .tile h3 {
        font-size: 25px;
    }

    .tile p {
        font-size: 12px;
    }

    .details {
        padding-bottom: 40px;
    }

    .site-footer {
        margin-bottom: 5px;
        padding: 19px 0 30px;
        align-items: flex-start;
    }

    .control-dock {
        right: 13px;
        bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .control-dock button {
        font-size: 11px;
        padding: 8px 11px;
        opacity: .87;
    }

    .mobile-nav {
        display: grid;
        grid-template-columns: repeat(6,minmax(0,1fr));
        gap: 1px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 45;
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
        background: rgba(17,33,29,.97);
        border-top: 1px solid #ffffff22;
        box-shadow: 0 -12px 35px #1b302b2e;
        backdrop-filter: blur(15px);
    }

    .mobile-nav a {
        min-height: 56px;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        color: #b6c7bc;
        border-radius: 10px;
        font-size: 10px;
        font-weight: 650;
        letter-spacing: -.02em;
        white-space: nowrap;
    }

    .mobile-nav a svg {
        height: 19px;
        width: 19px;
        stroke: currentColor;
        stroke-width: 1.8;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-nav a[aria-current="page"] {
        background: #f6f6f0;
        color: #1a352a;
    }

    .mobile-nav a:hover {
        background: #ffffff21;
        color: #fff;
    }

}

@media (max-width:440px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

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

    .tile {
        min-height: 175px;
    }

    .tile h3 {
        font-size: 28px;
    }

    .microstrip .right {
        display: none;
    }

    .hero-title {
        font-size: clamp(43px,11vw,56px);
    }

    .hero-actions {
        gap: 12px;
    }

    .cta {
        padding: 13px 17px;
    }

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

    .site-footer {
        flex-direction: column;
        gap: 5px;
    }

    .mobile-nav {
        padding-left: 3px;
        padding-right: 3px;
    }

    .mobile-nav a {
        font-size: 9px;
        min-height: 52px;
        gap: 4px;
    }

    .mobile-nav a svg {
        height: 18px;
        width: 18px;
    }

}

@media (prefers-reduced-motion:reduce) {
    * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

}

/* Variant 02: mení sa iba obsah ľavej kotvy, nie jej pozícia. */
.hero-left {
    align-self: center;
}

.hero-left .eyebrow,
.hero-left .title-holder,
.hero-left .hero-description,
.hero-left .hero-actions {
    transform: none;
}

.hero-actions .cta {
    min-width: 166px;
}

@media (max-width: 760px) {
    .hero-left {
        align-self: stretch;
    }

    .hero-actions .cta {
        min-width: 0;
    }

}

/* ===========================================================================
   STABILNÁ TEXTOVÁ KOTVA
   Dlhšie názvy a popisy nesmú posúvať tlačidlá pri zmene stránky.
   =========================================================================== */

@media (min-width: 761px) {
    .hero-description {
        min-height: 116px;
    }

    .hero-actions .cta {
        width: 196px;
        flex: 0 0 196px;
    }
}

@media (max-width: 760px) {
    .hero-description {
        min-height: 118px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 196px 155px;
        gap: 12px;
        align-items: center;
        min-height: 56px;
    }

    .hero-actions .cta {
        width: 196px;
    }

    .hero-actions .ghost-link {
        text-align: center;
    }
}

@media (max-width: 440px) {
    .hero-description {
        min-height: 136px;
    }

    .hero-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        min-height: 58px;
    }

    .hero-actions .cta {
        width: 100%;
        min-height: 56px;
        text-align: center;
        padding: 9px 8px;
        gap: 7px;
    }

    .hero-actions .ghost-link {
        display: grid;
        place-items: center;
        min-height: 56px;
        padding: 8px 2px;
    }
}

/* ==========================================================================
   EXPERIMENT 03 – VIZUÁLNE KÓPIE STARÉHO HERO PRI PRELÍNANÍ
   Nezúčastňujú sa na rozložení ani na ovládaní stránky.
   ========================================================================== */
.hero-left {
    position: relative;
}

.hero-copy-snapshot {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

/* ===========================================================================
   EXPERIMENT 06 – STICKY NAVIGÁCIA A PLYNULÝ PRECHOD Z HĹBKY STRÁNKY
   =========================================================================== */

@media (min-width: 761px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 30;
        background: rgba(247, 246, 241, .96);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }
}

/* Kópia zobrazeného obsahu počas prechodu – nemá vplyv na layout ani focus. */
.transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 25;
    overflow: hidden;
    pointer-events: none;
    background: var(--paper);
    contain: layout paint;
}

.transition-overlay .site-header {
    /* Bez sticky: kópia musí presne kopírovať polohu pôvodného dokumentu. */
    position: relative;
    top: auto;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.transition-overlay .page-wrap {
    /* Musí mať rovnakú šírku a odsadenie ako skutočný dokument. */
    width: 100%;
}
