/* ============================================================
   PROMĚNNÉ & RESET
   ============================================================ */
:root {
    /* ── M&M ProfiStav — zlato-antracitová paleta ── */
    --cream:       #FBFAF7;   /* papír */
    --stone-950:   #16191C;
    --stone-900:   #181B1F;   /* antracit */
    --stone-800:   #2A2F35;   /* břidlice */
    --stone-700:   #3D4248;
    --stone-600:   #5C636B;
    --stone-500:   #7E858C;
    --stone-400:   #9A968C;
    --stone-300:   #C4C0B6;
    --stone-200:   #E4E0D6;
    --stone-100:   #EDEAE3;
    --stone-50:    #F5F3EE;
    --gold:        #C8962B;   /* zlatá – akcent */
    --gold-dark:   #A87A1E;   /* hover */
    --gold-light:  #E3BE6A;   /* světlá zlatá / gradient */
    --gold-grad:   linear-gradient(135deg, #E3BE6A, #C8962B);

    --font-head:    'Archivo', sans-serif;       /* nadpisy / wordmark */
    --font-body:    'Archivo', sans-serif;
    --font-mono:    'IBM Plex Mono', monospace;  /* popisky / data */

    --nav-h:    72px;
    --max-w:    1200px;
    --pad:      clamp(20px, 5vw, 80px);
    --radius:   3px;
    --shadow:   0 4px 24px rgba(22, 25, 28, 0.1);
    --shadow-lg:0 16px 64px rgba(22, 25, 28, 0.20);
    --ease:     cubic-bezier(0.4, 0, 0.2, 1);
    --t:        0.3s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   GRAIN OVERLAY
   ============================================================ */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.section {
    padding: clamp(64px, 10vw, 128px) 0;
    position: relative;
}

/* Große Nummer im Hintergrund */
.section-num {
    position: absolute;
    top: -0.18em;
    right: -0.04em;
    font-family: var(--font-head);
    font-size: clamp(140px, 22vw, 300px);
    font-weight: 900;
    line-height: 1;
    color: var(--stone-100);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.section-num--light { color: rgba(255,255,255,0.04); }

/* ============================================================
   TYPOGRAFIE
   ============================================================ */
.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.section-label--light { color: rgba(227,190,106,0.85); }

.section-title {
    font-family: var(--font-head);
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.06;
    color: var(--stone-900);
    margin-bottom: 28px;
}

.section-title em {
    font-style: italic;
    color: var(--gold);
}

.section-title--light { color: var(--cream); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
                color var(--t) var(--ease), transform var(--t) var(--ease),
                box-shadow var(--t) var(--ease);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn--primary {
    background: var(--gold);
    color: var(--stone-950);
    border-color: var(--gold);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 150, 43, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--stone-900);
    border-color: var(--stone-300);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    border-color: var(--stone-900);
    background: var(--stone-900);
    color: var(--cream);
}

.btn--nav {
    background: var(--gold);
    color: var(--stone-950);
    border-color: var(--gold);
    padding: 10px 20px;
    font-size: 12px;
}

.btn--nav:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn--small { padding: 9px 18px; font-size: 12px; }
.btn--full  { width: 100%; justify-content: center; }

/* ============================================================
   NAVIGACE
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease),
                transform var(--t) var(--ease);
}

.nav--scrolled {
    background: rgba(251,250,247,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--stone-200);
}

.nav--hidden { transform: translateY(-100%); }

.nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 36px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo-mark {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.logo-amp { color: var(--gold); }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-mm {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--stone-900);
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone-600);
    position: relative;
    transition: color var(--t) var(--ease);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width var(--t) var(--ease);
}

.nav-links a:hover  { color: var(--stone-900); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.is-active { color: var(--stone-900); }
.nav-links a.is-active::after { width: 100%; }

/* Burger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 2px;
    margin-left: auto;
}

.nav-burger span {
    display: block;
    height: 2px;
    background: var(--stone-900);
    border-radius: 1px;
    transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
    transform-origin: center;
}

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

/* Mobile menu */
.nav-mobile {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--stone-200);
    padding: 20px var(--pad) 28px;
    z-index: 999;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
    pointer-events: none;
}

.nav-mobile.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-mobile a {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--stone-900);
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--stone-100);
    transition: color var(--t) var(--ease);
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover,
.nav-mobile a.is-active { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100svh;
    padding-top: var(--nav-h);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #FFFFFF;
}

/* Gigantický text v pozadí */
.hero-bg-word {
    position: absolute;
    bottom: -0.12em;
    left: -0.04em;
    font-family: var(--font-mono);
    font-size: clamp(100px, 18vw, 260px);
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--stone-100);
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    padding-top: clamp(32px, 5vw, 72px);
    padding-bottom: clamp(48px, 6vw, 80px);
}

