/* ==========================================================================
   J&J HOMES CONSTRUCTION — style.css
   Farebná paleta: tmavomodrá navy + zlato-béžová (podľa loga)
   Fonty: Playfair Display (nadpisy) + DM Sans (text)
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
    --navy: #0f1e2d;
    --navy-2: #1a2f47;
    --navy-3: #243b57;
    --blue: #3d6fa0;
    --blue-light: #5a8cb8;

    --gold: #d4a574;
    --gold-dark: #b8864f;
    --gold-light: #e4bf94;

    --cream: #f5f2ed;
    --off-white: #faf8f4;
    --white: #ffffff;

    --text: #1a2332;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e5e0d9;

    --shadow-sm: 0 2px 8px rgba(15, 30, 45, 0.06);
    --shadow: 0 10px 30px rgba(15, 30, 45, 0.1);
    --shadow-lg: 0 20px 60px rgba(15, 30, 45, 0.15);

    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container: 1280px;
    --radius: 4px;
    --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    /* Pozícia loga v headeri — sleduje centrovaný container */
    --logo-left: max(2rem, calc((100vw - 1280px) / 2 + 2rem));
    --logo-right: calc(var(--logo-left) + 220px);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 500;
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.section-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.25rem;
    height: 1px;
    background: var(--gold);
}

.section-title {
    margin-bottom: 1.25rem;
}

.section-intro {
    color: var(--text-muted);
    font-size: 1.0625rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-dark {
    background: var(--navy);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--navy-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-arrow::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform var(--transition);
}

.btn-arrow:hover::after {
    transform: translateX(4px);
}

/* ---------- Top bar ---------- */
.topbar {
    background: #0a1625;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.topbar-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.topbar-info span,
.topbar-info a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-info a:hover {
    color: var(--gold);
}

.topbar-socials {
    display: flex;
    gap: 1rem;
}

.topbar-socials a {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0;
    position: relative;
}

.topbar-socials a::before {
    content: '';
    width: 13px;
    height: 13px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform var(--transition);
}

.topbar-socials a[aria-label="Facebook"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 8h-2a3 3 0 0 0-3 3v10'/%3E%3Cpath d='M9 13h6'/%3E%3C/svg%3E");
}

.topbar-socials a[aria-label="Instagram"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='4.5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='white' stroke='none'/%3E%3C/svg%3E");
}

.topbar-socials a:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.topbar-socials a:hover::before {
    transform: scale(1.05);
}

.topbar-socials a[aria-label="Facebook"]:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1e2d' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 8h-2a3 3 0 0 0-3 3v10'/%3E%3Cpath d='M9 13h6'/%3E%3C/svg%3E");
}

.topbar-socials a[aria-label="Instagram"]:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1e2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='4.5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%230f1e2d' stroke='none'/%3E%3C/svg%3E");
}

/* ---------- Header / Navigation ---------- */
.header {
    /* Plynulý horizontálny gradient z navy do zlatej — prechod nastáva cez logo */
    background: linear-gradient(
        to right,
        var(--navy) 0,
        var(--navy) var(--logo-left),
        var(--gold) var(--logo-right),
        var(--gold) 100%
    );
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(15, 30, 45, 0.12);
}

.header.scrolled {
    box-shadow: 0 6px 24px rgba(15, 30, 45, 0.18);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 2rem;
    position: relative;
    /* Pevná výška — logo potom presahuje cez svoju vlastnú výšku */
    height: 105px;
    transition: height var(--transition);
}

.nav-logo {
    display: flex;
    align-items: flex-start;
    /* Logo je "prilepené" na vrch nav — flush s hornou hranou headera */
    align-self: flex-start;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.nav-logo img {
    height: 130px;
    width: auto;
    transition: height var(--transition), transform var(--transition);
}

.nav-logo:hover img {
    transform: scale(1.03);
}

.header.scrolled .nav {
    height: 85px;
}

.header.scrolled .nav-logo img {
    height: 105px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--gold-dark);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-dark);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-menu a.active {
    color: var(--white);
    background: rgba(15, 30, 45, 0.9);
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(15, 30, 45, 0.16);
}

.nav-menu a.active::after {
    display: none;
}

.nav-cta {
    padding: 0.85rem 1.75rem;
    font-size: 0.82rem;
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
}

.nav-cta:hover {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
    box-shadow: none;
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .nav {
        gap: 1.25rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 0.8rem;
        letter-spacing: 0.08em;
    }

    .nav-menu a.active {
        padding: 0.55rem 0.75rem;
    }

    .nav-cta {
        display: none;
    }
}

@media (max-width: 980px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a {
        font-size: 0.74rem;
        letter-spacing: 0.06em;
    }

    .nav-menu a.active {
        color: var(--navy);
        background: rgba(255, 255, 255, 0.42);
        box-shadow: none;
        padding: 0.45rem 0.55rem;
    }
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 200;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
    border-radius: 1px;
}

.nav-toggle.active span {
    background: var(--navy);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: calc(100vh - 145px);
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    /* Priestor pre presahujúce logo */
    padding-top: 2rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.05);
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    to { transform: scale(1); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 30, 45, 0.85) 0%,
        rgba(15, 30, 45, 0.55) 50%,
        rgba(15, 30, 45, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero h1 .accent {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- About ---------- */
.about {
    background: var(--off-white);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: var(--navy);
    color: var(--white);
    padding: 2rem 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 280px;
}

.about-badge-number {
    font-family: var(--font-head);
    font-size: 3rem;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.about-badge-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.about-content .section-eyebrow {
    margin-bottom: 1.25rem;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
}

.about-features li {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-features li:last-child {
    border-bottom: 1px solid var(--border);
}

.about-features .check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--gold);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 2px;
}

.about-features strong {
    color: var(--navy);
    font-weight: 600;
    display: block;
    margin-bottom: 0.15rem;
}

.about-features span {
    color: var(--text-muted);
    font-size: 0.93rem;
}

/* ---------- Projekty ---------- */
.projekty {
    background: var(--white);
}

.projekty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Homepage variant — 2×2, karty väčšie a so širokoúhlejším pomerom */
.projekty-grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
}

.projekty-grid--2x2 .projekt-card {
    aspect-ratio: 3 / 2;
}

.projekty-grid--2x2 .projekt-title {
    font-size: 1.75rem;
}

.projekt-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy);
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: transform var(--transition);
}

