:root {
  --moss: #68785D;
  --sage: #A3AD91;
  --sand: #D8D1BB;
  --cream: #F4F0E5;
  --forest: #283D32;
  --ink: #344535;
  --white: #fffdf7;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Lato", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 20; min-height: 70px; padding: 0 6vw; display: flex; align-items: center; justify-content: space-between; background: rgba(244,240,229,.96); border-bottom: 1px solid rgba(104,120,93,.2); backdrop-filter: blur(12px); }
.brand { color: var(--forest); font: 600 27px var(--serif); white-space: nowrap; }
.brand span, footer span { color: var(--moss); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); font-size: 13px; }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--moss); }
.nav-rsvp { padding: 10px 16px; color: white !important; background: var(--moss); border-radius: 3px; }
.menu-toggle { display: none; border: 0; background: none; color: var(--forest); font-size: 24px; }
.hero { min-height: min(780px, 86vh); position: relative; display: grid; place-items: center; overflow: hidden; color: white; background: var(--forest); }
.hero-photo, .hero-shade { position: absolute; inset: 0; }
.hero-photo { background: url("../images/couple.jpg") center 38% / cover no-repeat; }
.hero-shade { background: linear-gradient(90deg, rgba(24,42,31,.55), rgba(24,42,31,.15)), linear-gradient(0deg, rgba(24,42,31,.45), transparent 55%); }
.hero-content { position: relative; z-index: 1; width: min(760px, 90%); padding: 90px 20px; text-align: center; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.eyebrow { margin: 0 0 12px; color: var(--moss); letter-spacing: .2em; font-size: 10px; font-weight: 700; }
.hero .eyebrow { color: #f2eddf; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; }
h1 { margin: 0; font-size: clamp(58px, 9vw, 112px); }
h1 span { color: #dce2d1; font-style: italic; }
.hero-date { margin: 12px 0; font: 26px var(--serif); letter-spacing: .08em; }
.hero-note { margin: 24px auto 30px; font-size: 15px; }
.button { display: inline-block; padding: 13px 24px; border: 1px solid currentColor; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.button-light { color: white; }
.hero-bottom { position: absolute; bottom: 24px; z-index: 1; letter-spacing: .25em; font-size: 11px; }
.section { padding: 105px 7vw; text-align: center; }
.section h2, .rsvp h2 { margin: 0 0 18px; color: var(--forest); font-size: clamp(42px, 5vw, 62px); }
.lead { max-width: 620px; margin: 0 auto; color: #697363; font: 21px/1.5 var(--serif); }
.intro { padding-top: 110px; padding-bottom: 90px; }
.flourish { margin-top: 28px; color: var(--moss); font-size: 28px; }
.landscape-band, .valley-band { position: relative; height: clamp(240px, 38vw, 470px); overflow: hidden; background: var(--sage); }
.landscape-band img, .valley-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.landscape-band img { object-position: center 55%; }
.landscape-caption { position: absolute; right: 5%; bottom: 25px; padding: 12px 18px; color: white; background: rgba(40,61,50,.72); font: italic 22px var(--serif); }
.details { background: #ebe7d9; }
.detail-grid { max-width: 850px; margin: 55px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.detail-card { padding: 36px 24px; background: rgba(255,253,247,.7); border: 1px solid rgba(104,120,93,.18); }
.detail-icon { color: var(--moss); font-size: 30px; }
.detail-card h3, .info-grid h3, .timeline h3 { margin: 12px 0 8px; color: var(--forest); font-size: 27px; }
.detail-card p, .info-grid p, .timeline p { margin: 0; color: #73796d; font-size: 14px; }
.valley-band img { object-position: center 56%; }
.timeline { width: min(570px, 100%); margin: 48px auto 0; text-align: left; }
.timeline-item { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(104,120,93,.25); }
.timeline-item > span { color: var(--moss); font: 25px var(--serif); }
.timeline h3 { margin: 0 0 5px; }
.info { background: #e9e7dc; }
.info-grid { max-width: 950px; margin: 48px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; text-align: left; }
.info-grid article { padding: 24px; border-top: 1px solid var(--sage); }
.info-grid h3 { margin-top: 0; }
.rsvp { padding: 100px 7vw; color: var(--white); text-align: center; background: var(--moss); }
.rsvp .eyebrow { color: #e5e8dc; }
.rsvp h2 { color: white; }
.rsvp p { max-width: 570px; margin-left: auto; margin-right: auto; }
.form-placeholder { margin-top: 35px !important; padding: 28px; color: var(--forest); background: var(--cream); border: 1px dashed var(--sage); }
footer { padding: 42px 20px; color: var(--cream); text-align: center; background: var(--forest); }
footer p { margin: 0; font: 36px var(--serif); }
footer small { display: block; margin: 6px 0 18px; color: #d3d9ca; }
footer a { color: #d3d9ca; font-size: 12px; }
@media (max-width: 760px) {
  .site-header { min-height: 64px; padding: 0 5vw; }
  .brand { font-size: 24px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 18px 5vw 24px; flex-direction: column; align-items: stretch; gap: 16px; background: var(--cream); border-bottom: 1px solid var(--sand); }
  .nav.open { display: flex; }
  .nav-rsvp { text-align: center; }
  .hero { min-height: 720px; min-height: 82svh; }
  .hero-photo { background-position: 43% center; }
  .hero-content { padding: 70px 12px; }
  .hero-note { max-width: 290px; }
  .section { padding: 75px 7vw; }
  .detail-grid, .info-grid { grid-template-columns: 1fr; gap: 14px; }
  .landscape-caption { left: 5%; right: 5%; text-align: center; font-size: 19px; }
}

.map-link { display: inline-block; margin-top: 18px; padding: 10px 16px; color: white; background: var(--moss); border-radius: 3px; font-size: 11px; letter-spacing: .06em; transition: background .2s, transform .2s; }
.map-link:hover { background: var(--forest); transform: translateY(-1px); }

/* Úpravy druhé verze */
.hero-photo { background-image: url("../images/hero-wide.jpg"); background-position: center center; background-size: cover; }
.hero-content { margin-right: auto; margin-left: 5vw; width: min(650px, 52%); text-align: center; }
.hero-shade { background: linear-gradient(90deg, rgba(24,42,31,.53), rgba(24,42,31,.12) 68%, rgba(24,42,31,.07)); }
.hero-date { font-size: clamp(32px, 3.5vw, 43px); margin: 14px 0 3px; }
.countdown { margin: 0 auto 18px; font: 500 clamp(23px, 2.4vw, 31px)/1.25 var(--serif); letter-spacing: .015em; }
.landscape-band img { object-position: center 30%; }
.valley-band img { object-position: center 29%; }
@media (max-width: 760px) {
  .hero-photo { background-image: url("../images/couple.jpg"); background-position: center 35%; background-size: auto 100%; }
  .hero-shade { background: linear-gradient(0deg, rgba(24,42,31,.8), rgba(24,42,31,.25) 75%); }
  .hero-content { width: 95%; margin: 0 auto; padding-top: 210px; }
  .hero-date { font-size: 33px; }
  .countdown { font-size: 25px; }
  .landscape-band img { object-position: center 30%; }
  .valley-band img { object-position: center 26%; }
}

/* Třetí verze: pozice úvodní fotografie, barevné sekce a druhý popisek. */
/* U cover fotografie left drží pár co nejvíc vlevo; vyšší procento ukazuje níže položenou část snímku. */
.hero-photo { background-position: left 61%; }
.details { background: var(--cream); }
.rsvp { background: #e9e7dc; color: var(--ink); }
.rsvp .eyebrow { color: var(--moss); }
.rsvp h2 { color: var(--forest); }
.rsvp .form-placeholder { background: var(--white); }
.schedule { background: #e9e7dc; }
.info { background: var(--moss); color: var(--white); }
.info .eyebrow { color: #e5e8dc; }
.info h2, .info-grid h3 { color: var(--white); }
.info-grid p { color: #eef0e8; }
.info-grid article { border-top-color: rgba(255,255,255,.35); }
.landscape-caption-second { right: auto; left: 5%; }
@media (max-width: 760px) {
  .hero-photo { background-position: left 44%; }
  .landscape-caption-second { right: 5%; left: 5%; }
}

/* Verze 4: portrét vpravo v původních proporcích, bez ořezu obličejů. */
@media (min-width: 761px) {
  .hero-photo { background-image: url("../images/hero-wide.jpg"); background-position: center center; }
  .hero-photo::after {
    content: ""; position: absolute; inset: 0 0 0 auto; width: 48%;
    background: url("../images/couple.jpg") right center / auto 100% no-repeat;
  }
}
/* Potvrzení účasti znovu v mechově zelené. */
.rsvp { background: var(--moss); color: var(--white); }
.rsvp .eyebrow { color: #e5e8dc; }
.rsvp h2 { color: var(--white); }
@media (max-width: 760px) {
  .hero-photo { background-image: url("../images/couple.jpg"); background-position: center 44%; }
}

/* Verze 5: jedna celá portrétní fotografie napravo, vlevo travnaté pozadí. */
.hero { background: #82934e; }
.hero-photo {
  background: #82934e url("../images/grass-background.png") center / cover no-repeat;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}
.hero-photo::after { content: none !important; display: none !important; }
.hero-portrait {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: right center;
}
.hero-shade { background: linear-gradient(90deg, rgba(24,42,31,.40) 0%, rgba(24,42,31,.18) 50%, transparent 75%); }
@media (max-width: 760px) {
  .hero-photo { justify-content: center; background-position: center; }
  .hero-portrait { max-width: 100%; height: 100%; width: auto; object-fit: contain; }
  .hero-shade { background: linear-gradient(0deg, rgba(24,42,31,.75), rgba(24,42,31,.05) 85%); }
}

/* Verze 6: čisté šalvějové pozadí a přesně vystředěný text. */
.hero { background: #A3AD91; }
.hero-photo { background: #A3AD91; }
.hero-shade { background: none; }
.hero-content {
  width: min(650px, 100%);
  margin: 0;
  padding: 70px 24px;
  text-align: center;
  justify-self: center;
  align-self: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.hero-content h1, .hero-content p { text-align: center; }
.hero-bottom { left: 50%; transform: translateX(-50%); white-space: nowrap; }
@media (min-width: 761px) {
  /* Text je vycentrovaný v levé ploše, fotografie zabírá pravou část. */
  .hero-content { justify-self: start; margin-left: 0; width: 52%; }
  .hero-portrait { height: 100%; width: auto; }
}
@media (max-width: 760px) {
  .hero-content { width: 100%; margin: 0; padding: 70px 18px; }
  .hero-shade { background: rgba(40,61,50,.35); }
}

/* Verze 7: centrování vůči skutečné levé ploše, nikoli celé hero sekci. */
@media (min-width: 761px) {
  .hero-content {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - min(585px, 64.5vh));
    max-width: none;
    margin: 0;
    justify-self: auto;
    box-sizing: border-box;
  }
  .hero-content h1 { font-size: clamp(52px, 6.1vw, 108px); }
  .hero-bottom {
    left: calc((100% - min(585px, 64.5vh)) / 2);
  }
}

/* RSVP formulář */
.rsvp-form { max-width: 640px; margin: 30px auto 0; text-align: left; display: grid; gap: 22px; }
.rsvp-field { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.rsvp-field > label:not(.rsvp-option), .rsvp-field legend { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.rsvp-field input[type="text"], .rsvp-field textarea { width: 100%; border: 1px solid var(--sand); border-radius: 6px; padding: 13px 15px; font: inherit; background: var(--cream); color: var(--forest); }
.rsvp-field textarea { resize: vertical; }
.rsvp-field input:focus-visible, .rsvp-field textarea:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.rsvp-option { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.rsvp-option input { accent-color: var(--forest); width: 19px; height: 19px; flex: 0 0 auto; margin: 2px 0 0; }
.rsvp-hint { display: block; margin-top: 3px; font-size: .92rem; font-weight: 400; font-style: italic; opacity: .88; text-align: left; }
.rsvp-form .rsvp-field .rsvp-help { margin: 0 0 6px; font-size: .92rem; opacity: .88; font-style: italic; text-align: left; justify-self: stretch; width: 100%; }
.rsvp-field > .rsvp-help { margin: -8px 0 8px; }
.rsvp-form .rsvp-email-field label { display: block; text-align: left; }
.rsvp-form .rsvp-email-field .rsvp-hint { margin-bottom: 12px; }
.rsvp-form .rsvp-email-field input[type="email"] { display: block; width: 100%; max-width: 420px; min-height: 48px; padding: 12px 16px; background: var(--cream); color: var(--forest); border: 1px solid var(--sand); border-radius: 8px; font-family: var(--sans); font-size: 1rem; }
.rsvp-form button { justify-self: center; cursor: pointer; background: var(--forest); color: white; font-size: 1.15rem; font-weight: 700; padding: 18px 42px; min-height: 56px; border: 2px solid var(--forest); border-radius: 8px; transition: background-color .2s ease; }
.rsvp-form button:hover:not(:disabled) { background: #1B2C24; border-color: #1B2C24; }
.rsvp-form button:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
.rsvp-form button:disabled { opacity: .6; cursor: wait; }
/* Prázdná stavová zpráva nesmí zabírat místo ani gridovou mezeru. */
.rsvp-form .rsvp-status:empty { display: none; }
.rsvp-status { min-height: 1.4em; text-align: center; font-weight: 700; }
.rsvp-status.error { color: #fff0ce; }
.rsvp-form .rsvp-required-note { margin: -6px 0 0; font-size: .9rem; font-style: italic; opacity: .85; text-align: center; max-width: none; }
/* Odsazení mezi poznámkou a následující horskou fotografií. */
.rsvp { padding-bottom: 55px; }