/* Hero content – animated in by JS */
.hero-content {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.hero-content.anim-in { opacity: 1; transform: translateY(0); }

.hero-visual {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s var(--ease) 0.18s, transform 0.9s var(--ease) 0.18s;
}

.hero-visual.anim-in { opacity: 1; transform: translateY(0); }

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--stone-500);
    margin-bottom: 20px;
}

.eyebrow-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.hero-headline {
    font-family: var(--font-head);
    font-size: clamp(52px, 7.5vw, 96px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.98;
    color: var(--stone-900);
    margin-bottom: 22px;
}

.hero-headline em {
    font-style: italic;
    color: var(--gold);
}

.hero-desc {
    font-size: clamp(15px, 1.8vw, 17px);
    color: var(--stone-500);
    max-width: 440px;
    margin-bottom: 36px;
    line-height: 1.75;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero obrázek */
.hero-img-wrap {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--stone-100);
    box-shadow: var(--shadow-lg);
}

.hero-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Placeholder */
.img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(145deg, var(--stone-100) 0%, var(--stone-200) 100%);
    text-align: center;
    padding: 40px;
}

.ph-mark { width: 56px; height: 56px; opacity: 0.85; }

.img-placeholder p {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone-500);
}

.img-placeholder code {
    font-size: 11px;
    color: var(--stone-400);
    background: var(--stone-200);
    padding: 3px 8px;
    border-radius: 2px;
}

/* Stats bar */
.hero-stats {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 20px;
    background: var(--stone-900);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 800;
    color: var(--cream);
    line-height: 1;
}

.stat-num sup {
    font-size: 15px;
    color: var(--gold);
    vertical-align: super;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone-500);
}

.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* Scroll hint */
.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

/* Po začátku scrollování nápověda zmizí */
.hero-scroll.is-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
    pointer-events: none;
}

.hero-scroll span {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--stone-400);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--stone-400), transparent);
    animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50%       { opacity: 1;   transform: scaleY(1); }
}

/* ============================================================
   REVEAL ANIMACE
   ============================================================ */
.reveal, .reveal-fast {
    opacity: 0;
    transform: translateY(22px);
}

.reveal {
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal-fast {
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.revealed, .reveal-fast.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   O NÁS
   ============================================================ */
.about { background: #FFFFFF; }

.about-intro {
    max-width: 700px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.about-lead {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--stone-500);
    line-height: 1.8;
}

.persons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    position: relative;
    z-index: 1;
}

/* Jeden profil – karta nemá zabírat celou šířku */
.persons--single {
    grid-template-columns: minmax(0, 500px);
}

.person-card {
    background: #FFFFFF;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

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

.person-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--stone-200);
}

.person-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.person-card:hover .person-photo img { transform: scale(1.04); }

.person-ph {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(145deg, var(--stone-100) 0%, var(--stone-200) 100%);
}

.person-ph-init {
    font-family: var(--font-head);
    font-size: 72px;
    font-weight: 800;
    color: var(--stone-400);
    line-height: 1;
}

.person-ph code {
    font-size: 11px;
    color: var(--stone-400);
    background: rgba(255,255,255,0.4);
    padding: 3px 8px;
    border-radius: 2px;
}

.person-tag {
    position: absolute;
    bottom: 16px; left: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stone-950);
    background: var(--gold);
    padding: 4px 12px;
    border-radius: 2px;
}

.person-info { padding: 24px 28px 28px; }

.person-name {
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--stone-900);
    margin-bottom: 6px;
}