.projekt-card:hover {
    transform: translateY(-6px);
}

.projekt-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.projekt-card:hover img {
    transform: scale(1.08);
}

.projekt-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 30, 45, 0.9) 0%, rgba(15, 30, 45, 0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    color: var(--white);
    transition: all var(--transition);
}

.projekt-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.projekt-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.projekt-meta {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.projekty-footer {
    text-align: center;
}

/* ---------- Konštrukčný systém ---------- */
.konstrukcia {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.konstrukcia::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 165, 116, 0.12), transparent 60%);
    pointer-events: none;
}

.konstrukcia .section-title,
.konstrukcia h3 {
    color: var(--white);
}

.konstrukcia-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
}

.konstrukcia-content p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.konstrukcia-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.konstrukcia-feature {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--transition);
}

.konstrukcia-feature:hover {
    background: rgba(212, 165, 116, 0.08);
    border-color: rgba(212, 165, 116, 0.35);
    transform: translateY(-4px);
}

.konstrukcia-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 165, 116, 0.15);
    color: var(--gold);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.konstrukcia-feature h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.konstrukcia-feature p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    margin-bottom: 0;
}

.konstrukcia-visual {
    position: relative;
}

.konstrukcia-visual img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Fázy výstavby ---------- */
.fazy {
    background: var(--cream);
}

.fazy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.faza-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.faza-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.faza-image {
    --faza-pad-top: 1.25rem;
    --faza-pad-x: 1.25rem;
    --faza-pad-bottom: 0.5rem;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f6f2eb 100%);
}

.faza-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: var(--faza-pad-top) var(--faza-pad-x) var(--faza-pad-bottom);
    transition: transform 0.6s ease;
}

.faza-image--1 {
    --faza-pad-top: 1.45rem;
    --faza-pad-bottom: 0.35rem;
}

.faza-image--2 {
    --faza-pad-top: 1.4rem;
    --faza-pad-bottom: 0.35rem;
}

.faza-image--3 {
    --faza-pad-top: 0.85rem;
    --faza-pad-bottom: 0.85rem;
}

.faza-image--4 {
    --faza-pad-top: 0.85rem;
    --faza-pad-bottom: 0.85rem;
}

.faza-card:hover .faza-image img {
    transform: scale(1.08);
}

.faza-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.faza-label {
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.faza-body h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.faza-body p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
}

.fazy-footer {
    text-align: center;
}

/* ---------- CTA ---------- */
.cta {
    position: relative;
    padding: 6rem 0;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('images/projekty/d4/foto/foto-3.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: grayscale(0.4);
}

.cta-inner {
    position: relative;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.cta h2 .accent {
    color: var(--gold);
    font-style: italic;
}

.cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
    background: #0a1625;
    color: rgba(255, 255, 255, 0.75);
    padding: 5rem 0 2rem;
    font-size: 0.92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand img {
    height: 96px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: brightness(1.1);
}

.footer-brand p {
    line-height: 1.7;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--gold);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-item .icon {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-partner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-partner a {
    color: var(--gold);
    font-weight: 500;
}

/* ==========================================================================
   PODSTRÁNKY — spoločné komponenty
   ========================================================================== */

/* ---------- Page banner (menšia verzia hero) ---------- */
.page-banner {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    padding-top: 1rem;
}

.page-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.page-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-banner--kontakt .page-banner-bg img {
    object-position: center 58%;
}

.page-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 30, 45, 0.84) 0%, rgba(15, 30, 45, 0.64) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: var(--white);
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.page-banner h1 .accent {
    color: var(--gold);
    font-style: italic;
}

.breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.breadcrumb a {
    color: var(--gold);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--gold-light);
}

.breadcrumb span {
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- Projekty — zoznam projektov s detailom ---------- */
.projekt-detail {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}

.projekt-detail:last-of-type {
    border-bottom: none;
}

.projekt-detail:nth-child(even) {
    background: var(--off-white);
}

.projekt-detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
}

.projekt-detail:nth-child(even) .projekt-detail-grid {
    grid-template-columns: 1fr 1.4fr;
}

.projekt-detail:nth-child(even) .projekt-gallery-wrap {
    order: 2;
}

.projekt-gallery-wrap {
    position: relative;
}

.projekt-main-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.projekt-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.projekt-main-image:hover img {
    transform: scale(1.04);
}

.projekt-detail--showcase {
    background:
        linear-gradient(180deg, rgba(245, 242, 237, 0.9), rgba(255, 255, 255, 0.98));
}

.projekt-gallery-wrap--showcase,
.projekt-gallery-wrap--slider {
    position: relative;
}

.projekt-gallery-wrap--showcase .projekt-side-stack {
    display: none;
}

.projekt-main-image--showcase {
    aspect-ratio: 16/9;
    min-height: 440px;
    background:
        linear-gradient(135deg, #d7dde4 0%, #f5f2ed 52%, #e8edf2 100%);
    border-radius: 18px;
    overflow: hidden;
}

.projekt-main-image--showcase img {
    object-fit: contain;
    object-position: center center;
    padding: 1.5rem;
}

.projekt-main-overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 2rem;
    color: var(--white);
    background:
        linear-gradient(180deg, transparent 0%, rgba(15, 30, 45, 0.2) 18%, rgba(15, 30, 45, 0.88) 100%);
}

.projekt-main-overlay strong {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.projekt-main-overlay span:last-child {
    max-width: 34rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
}

.projekt-main-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.projekt-main-kicker::before {
    content: '';
    width: 1.4rem;
    height: 1px;
    background: rgba(212, 165, 116, 0.9);
}

.projekt-detail--slider {
    background:
        linear-gradient(180deg, rgba(250, 248, 244, 0.95), rgba(245, 242, 237, 0.95));
}

.projekt-main-image--slider {
    aspect-ratio: 5/4;
    min-height: 430px;
    background:
        radial-gradient(circle at top right, rgba(212, 165, 116, 0.18), transparent 42%),
        linear-gradient(145deg, #eff3f7 0%, #fcfbf8 55%, #eef2f6 100%);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 30, 45, 0.12);
}

.projekt-main-image--slider img {
    object-fit: contain;
    object-position: center center;
    padding: 1.4rem;
}

.projekt-detail-grid--split {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.72fr);
    align-items: stretch;
}

.projekt-gallery-wrap--split {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
    gap: 1.1rem;
    align-items: stretch;
}

.projekt-gallery-wrap--split .projekt-main-image--slider,
.projekt-main-image--split {
    aspect-ratio: auto;
    min-height: 520px;
    height: 100%;
    background:
        radial-gradient(circle at top right, rgba(212, 165, 116, 0.12), transparent 42%),
        linear-gradient(145deg, #eff3f7 0%, #fcfbf8 55%, #eef2f6 100%);
    border-radius: 18px;
    overflow: hidden;
}

.projekt-gallery-wrap--split .projekt-main-image--slider img,
.projekt-main-image--split img {
    object-fit: cover;
    object-position: center center;
    padding: 0;
}

.projekt-main-overlay--band {
    inset: auto 0 0 0;
    gap: 0.55rem;
    padding: 1.35rem 1.5rem 1.2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 30, 45, 0.84) 64%, rgba(15, 30, 45, 0.96) 100%);
}

.projekt-main-overlay--band .projekt-main-kicker {
    display: none;
}

.projekt-main-overlay--band strong {
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 0.95;
}

.projekt-meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.15rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.projekt-meta-inline span {
    position: relative;
}

.projekt-meta-inline span + span::before {
    content: '';
    position: absolute;
    left: -0.6rem;
    top: 50%;
    width: 1px;
    height: 0.9rem;
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%);
}

