/* JK kvartet — klarinetové kvarteto
   Barvy vychází z loga a roll-upu: vínová (kravaty), uhlová, slonová kost,
   tmavá „lilková" čerň z diagonály roll-upu. */

:root {
    --wine: #7a1b2f;
    --wine-deep: #5c1323;
    --wine-light: #cc6273;
    --night: #1d1417;
    --night-2: #271b1f;
    --ink: #2c2527;
    --muted: #6d6265;
    --ivory: #f7f2ea;
    --ivory-2: #efe6da;
    --paper: #fcf9f4;
    --line: rgba(44, 37, 39, .14);
    --line-light: rgba(247, 242, 234, .16);

    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --radius: 4px;
    --shadow: 0 18px 40px -22px rgba(29, 20, 23, .45);
    --header-h: 76px;
    --container: 1160px;

    /* proužek z kravat */
    --tie-stripes: repeating-linear-gradient(135deg,
        var(--wine) 0 14px, #8e2a40 14px 16px, var(--wine) 16px 30px, var(--wine-deep) 30px 33px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--wine); text-underline-offset: .18em; }
a:hover { color: var(--wine-deep); }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

h1, h2, h3 {
    text-wrap: balance;
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -.005em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.65rem); }
h3 { font-size: 1.4rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--wine); }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--wine); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--wine);
    margin-bottom: 1.1em;
    display: flex;
    align-items: center;
    gap: 14px;
}
.eyebrow::before {
    content: "";
    width: 34px; height: 6px;
    background: var(--tie-stripes);
    background-size: 46px 46px;
    border-radius: 1px;
    flex: none;
}
.eyebrow-light { color: var(--ivory); }
.eyebrow-light::before { background: var(--ivory); opacity: .7; }

/* ---------- Tlačítka ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .95em 1.8em;
    font-family: var(--sans);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .7em 1.3em; font-size: .88rem; }
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-deep); color: #fff; }
.btn-ghost { border-color: rgba(44, 37, 39, .35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--wine); color: var(--wine); }
.btn-ivory { background: var(--ivory); color: var(--wine-deep); }
.btn-ivory:hover { background: #fff; color: var(--wine-deep); }

/* ---------- Hlavička ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 242, 234, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -18px rgba(29, 20, 23, .5);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}
.brand img { width: 168px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
    color: var(--ink);
    text-decoration: none;
    font-size: .95rem;
    letter-spacing: .04em;
    position: relative;
    padding: 4px 0;
}
.site-nav ul a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
    background: var(--wine);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}
.site-nav ul a:hover { color: var(--wine); }
.site-nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    border: 0; background: transparent; cursor: pointer;
    position: relative;
    margin-right: -10px;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    position: absolute; left: 12px; width: 22px; height: 2px;
    background: var(--ink); border-radius: 1px;
    transition: transform .25s, opacity .25s;
}
.nav-toggle-bars { top: 22px; }
.nav-toggle-bars::before { content: ""; left: 0; top: -7px; }
.nav-toggle-bars::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 56px 0 0;
    overflow: hidden;
}
.hero-diagonal {
    position: absolute;
    inset: 0;
    background: var(--night);
    clip-path: polygon(100% 4%, 100% 100%, 44% 100%);
}
.hero-diagonal::after {
    /* jemné proužky jako na kravatách */
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(122, 27, 47, .22) 22px 24px);
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 48px;
    align-items: center;
    min-height: min(calc(100vh - var(--header-h) - 56px), 800px);
    min-height: min(calc(100svh - var(--header-h) - 56px), 800px);
    padding-bottom: 72px;
}
.hero-text { max-width: 600px; padding-bottom: 40px; }
.hero h1 { margin-bottom: .45em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 22px; }
.hero-call { font-size: .95rem; color: var(--muted); margin: 0; }
.hero-call a { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--wine); }
.hero-call a:hover { color: var(--wine); }