.person-role {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.person-desc {
    font-size: 14px;
    color: var(--stone-500);
    line-height: 1.72;
}

/* ============================================================
   SLUŽBY
   ============================================================ */
.services {
    background: var(--stone-900);
    overflow: hidden;
}

.services-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg,
            transparent, transparent 79px,
            rgba(255,255,255,0.012) 79px, rgba(255,255,255,0.012) 80px),
        repeating-linear-gradient(0deg,
            transparent, transparent 39px,
            rgba(255,255,255,0.012) 39px, rgba(255,255,255,0.012) 40px);
    pointer-events: none;
}

.services > .container { position: relative; z-index: 1; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 8px;
}

.service-item {
    background: var(--stone-900);
    padding: 36px 30px;
    transition: background var(--t) var(--ease);
}

.service-item:hover { background: var(--stone-800); }

.service-bullet {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin-bottom: 18px;
}

.service-item h3 {
    font-family: var(--font-head);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--cream);
    margin-bottom: 10px;
}

.service-item p {
    font-size: 14px;
    color: var(--stone-400);
    line-height: 1.65;
}

/* ============================================================
   GALERIE
   ============================================================ */
.gallery { background: var(--cream); }

.gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

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

.gallery-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.filter-btn {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: var(--radius);
    border: 2px solid var(--stone-200);
    background: transparent;
    color: var(--stone-500);
    cursor: pointer;
    transition: all var(--t) var(--ease);
}

.filter-btn:hover { border-color: var(--stone-400); color: var(--stone-900); }

.filter-btn.active {
    background: var(--stone-900);
    border-color: var(--stone-900);
    color: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    position: relative;
    z-index: 1;
}

/* Každý 5. item je širší */
.gallery-item:nth-child(5n + 1) {
    grid-column: span 2;
}

.gallery-item:nth-child(5n + 1) .gallery-img-inner {
    aspect-ratio: 16/9;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-img-inner {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    background: var(--stone-100);
}

.gallery-img-inner img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--ease);
    display: block;
}

.gallery-item:hover .gallery-img-inner img,
.gallery-item:focus-visible .gallery-img-inner img {
    transform: scale(1.06);
}

/* Placeholder tiles ve galerii */
.gallery-ph {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.65s var(--ease);
}

.gallery-item:hover .gallery-ph,
.gallery-item:focus-visible .gallery-ph {
    transform: scale(1.06);
}

.gallery-ph-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 20px;
}

.gph-icon { color: rgba(255,255,255,0.82); line-height: 0; }
.gph-icon .mark-svg { width: 34px; height: 34px; }

.gph-title {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
}

.gph-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
}

/* Overlay s textem při hoveru */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22,25,28,0.82) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    opacity: 0;
    transition: opacity var(--t) var(--ease);
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
    opacity: 1;
}

.go-title {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.go-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.gallery-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--stone-400);
    text-align: center;
    position: relative;
    z-index: 1;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--stone-400);
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

/* Skrytý lightbox nesmí zachytávat kliky (atribut hidden) */
.lightbox[hidden] { display: none; }
.lightbox:not([hidden]) { display: flex; }
.lightbox.lb-open { opacity: 1; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22,25,28,0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lb-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: min(90vw, 1040px);
    max-height: 90vh;
}

#lb-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lb-ph {
    width: min(85vw, 780px);
    height: min(55vh, 480px);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 40px;
}

.lb-ph-icon { color: var(--gold-light); line-height: 0; }
.lb-ph-icon .mark-svg { width: 50px; height: 50px; }

.lb-ph p {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}

.lb-ph small {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

.lb-caption {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

.lb-btn {
    position: fixed;
    z-index: 2;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background var(--t) var(--ease);
    backdrop-filter: blur(4px);
}

.lb-btn:hover { background: rgba(255,255,255,0.2); }
.lb-btn:disabled { opacity: 0.25; pointer-events: none; }

.lb-close { top: 20px; right: 20px; }
.lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   RECENZE
   ============================================================ */
.reviews { background: #FFFFFF; }

.reviews-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.reviews-head .section-title { margin-bottom: 0; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.review-card {
    background: #FFFFFF;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 2px 12px rgba(22,25,28,0.05);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.review-stars {
    color: var(--gold);
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.review-text {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--stone-700);
    line-height: 1.75;
    flex: 1;
    margin-bottom: 22px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--stone-100);
}

.review-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--stone-200);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 900;
    color: var(--stone-500);
    flex-shrink: 0;
}

.review-author strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--stone-900);
}