.projekt-side-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1.1rem;
}

.projekt-side-card {
    min-height: 0;
    border: 1px solid rgba(15, 30, 45, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(160deg, #ffffff 0%, #f7f4ef 100%);
    box-shadow: 0 12px 28px rgba(15, 30, 45, 0.08);
}

.projekt-side-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.projekt-side-card--line img {
    object-fit: cover;
    object-position: center center;
}

/* Plány (pôdorys + tabuľka miestností) v pravom stĺpci DOM karty */
.projekt-side-stack--plans {
    grid-template-rows: 1.25fr 1fr;
}

.projekt-side-card--plan {
    background: #ffffff;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projekt-side-card--plan img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
}

.projekt-side-card--plan-table {
    background: #ffffff;
    padding: 1.1rem 1.4rem;
}

/* Plán rotator (pohľady) — bodky pod obrázkom, biele pozadie */
.projekt-side-card--plan-rotator {
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 1rem 0.75rem;
}

.projekt-side-card--plan-rotator > img.projekt-rotator-main {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.projekt-rotator-controls--inline {
    position: static;
    align-self: center;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 0.5rem;
}

.projekt-rotator-controls--inline .projekt-rotator-dot {
    background: rgba(15, 30, 45, 0.2);
}

.projekt-rotator-controls--inline .projekt-rotator-dot.is-active {
    background: var(--gold-dark);
}

.projekt-info--minimal {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projekt-info--minimal p {
    display: none;
}

/* Plná šírka — fotka vľavo (cca 60 %), plán panel vpravo (cca 40 %).
   Fotka má pevný pomer 16/9 (zhodný so zdrojom 1400×787 → bez orezu)
   a svojou prirodzenou výškou určuje výšku celého grid riadku. Plán
   panel sa potom stretch-uje na tú istú výšku a delí sa na pohľad +
   pôdorys. DÔLEŽITÉ: hlavná fotka NESMIE mať height:100%, inak by ju
   vyšší grid riadok pretláčal cez jej stĺpec do pravej časti. */
.projekt-gallery-wrap--full {
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: 2rem;
    width: 100%;
    align-items: stretch;
}

.projekt-gallery-wrap--full .projekt-main-image--slider {
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: auto;
    align-self: start;
}

.projekt-gallery-wrap--full .projekt-main-image--slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

/* Pravý stĺpec s plánmi — stretchuje sa na výšku fotky (ktorú určuje
   aspect-ratio), takže pohľad + pôdorys spolu vyplnia celú výšku. */
.projekt-gallery-wrap--full .projekt-side-stack {
    align-self: start;
    height: auto;
}

.projekt-gallery-wrap--full .projekt-side-card {
    min-height: 0;
}

.projekt-gallery-wrap--full .projekt-side-stack--plans {
    grid-template-rows: repeat(2, auto);
    align-content: start;
    min-height: 0;
}

.projekt-gallery-wrap--full .projekt-side-card--plan {
    aspect-ratio: 5 / 4;
    height: auto;
    min-height: 0;
}

.projekt-gallery-wrap--full .projekt-side-card--plan img,
.projekt-gallery-wrap--full .projekt-side-card--plan .projekt-rotator-main {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center center;
}

/* Decentný overlay — svetlý text vľavo dole bez ťažkého čierneho pásu */
.projekt-main-overlay--soft {
    inset: auto 0 0 0;
    padding: 2.2rem 2rem 1.6rem;
    gap: 0.5rem;
    align-items: flex-start;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(15, 30, 45, 0.0) 45%,
        rgba(15, 30, 45, 0.55) 100%);
}

.projekt-main-overlay--soft .projekt-main-kicker {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.projekt-main-overlay--soft .projekt-main-kicker::before {
    display: none;
}

.projekt-main-overlay--soft strong {
    display: none;
}

.projekt-main-overlay--soft .projekt-meta-inline {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.projekt-main-overlay--soft .projekt-meta-inline span + span::before {
    background: rgba(255, 255, 255, 0.6);
}

/* Celá karta ako jeden klikateľný rámček (Tatra Haus štýl) */
.projekt-card-frame {
    position: relative;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid rgba(15, 30, 45, 0.08);
    border-radius: 22px;
    box-shadow: 0 20px 44px -28px rgba(15, 30, 45, 0.25);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.projekt-card-frame:hover,
.projekt-card-frame:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 32px 60px -24px rgba(15, 30, 45, 0.32);
    border-color: rgba(212, 165, 116, 0.5);
    outline: none;
}

.projekt-card-frame .projekt-main-image--slider,
.projekt-card-frame .projekt-side-card {
    transition: transform 0.5s ease;
}

.projekt-card-frame:hover .projekt-main-image--slider img.projekt-rotator-main {
    transform: scale(1.02);
}

/* Hover hint "Zobraziť detail →" — pin v pravom hornom rohu karty */
.projekt-card-frame::after {
    content: 'Zobraziť detail \2192';
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    z-index: 5;
    padding: 0.55rem 1rem;
    background: rgba(15, 30, 45, 0.85);
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none;
}

.projekt-card-frame:hover::after,
.projekt-card-frame:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.projekt-main-overlay--compact {
    inset: 1.4rem auto auto 1.4rem;
    padding: 1rem 1.15rem;
    background: rgba(15, 30, 45, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.projekt-main-overlay--compact strong {
    font-size: 1.55rem;
}

.projekt-main-overlay--compact span:last-child {
    display: none;
}

.projekt-rotator {
    position: relative;
}

/* Rotator prechody su riesene cez JS (slide-left clone technika) */

.projekt-rotator-controls {
    position: absolute;
    right: 1.4rem;
    bottom: 1.4rem;
    display: inline-flex;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 30, 45, 0.14);
}

.projekt-rotator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(15, 30, 45, 0.22);
    transition: transform var(--transition), background var(--transition);
}

.projekt-rotator-dot.is-active {
    background: var(--gold-dark);
    transform: scale(1.15);
}

.projekt-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.projekt-thumbs img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    opacity: 0.75;
    transition: opacity var(--transition), transform var(--transition);
}

.projekt-thumbs img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.projekt-info .projekt-label {
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}

.projekt-info h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.projekt-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.projekt-detail:nth-child(even) .projekt-specs {
    background: var(--cream);
}

.projekt-spec {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.projekt-spec-label {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.projekt-spec-value {
    font-family: var(--font-head);
    font-size: 1.35rem;
    color: var(--navy);
}

/* ---------- Konštrukčný systém — skladby ---------- */
.konstrukcia-intro {
    padding: 5rem 0 3rem;
    background: var(--off-white);
    text-align: center;
}

.konstrukcia-intro p {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.konstrukcia-highlights {
    padding: 0 0 4.5rem;
    background: var(--off-white);
}

.konstrukcia-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.konstrukcia-highlight-card {
    margin: 0;
    border-radius: var(--radius);
    display: block;
}

.konstrukcia-highlight-image {
    background: linear-gradient(180deg, #f7f4ef 0%, #f1ebe2 100%);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 30, 45, 0.06);
}

.konstrukcia-highlight-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    padding: 0;
    display: block;
}

.skladba {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}

.skladba:nth-child(odd) {
    background: var(--white);
}

.skladba:nth-child(even) {
    background: var(--cream);
}

.skladba-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.skladba:nth-child(even) .skladba-grid {
    grid-template-columns: 1.2fr 1fr;
}

.skladba:nth-child(even) .skladba-visual {
    order: 2;
}

.skladba-visual img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.skladba-content h2 {
    margin-bottom: 1.25rem;
}

.skladba-content p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.skladba-list-title {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--navy);
    margin-bottom: 1rem;
    display: block;
}

.skladba-list {
    list-style: none;
    padding: 0;
    counter-reset: skladba-counter;
}

.skladba-list li {
    counter-increment: skladba-counter;
    position: relative;
    padding: 0.85rem 0 0.85rem 3rem;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}

.skladba-list li:last-child {
    border-bottom: 1px solid var(--border);
}

.skladba-list li::before {
    content: counter(skladba-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.85rem;
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--gold-dark);
    font-weight: 500;
    font-style: italic;
}

.skladba-list li .sub {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ---------- Fázy výstavby — detailný zoznam ---------- */
.faza-detail {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}

.faza-detail:nth-child(odd) {
    background: var(--white);
}

.faza-detail:nth-child(even) {
    background: var(--cream);
}

.faza-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
}

.faza-detail:nth-child(even) .faza-detail-grid {
    grid-template-columns: 1.3fr 1fr;
}

.faza-detail:nth-child(even) .faza-detail-visual {
    order: 2;
}

.faza-detail-visual {
    position: relative;
}

.faza-detail-visual img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.faza-detail-visual--contained {
    background: linear-gradient(180deg, #ffffff 0%, #f6f2eb 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faza-detail-visual--contained img {
    aspect-ratio: 4/3;
    object-fit: contain;
    object-position: center;
    background: transparent;
    padding: 1.25rem;
    box-shadow: none;
}

.faza-eyebrow {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-dark);
    margin-bottom: 1rem;
}

.faza-detail h2 {
    margin-bottom: 2rem;
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
}

.faza-obsah-title {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--navy);
    margin-bottom: 1.25rem;
    display: block;
}

.faza-obsah-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.faza-obsah-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    line-height: 1.55;
    color: var(--text);
}

.faza-obsah-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 0.75rem;
    height: 2px;
    background: var(--gold);
}

.faza-result {
    padding: 1.25rem 1.5rem;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.faza-detail:nth-child(even) .faza-result {
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.faza-result-icon {
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faza-footer-note {
    padding: 4rem 0;
    background: var(--navy);
    color: var(--white);
    text-align: center;
}

.faza-footer-note p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.7;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.faza-footer-note strong {
    color: var(--gold);
    font-style: normal;
}

/* ---------- Kontakt ---------- */
.kontakt-main {
    padding: 5rem 0;
    background: var(--off-white);
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.kontakt-info h2 {
    margin-bottom: 1rem;
}

.kontakt-info .lead {
    margin-bottom: 2.5rem;
}

.kontakt-items {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.kontakt-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.kontakt-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: var(--gold);
}

.kontakt-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.kontakt-item-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.kontakt-item-value {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--navy);
    line-height: 1.35;
}

.kontakt-item-value a {
    transition: color var(--transition);
}

.kontakt-item-value a:hover {
    color: var(--gold-dark);
}

.kontakt-item-sub a {
    display: block;
}

/* ---------- Form ---------- */
.kontakt-form-wrap {
    background: var(--navy);
    padding: 3rem;
    border-radius: var(--radius);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.kontakt-form-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1), transparent 60%);
    pointer-events: none;
}

.kontakt-form-wrap h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    position: relative;
}

.kontakt-form-wrap p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    position: relative;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--font-body);
}

.form-submit {
    margin-top: 0.5rem;
    align-self: flex-start;
}

.form-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* ---------- Mapa ---------- */
.kontakt-mapa {
    padding: 0;
    height: 450px;
    background: var(--navy);
}

.kontakt-mapa iframe,
.kontakt-mapa .map-placeholder {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-placeholder {
    background: var(--navy-2);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .section { padding: 4.5rem 0; }

    /* Na tablete sa logo aj rozmery prispôsobia */
    :root {
        --logo-left: 1.25rem;
        --logo-right: calc(var(--logo-left) + 200px);
    }

    .nav {
        height: 92px;
    }

    .nav-logo img {
        height: 115px;
    }

    .header.scrolled .nav {
        height: 78px;
    }

    .header.scrolled .nav-logo img {
        height: 98px;
    }

    .about-grid,
    .konstrukcia-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image img,
    .konstrukcia-visual img {
        height: 450px;
    }

    .about-badge {
        right: 1rem;
    }

    .projekty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fazy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .konstrukcia-features {
        grid-template-columns: 1fr;
    }

    .konstrukcia-highlights-grid {
        grid-template-columns: 1fr;
    }

    .projekt-detail-grid,
    .projekt-detail:nth-child(even) .projekt-detail-grid,
    .skladba-grid,
    .skladba:nth-child(even) .skladba-grid,
    .faza-detail-grid,
    .faza-detail:nth-child(even) .faza-detail-grid,
    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .projekt-detail:nth-child(even) .projekt-gallery-wrap,
    .skladba:nth-child(even) .skladba-visual,
    .faza-detail:nth-child(even) .faza-detail-visual {
        order: 0;
    }

    .projekt-main-image--showcase,
    .projekt-main-image--slider {
        min-height: 0;
    }

    .projekt-detail-grid--split,
    .projekt-gallery-wrap--split {
        grid-template-columns: 1fr;
    }

    .projekt-gallery-wrap--split .projekt-main-image--slider,
    .projekt-main-image--split {
        min-height: 460px;
    }

    .projekt-side-stack {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
    }

    .projekt-main-overlay {
        padding: 1.5rem;
    }

    .page-banner { height: 280px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }

    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2.5rem; }

    .topbar { display: none; }

    /* Na mobile zjednotíme header na plnú navy (nav menu je v drawer aj tak) */
    .header {
        background: var(--navy);
        border-bottom: 3px solid var(--gold);
    }

    .nav {
        height: 78px;
    }
    .nav-logo img {
        height: 98px;
    }
    .header.scrolled .nav {
        height: 68px;
    }
    .header.scrolled .nav-logo img {
        height: 85px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 5rem 2.5rem;
        gap: 1.75rem;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        z-index: 150;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        color: var(--navy);
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--gold-dark);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta { display: none; }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 30, 45, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
        z-index: 140;
    }

    .nav-backdrop.active {
        opacity: 1;
        pointer-events: all;
    }

    .hero {
        height: calc(100vh - 95px);
        min-height: 540px;
        padding-top: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .projekt-main-image--showcase {
        aspect-ratio: 4/3;
    }

    .projekt-gallery-wrap--split .projekt-main-image--slider,
    .projekt-main-image--slider,
    .projekt-main-image--split {
        aspect-ratio: 1/1;
    }

    .projekt-main-image--showcase img,
    .projekt-main-image--slider img {
        padding: 1rem;
    }

    .projekt-gallery-wrap--split .projekt-main-image--slider img,
    .projekt-main-image--split img {
        padding: 0;
    }

    .projekt-main-overlay {
        padding: 1.2rem;
        gap: 0.45rem;
    }

    .projekt-main-overlay strong {
        font-size: clamp(1.7rem, 8vw, 2.5rem);
    }

    .projekt-main-overlay span:last-child {
        font-size: 0.92rem;
    }

    .projekt-main-overlay--compact {
        inset: 1rem auto auto 1rem;
        padding: 0.8rem 0.95rem;
    }

    .projekt-main-overlay--band {
        padding: 1rem 1rem 0.95rem;
    }

    .projekt-meta-inline {
        font-size: 0.84rem;
        gap: 0.35rem 0.85rem;
    }

    .projekt-side-stack {
        grid-template-columns: 1fr;
    }

    .projekt-rotator-controls {
        right: 1rem;
        bottom: 1rem;
        padding: 0.55rem 0.7rem;
    }

    .projekt-gallery-wrap--full {
        gap: 1rem;
    }

    .projekt-gallery-wrap--full .projekt-main-image--slider {
        min-height: 0;
    }

    /* Homepage 2×2 projektová mriežka na mobile → 1 stĺpec */
    .projekty-grid--2x2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projekty-grid--2x2 .projekt-card {
        aspect-ratio: 4 / 3;
    }
}

/* ==========================================================================
   PODSTRÁNKA PROJEKTU — detail (projekt-1.html … projekt-5.html)
   ========================================================================== */

/* Karty na projekty.html — klikateľná + "zobraziť detail" overlay */
.projekt-detail {
    cursor: default;
}

.projekt-card-link {
    display: block;
    color: inherit;
}

.projekt-card-link:hover {
    color: inherit;
}

.projekt-main-image.clickable {
    cursor: zoom-in;
}

.projekt-main-image.clickable::after {
    content: '\2922';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(15, 30, 45, 0.75);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
    transform: scale(0.8);
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.projekt-main-image.clickable:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Detail hero — veľký banner na projekt-N.html */
.projekt-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--navy);
    margin-top: 0;
}