.hero-photo {
    margin: 0;
    justify-self: center;
    width: min(440px, 100%);
    position: relative;
}
.hero-photo::before {
    /* tenká linka obloukového rámu */
    content: "";
    position: absolute;
    inset: -14px -14px 14px 14px;
    border: 1px solid rgba(247, 242, 234, .45);
    border-radius: 999px 999px 4px 4px;
    pointer-events: none;
}
.arch {
    position: relative;
    border-radius: 999px 999px 4px 4px;
    overflow: hidden;
    aspect-ratio: 9 / 10;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
    background: var(--night-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption {
    position: absolute;
    right: -6px; bottom: 26px;
    background: var(--ivory);
    color: var(--ink);
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-left: 3px solid var(--wine);
    box-shadow: var(--shadow);
}

/* ---------- Motto ---------- */
.motto {
    background: var(--night);
    color: var(--ivory);
    padding: 8px 0 64px;
    text-align: center;
}
.motto-text {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.45rem, 2.6vw, 2.05rem);
    line-height: 1.25;
    max-width: 28em;
    margin: 0 auto 28px;
    text-wrap: balance;
}
.motto-text::before, .motto-text::after { color: var(--wine-light); }
.motto-text::before { content: "„"; }
.motto-text::after { content: "“"; }
.motto-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px 0;
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(247, 242, 234, .72);
}
.motto-list li + li::before { content: "·"; margin: 0 18px; color: var(--wine-light); }

/* ---------- Sekce ---------- */
.section { padding: 110px 0; }
.section-ivory { background: var(--ivory); }
.section-paper { background: var(--ivory-2); }
.section-night { background: var(--night); color: var(--ivory); }
.section-night h2, .section-night h3 { color: #fff; }
.section-night .eyebrow { color: var(--wine-light); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-lead { font-size: 1.12rem; color: var(--muted); }
.section-night .section-lead { color: rgba(247, 242, 234, .72); }

/* ---------- O nás ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.about-photo { position: relative; }
.about-photo::after {
    content: "";
    position: absolute;
    left: -18px; bottom: -18px;
    width: 46%; height: 52%;
    background: var(--tie-stripes);
    background-size: 46px 46px;
    z-index: -1;
    border-radius: var(--radius);
    opacity: .9;
}
.about-photo { z-index: 0; isolation: isolate; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }

.members {
    margin: 30px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
}
.members-label {
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--wine);
    margin-bottom: 8px;
}
.members ul {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 4px 56px;
    font-family: var(--serif);
    font-size: 1.3rem;
    line-height: 1.4;
}
.members li { white-space: nowrap; }

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 26px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.facts div { margin: 0; }
.facts dt {
    font-family: var(--serif);
    font-size: 2.3rem;
    font-weight: 600;
    line-height: 1;
    color: var(--wine);
    margin-bottom: 6px;
}
.facts dd { margin: 0; font-weight: 500; line-height: 1.4; }
.facts dd span { font-weight: 400; font-size: .9rem; color: var(--muted); }

.occasions-title {
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    margin: 110px 0 36px;
    text-align: center;
}
.occasions {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.occasions li {
    background: var(--paper);
    padding: 30px 28px 28px;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 18px;
    align-items: start;
    transition: background-color .25s;
}
.occasions li:hover { background: #fff; }
.occasions svg {
    grid-row: span 2;
    width: 44px; height: 44px;
    fill: none;
    stroke: var(--wine);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.occasions strong {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 4px;
}
.occasions span { font-size: .95rem; color: var(--muted); line-height: 1.55; }

/* ---------- Repertoár ---------- */
.rep-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.rep-card {
    position: relative;
    background: var(--night-2);
    border: 1px solid var(--line-light);
    border-top: 3px solid var(--wine);
    border-radius: var(--radius);
    padding: 40px 34px 32px;
    display: flex;
    flex-direction: column;
    transition: transform .3s, border-color .3s;
}
.rep-card:hover { transform: translateY(-4px); border-color: rgba(204, 98, 115, .5); border-top-color: var(--wine-light); }
.rep-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--wine-light);
    margin-bottom: 10px;
}
.rep-card h3 { font-size: 1.65rem; }
.rep-card p { color: rgba(247, 242, 234, .78); font-size: 1rem; }
.rep-names {
    margin: auto 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line-light);
    font-size: .82rem !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ivory) !important;
}