.review-author span {
    font-size: 12px;
    color: var(--stone-400);
}

/* Google widget placeholder */
.google-widget-placeholder {
    border: 2px dashed var(--stone-200);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: var(--stone-500);
    position: relative;
    z-index: 1;
}

.google-widget-placeholder p {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.google-widget-placeholder small {
    font-size: 13px;
    color: var(--stone-400);
    line-height: 1.6;
}

.google-widget-placeholder a {
    color: var(--gold);
    text-decoration: underline;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact { background: #FFFFFF; }

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: clamp(48px, 7vw, 96px);
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-desc {
    font-size: 16px;
    color: var(--stone-500);
    line-height: 1.75;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid var(--stone-100);
}

.contact-item:first-child { border-top: 1px solid var(--stone-100); }

.ci-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--stone-400);
}

.ci-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--stone-900);
    transition: color var(--t) var(--ease);
}

a.ci-value:hover { color: var(--gold); }

/* Formulář */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone-500);
}

.form-group label span { color: var(--gold); }

.form-group input,
.form-group select,
.form-group textarea {
    padding: 13px 15px;
    border: 1.5px solid var(--stone-200);
    border-radius: var(--radius);
    background: #FAFAFA;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--stone-900);
    outline: none;
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C8962B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--stone-300);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius);
    padding: 14px 18px;
    color: #15803d;
    font-weight: 600;
    font-size: 15px;
}

.form-success[hidden] { display: none; }

/* Validace polí */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #dc2626;
    background: #fff;
}

.field-error {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    margin-top: -1px;
}

/* Stavové hlášení formuláře (chyba / nedostupné odesílání) */
.form-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--radius);
    padding: 14px 18px;
    color: #b91c1c;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
}

.form-status[hidden] { display: none; }

.form-note {
    font-size: 12px;
    color: var(--stone-400);
    text-align: center;
    line-height: 1.6;
}

/* ============================================================
   PATIČKA
   ============================================================ */
.footer {
    background: var(--stone-900);
    padding: 40px 0 0;
}

.footer .logo-mm { color: var(--cream); }
.footer .logo-sub { color: var(--gold); }

.footer-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: 32px;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone-500);
    margin-top: 8px;
}

.footer-nav {
    display: flex;
    gap: 24px;
    margin-left: auto;
    flex-wrap: wrap;
}

.footer-nav a {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone-500);
    transition: color var(--t) var(--ease);
}

.footer-nav a:hover { color: var(--cream); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 12px;
    color: var(--stone-600);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-credit a {
    color: var(--stone-400);
    transition: color var(--t) var(--ease);
}

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

/* ============================================================
   FOCUS STYLES (přístupnost)
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ============================================================
   RESPONZIVITA
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid    { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid     { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid .review-card:nth-child(3) { display: none; }
    .contact-inner    { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    :root { --nav-h: 60px; }

    .nav-links, .btn--nav { display: none; }
    .nav-burger { display: flex; }
    .nav-mobile { display: flex; }

    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .hero-visual { order: -1; }

    .hero-img-wrap { aspect-ratio: 16/9; }

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

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

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

    .gallery-item:nth-child(5n + 1) { grid-column: span 2; }

    .reviews-grid     { grid-template-columns: 1fr; }
    .reviews-grid .review-card:nth-child(3) { display: flex; }

    .reviews-head { flex-direction: column; align-items: flex-start; }

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

    .footer-inner  { flex-direction: column; align-items: flex-start; }
    .footer-nav    { margin-left: 0; }
    .footer-bottom { flex-direction: column; }

    .gallery-header { flex-direction: column; align-items: flex-start; }

    .section-num { font-size: clamp(100px, 28vw, 200px); }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item:nth-child(5n + 1) { grid-column: span 1; }

    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; justify-content: center; }

    .hero-stats { flex-direction: column; gap: 0; }
    .stat-divider { width: auto; height: 1px; }
    .stat { padding: 14px 20px; }

    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
}

/* ============================================================
   OMEZENÝ POHYB (přístupnost)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal, .reveal-fast,
    .hero-content, .hero-visual {
        opacity: 1 !important;
        transform: none !important;
    }
}