.projekt-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.projekt-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.projekt-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,30,45,0.2) 0%, rgba(15,30,45,0.9) 100%);
}

.projekt-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 5rem 0 3rem;
    width: 100%;
}

.projekt-hero-content .breadcrumb {
    margin-bottom: 1.5rem;
}

.projekt-hero-content h1 {
    color: var(--white);
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.projekt-hero-content .tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 620px;
}

.projekt-hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.projekt-hero-stat {
    display: flex;
    flex-direction: column;
}

.projekt-hero-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.projekt-hero-stat-value {
    font-family: var(--font-head);
    font-size: 1.6rem;
    color: var(--white);
}

.projekt-showcase {
    padding: 4rem 0 1.5rem;
    background: linear-gradient(180deg, var(--off-white), #fff 72%);
}

.projekt-showcase-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.projekt-showcase-header .section-title {
    margin-bottom: 0;
}

.projekt-carousel {
    position: relative;
    display: block;
}

.projekt-carousel-viewport {
    overflow: hidden;
    position: relative;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(15, 30, 45, 0.14);
}

.projekt-carousel-track {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.projekt-carousel-slide {
    display: none;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(15, 30, 45, 0.08);
    background: var(--white);
    cursor: zoom-in;
}

.projekt-carousel-slide.is-active {
    display: block;
}

.projekt-carousel-slide img {
    width: 100%;
    aspect-ratio: 16 / 8.7;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.projekt-carousel-slide:hover img {
    transform: scale(1.03);
}

.projekt-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(15, 30, 45, 0.86);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 18px 30px rgba(15, 30, 45, 0.22);
    backdrop-filter: blur(6px);
    transition: transform var(--transition), background var(--transition), color var(--transition);
}

.projekt-carousel-arrow--prev {
    left: 1.25rem;
    transform: translateY(-50%);
}

.projekt-carousel-arrow--next {
    right: 1.25rem;
    transform: translateY(-50%);
}

.projekt-carousel-arrow:hover {
    background: var(--gold);
    color: var(--navy);
}

.projekt-carousel-arrow--prev:hover,
.projekt-carousel-arrow--next:hover {
    transform: translateY(calc(-50% - 2px));
}

.projekt-carousel-meta {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    pointer-events: none;
}

.projekt-carousel-kicker,
.projekt-carousel-hint {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(15, 30, 45, 0.72);
    color: var(--white);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px rgba(15, 30, 45, 0.18);
}

.projekt-carousel-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.projekt-carousel-hint {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.86);
}

.projekt-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.projekt-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(15, 30, 45, 0.2);
}