/* ---------- Advent ---------- */
.advent {
    background: var(--tie-stripes);
    background-size: 46px 46px;
    color: var(--ivory);
    padding: 76px 0;
    position: relative;
}
.advent::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(92, 19, 35, .92), rgba(92, 19, 35, .72));
}
.advent-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.advent h2 { color: #fff; font-size: clamp(1.7rem, 2.8vw, 2.25rem); max-width: 19em; }
.advent p:not(.eyebrow) { color: rgba(247, 242, 234, .86); max-width: 36em; margin: 0; }
.advent .btn { flex: none; }

/* ---------- Kde jsme hráli ---------- */
.venues {
    list-style: none;
    margin: 0; padding: 0;
    border-top: 1px solid var(--line);
}
.venues li {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
    transition: background-color .25s;
}
.venue-date {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--wine);
    margin: 0;
    line-height: 1.3;
}
.venues h3 { font-size: 1.5rem; margin-bottom: .2em; }
.venue-place {
    font-size: .82rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .7em;
}
.venues li p:last-child { margin-bottom: 0; }

/* ---------- Galerie ---------- */
.gallery {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 210px;
    grid-auto-flow: dense;
    gap: 14px;
}
.gallery li { overflow: hidden; border-radius: var(--radius); background: var(--night-2); }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery li:first-child, .gallery .g-big { grid-column: span 2; grid-row: span 2; }
.gallery a { display: block; height: 100%; position: relative; }
.gallery a::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(29, 20, 23, .55));
    opacity: 0;
    transition: opacity .3s;
}
.gallery img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.045); }
.gallery a:hover::after { opacity: 1; }
.gallery-more { margin: 34px 0 0; text-align: center; color: rgba(247, 242, 234, .72); }
.gallery-more a { color: var(--ivory); }
.gallery-more a:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(16, 11, 13, .95);
    display: flex; align-items: center; justify-content: center;
    padding: 56px 72px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    max-height: calc(100svh - 150px);
    width: auto; height: auto;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.lightbox figcaption {
    color: rgba(247, 242, 234, .85);
    margin-top: 16px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    text-align: center;
}
.lb-btn {
    position: absolute;
    background: transparent;
    border: 1px solid rgba(247, 242, 234, .3);
    color: var(--ivory);
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background-color .2s, border-color .2s;
}
.lb-btn:hover { background: var(--wine); border-color: var(--wine); }
.lb-close { top: 18px; right: 18px; font-size: 1.8rem; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Poptávka ---------- */
.booking-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 36px;
    align-items: start;
}
.booking-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; margin-bottom: 20px; min-width: 0; }
.field label { font-size: .9rem; font-weight: 500; margin-bottom: 6px; }
.req { color: var(--wine); }
.field input, .field select, .field textarea {
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(44, 37, 39, .22);
    border-radius: var(--radius);
    padding: 12px 14px;
    width: 100%;
    min-height: 50px;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a1b2f' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: #a0979a; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(122, 27, 47, .14);
}
.form-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; flex: 1; min-width: 220px; }
.hp { position: absolute; left: -9999px; }
.booking-form button[disabled] { opacity: .7; cursor: progress; }