.projekt-carousel-dot.is-active {
    background: var(--gold-dark);
    transform: scale(1.15);
}

/* Telo detailu */
.projekt-body {
    padding: 5rem 0;
    background: var(--white);
}

.projekt-body-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: start;
}

.projekt-body-content .section-eyebrow {
    margin-bottom: 0.75rem;
}

.projekt-body-content h2 {
    margin-bottom: 1.25rem;
}

.projekt-body-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.projekt-body-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.projekt-body-content ul li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    color: var(--text);
}

.projekt-body-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.projekt-sidebar {
    position: sticky;
    top: 120px;
    padding: 2rem;
    background: var(--off-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.projekt-sidebar--plans {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.projekt-sidebar--plans .projekt-plan-preview + .projekt-measurements-card,
.projekt-sidebar--plans .projekt-missing-views ~ * {
    display: none;
}

.projekt-sidebar--dom1 .projekt-missing-views ~ * {
    display: none;
}

body[data-page="projekt-3"] > .projekt-body:not(.projekt-body--custom),
body[data-page="projekt-4"] > .projekt-body:not(.projekt-body--custom),
body[data-page="projekt-5"] > .projekt-body:not(.projekt-body--custom),
body[data-page="projekt-3"] .projekt-galeria,
body[data-page="projekt-4"] .projekt-galeria,
body[data-page="projekt-5"] .projekt-galeria {
    display: none;
}

body[data-page="projekt-1"] .projekt-galeria {
    display: none;
}

.projekt-plan-preview {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff, #f8f5f0);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
}

.projekt-plan-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.projekt-plan-stack {
    display: grid;
    gap: 1rem;
}

.projekt-plan-item {
    display: grid;
    gap: 0.65rem;
}

.projekt-body-grid--dom1 {
    grid-template-columns: 1.18fr 1fr;
}

.projekt-plan-preview--table {
    padding: 0.75rem;
}

.projekt-missing-views {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.22);
}

.projekt-missing-views p {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

.projekt-body-grid--dom2 {
    grid-template-columns: 1.18fr 1fr;
}

.projekt-measurements-card {
    padding: 1.15rem 1.15rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff, #f8f5f0);
    box-shadow: var(--shadow-sm);
}

.projekt-measurements-card--inline {
    margin-top: 2.5rem;
}

.projekt-measurements-stack {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
}

.projekt-measurements-card .section-eyebrow {
    margin-bottom: 1rem;
}

.projekt-measurements-list {
    display: grid;
    gap: 0.55rem;
}

.projekt-measurement-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 30, 45, 0.08);
}

.projekt-measurement-name {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--navy);
    font-weight: 500;
}

.projekt-measurement-name::before {
    display: none;
}

.projekt-measurement-icon {
    width: 2.3rem;
    height: 2.3rem;
    flex: 0 0 2.3rem;
    border-radius: 50%;
    background-color: rgba(212, 165, 116, 0.12);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    border: 1px solid rgba(212, 165, 116, 0.24);
}

.projekt-measurement-icon--living {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8864f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v5'/%3E%3Cpath d='M20 12v5'/%3E%3Cpath d='M3 10c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v3H3z'/%3E%3Cpath d='M7 8V6.5C7 5.7 7.7 5 8.5 5h7c.8 0 1.5.7 1.5 1.5V8'/%3E%3Cpath d='M5 17h14'/%3E%3C/svg%3E");
}

.projekt-measurement-icon--bedroom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8864f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h18v5H3z'/%3E%3Cpath d='M5 12V9.5C5 8.7 5.7 8 6.5 8h3C10.3 8 11 8.7 11 9.5V12'/%3E%3Cpath d='M13 12V8.5C13 7.7 13.7 7 14.5 7h2C17.3 7 18 7.7 18 8.5V12'/%3E%3Cpath d='M4 17v2'/%3E%3Cpath d='M20 17v2'/%3E%3C/svg%3E");
}

.projekt-measurement-icon--bath {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8864f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13h14'/%3E%3Cpath d='M6 13v2.5C6 17.4 7.6 19 9.5 19h5c1.9 0 3.5-1.6 3.5-3.5V13'/%3E%3Cpath d='M8 10V8.5C8 7.1 9.1 6 10.5 6S13 7.1 13 8.5V10'/%3E%3Cpath d='M16.5 10H19v3'/%3E%3C/svg%3E");
}