.contact-card {
    background: var(--night);
    color: var(--ivory);
    border-radius: var(--radius);
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
    scroll-margin-top: calc(var(--header-h) + 24px);
}
.contact-card::before {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 180px; height: 180px;
    background: var(--tie-stripes);
    background-size: 46px 46px;
    transform: rotate(45deg);
    opacity: .55;
}
.contact-card h3 { color: #fff; font-size: 1.75rem; position: relative; }
.contact-name {
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--wine-light);
    margin-bottom: 22px;
    position: relative;
}
.contact-list { list-style: none; margin: 0 0 30px; padding: 0; position: relative; }
.contact-list li {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-light);
    font-size: 1.08rem;
}
.contact-list svg, .social svg {
    width: 22px; height: 22px; flex: none;
    fill: none; stroke: var(--wine-light); stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
}
.contact-list a { color: var(--ivory); text-decoration: none; }
.contact-list a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.social a {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    color: var(--ivory);
    text-decoration: none;
    font-size: .92rem;
    transition: background-color .2s, border-color .2s;
}
.social a:hover { background: var(--wine); border-color: var(--wine); color: #fff; }
.social a:hover svg { stroke: #fff; }
.social .dot { fill: var(--wine-light); stroke: none; }
.social a:hover .dot { fill: #fff; }

/* ---------- Patička ---------- */
.site-footer {
    background: var(--night);
    color: rgba(247, 242, 234, .7);
    padding: 64px 0 40px;
    text-align: center;
    border-top: 6px solid transparent;
    border-image: var(--tie-stripes) 6;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-inner img { width: 200px; margin-bottom: 18px; }
.footer-claim { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ivory); }
.footer-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 8px 0 26px; }
.footer-contacts a { color: var(--ivory); text-decoration: none; }
.footer-contacts a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: .85rem; margin: 0; }
.footer-copy a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(204, 98, 115, .6); }
.footer-copy a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Děkovací stránka / 404 ---------- */
.thanks-page {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    text-align: center;
    background: var(--ivory);
    padding: 60px 0;
}
.thanks-page .container { display: flex; flex-direction: column; align-items: center; }
.thanks-page img { width: 240px; margin-bottom: 30px; }
.thanks-page .lead { margin: 0 auto 32px; }

/* ---------- Animace ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .gallery img, .rep-card { transition: none; }
}

/* ---------- Responzivita ---------- */
@media (max-width: 1080px) {
    .site-nav { gap: 22px; }
    .site-nav ul { gap: 18px; }
}

@media (max-width: 959px) {
    :root { --header-h: 68px; }
    .brand img { width: 148px; }
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed;
        top: var(--header-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--ivory);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 30px -20px rgba(29, 20, 23, .35);
        padding: 8px 24px 24px;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .site-nav.open { opacity: 1; transform: none; visibility: visible; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .site-nav ul a::after { display: none; }
    .site-nav .btn { margin-top: 20px; }

    .hero { padding-top: 36px; }
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 44px;
        padding-bottom: 56px;
    }
    .hero-text { padding-bottom: 0; }
    /* na úzkých displejích jen pod fotkou, aby nepřejížděla text a tlačítka */
    .hero-diagonal {
        top: auto;
        height: calc(min(400px, 82vw) * 1.11 + 56px);
        clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 58%);
    }
    .hero-photo { width: min(400px, 82vw); }

    .about-grid { grid-template-columns: 1fr; gap: 56px; }
    .about-photo { max-width: 620px; }
    .occasions { grid-template-columns: repeat(2, 1fr); }
    .occasions-title { margin-top: 90px; }
    .rep-grid { grid-template-columns: 1fr; max-width: 640px; }
    .advent-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
    .booking-grid { grid-template-columns: 1fr; }
    .section { padding: 84px 0; }
}

@media (max-width: 620px) {
    body { font-size: 1rem; }
    .container { padding: 0 16px; }
    .lead { font-size: 1.08rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-photo::before { inset: -10px -10px 10px 10px; }
    .motto-list { gap: 10px 22px; }
    .motto-list li + li::before { content: none; }
    .members ul { grid-template-columns: 1fr 1fr; gap: 2px 16px; font-size: clamp(1.05rem, 5vw, 1.3rem); }
    .facts { grid-template-columns: 1fr; gap: 14px; }
    .facts div { display: grid; grid-template-columns: 72px 1fr; align-items: center; }
    .facts dt { margin: 0; font-size: 2.2rem; }
    .occasions { grid-template-columns: 1fr; }
    .occasions li { padding: 24px 20px; }
    .venues li { grid-template-columns: 1fr; gap: 6px; padding: 26px 0; }
    .gallery { grid-auto-rows: 150px; gap: 10px; }
    .booking-form { padding: 26px 18px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .form-foot .btn { width: 100%; }
    .contact-card { padding: 32px 22px; }
    .lightbox { padding: 56px 10px 80px; }
    .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
    .lb-prev { left: calc(50% - 62px); }
    .lb-next { right: calc(50% - 62px); }
    .section { padding: 72px 0; }
    .section-head { margin-bottom: 40px; }
}