.projekt-measurement-icon--utility {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8864f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M12 3v3'/%3E%3Cpath d='M12 18v3'/%3E%3Cpath d='M3 12h3'/%3E%3Cpath d='M18 12h3'/%3E%3Cpath d='M5.8 5.8l2.1 2.1'/%3E%3Cpath d='M16.1 16.1l2.1 2.1'/%3E%3Cpath d='M18.2 5.8l-2.1 2.1'/%3E%3Cpath d='M7.9 16.1l-2.1 2.1'/%3E%3C/svg%3E");
}

.projekt-measurement-icon--hall {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8864f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10v16H7z'/%3E%3Cpath d='M10 12h4'/%3E%3Cpath d='M7 6l-2 2v8l2 2'/%3E%3C/svg%3E");
}

.projekt-measurement-icon--terrace {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8864f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v8'/%3E%3Cpath d='M8 8c0 2.2 1.8 4 4 4 2.2 0 4-1.8 4-4'/%3E%3Cpath d='M6 20h12'/%3E%3Cpath d='M8 20v-4'/%3E%3Cpath d='M16 20v-4'/%3E%3C/svg%3E");
}

.projekt-measurement-row strong {
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--navy);
    white-space: nowrap;
}

.projekt-cta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.projekt-cta-inline .btn {
    justify-content: center;
}

.projekt-cta-inline .btn + .btn {
    display: none;
}

.projekt-view-placeholders {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.projekt-view-placeholder {
    min-height: 96px;
    border-radius: 12px;
    border: 1px dashed rgba(15, 30, 45, 0.22);
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy-3);
}

.projekt-view-placeholders--quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.projekt-view-placeholder--image {
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-style: solid;
    background: #fff;
    cursor: zoom-in;
}

.projekt-view-placeholder--image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    display: block;
    background: linear-gradient(180deg, #ffffff, #f8f5f0);
}

.projekt-missing-views--filled .projekt-view-placeholder:not(.projekt-view-placeholder--image),
.projekt-missing-views--filled p {
    display: none;
}

.projekt-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.projekt-sidebar-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.projekt-sidebar-row:last-of-type {
    border-bottom: none;
}

.projekt-sidebar-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.projekt-sidebar-value {
    font-family: var(--font-head);
    font-size: 1.05rem;
    color: var(--navy);
    text-align: right;
}

.projekt-sidebar .btn {
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Galéria — veľká mriežka fotiek na detail stránke */
.projekt-galeria {
    padding: 5rem 0;
    background: var(--off-white);
}

.projekt-galeria-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projekt-galeria-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 180px;
    gap: 1rem;
}

.projekt-galeria-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: zoom-in;
    position: relative;
    background: var(--navy);
}

.projekt-galeria-grid figure::after {
    content: '\2922';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(15, 30, 45, 0.8);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    opacity: 0;
    transform: scale(0.7);
    transition: all var(--transition);
    pointer-events: none;
}

.projekt-galeria-grid figure:hover::after {
    opacity: 1;
    transform: scale(1);
}

.projekt-galeria-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.projekt-galeria-grid figure:hover img {
    transform: scale(1.06);
}

/* Mozaikové rozloženie: 1. veľká, potom malé, znova veľká */
.projekt-galeria-grid figure:nth-child(1) { grid-column: span 8; grid-row: span 2; }
.projekt-galeria-grid figure:nth-child(2) { grid-column: span 4; grid-row: span 1; }
.projekt-galeria-grid figure:nth-child(3) { grid-column: span 4; grid-row: span 1; }
.projekt-galeria-grid figure:nth-child(4) { grid-column: span 4; grid-row: span 1; }
.projekt-galeria-grid figure:nth-child(5) { grid-column: span 4; grid-row: span 1; }
.projekt-galeria-grid figure:nth-child(6) { grid-column: span 4; grid-row: span 2; }
.projekt-galeria-grid figure:nth-child(7) { grid-column: span 4; grid-row: span 1; }
.projekt-galeria-grid figure:nth-child(8) { grid-column: span 4; grid-row: span 1; }

/* Ďalšie projekty (navigácia medzi projektami) */
.projekt-next {
    padding: 5rem 0;
    background: var(--navy);
    color: var(--white);
}

.projekt-next h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
}

.projekt-next-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.projekt-next-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    display: block;
    color: var(--white);
}

.projekt-next-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.projekt-next-card:hover img {
    transform: scale(1.05);
}

.projekt-next-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,30,45,0) 40%, rgba(15,30,45,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.projekt-next-card .projekt-label {
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.projekt-next-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
}

/* ==========================================================================
   LIGHTBOX — modal na zväčšenie fotiek
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7, 15, 25, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.96);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 2;
    font-family: var(--font-head);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
}

.lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

body.lightbox-open {
    overflow: hidden;
}

/* ---------- Responsive overrides pre detail ---------- */
@media (max-width: 1024px) {
    .projekt-showcase-header {
        display: block;
        margin-bottom: 1.5rem;
    }

    .projekt-showcase-header .section-title {
        margin-top: 0.35rem;
    }

    .projekt-carousel {
        display: block;
    }

    .projekt-body-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .projekt-body-grid--dom2 {
        grid-template-columns: 1fr;
    }

    .projekt-sidebar {
        position: static;
    }

    .projekt-galeria-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 160px;
    }

    .projekt-galeria-grid figure:nth-child(1) { grid-column: span 6; grid-row: span 2; }
    .projekt-galeria-grid figure:nth-child(n+2) { grid-column: span 3; grid-row: span 1; }

    .projekt-next-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .projekt-showcase {
        padding: 3rem 0 1rem;
    }

    .projekt-carousel-arrow {
        width: 46px;
        height: 46px;
    }

    .projekt-carousel-arrow--prev {
        left: 0.85rem;
    }

    .projekt-carousel-arrow--next {
        right: 0.85rem;
    }

    .projekt-carousel-meta {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .projekt-carousel-kicker,
    .projekt-carousel-hint {
        min-height: 0;
        padding: 0.65rem 0.85rem;
    }

    .projekt-carousel-slide img {
        aspect-ratio: 4 / 3;
    }

    .projekt-cta-inline .btn {
        width: 100%;
    }

    .projekt-hero {
        min-height: 380px;
    }

    .projekt-hero-stats {
        gap: 1.5rem;
    }

    .projekt-hero-stat-value {
        font-size: 1.25rem;
    }

    .projekt-galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }

    .projekt-galeria-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .projekt-galeria-grid figure:nth-child(n+2) { grid-column: span 1; grid-row: span 1; }

    .projekt-view-placeholders {
        grid-template-columns: 1fr;
    }

    .lightbox-close { top: 1rem; right: 1rem; width: 44px; height: 44px; }
    .lightbox-prev { left: 0.5rem; width: 44px; height: 44px; }
    .lightbox-next { right: 0.5rem; width: 44px; height: 44px; }
}

/* ==========================================================================
   MOBILNÁ RESPONZIVITA — doplnky
   Tieto pravidlá opravujú overflow na úzkych obrazovkách bez zásahu
   do existujúcej logiky desktopových a tabletových štýlov.
   ========================================================================== */

/* ---------- Footer ---------- */
@media (max-width: 768px) {
    /* 4-stĺpcový footer → 2×2 mriežka */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    /* Brand sekcia zaberá celú šírku */
    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    /* Na najmenších obrazovkách všetko pod sebou */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer {
        padding: 3.5rem 0 2rem;
    }
}

/* ---------- Projekty.html — karty DOM (--full variant) ---------- */
@media (max-width: 768px) {
    /* Pravý stĺpec s plánmi má minmax(260px, …) čo na mobile pretečie.
       Zrušíme split layout — fotka ide na celú šírku, plány pod ňu. */
    .projekt-gallery-wrap--full {
        grid-template-columns: 1fr;
    }

    /* Fotka v --full variante: na mobile pomer 4:3 (krajšie ako 16:9) */
    .projekt-gallery-wrap--full .projekt-main-image--slider {
        aspect-ratio: 4 / 3;
    }

    /* Pravý stĺpec s plánmi — vedľa seba (pohľad + pôdorys) */
    .projekt-gallery-wrap--full .projekt-side-stack {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
        gap: 0.75rem;
    }

    /* Každý plan-card dostane pevný pomer */
    .projekt-gallery-wrap--full .projekt-side-card--plan {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 480px) {
    /* Na extra malom mobile plány pod sebou */
    .projekt-gallery-wrap--full .projekt-side-stack {
        grid-template-columns: 1fr;
    }
}

/* ---------- Projekty.html — zoznam projektov (projekty-grid) ---------- */
@media (max-width: 768px) {
    /* Ak existuje viacstĺpcový grid projektov mimo --2x2 variantu */
    .projekty-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Kontakt stránka ---------- */
@media (max-width: 480px) {
    .kontakt-info-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}


/* ---------- Obecne — zabranenie preteceniu ---------- */
@media (max-width: 768px) {
    img, video, iframe, table {
        max-width: 100%;
    }

    h1, h2, h3 {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .projekt-card-frame {
        width: 100%;
        min-width: 0;
    }
}
