/* ===== Základní proměnné (podle návrhu) ===== */
:root {
  --color-bg: #D9E8B6;
  --color-card: #ffffff;
  --color-text: #2d2d2d;
  --color-text-muted: #5a5a5a;
  --font-heading: "Amatic SC", cursive;
  --font-body: "DM Sans", sans-serif;
  --blur-amount: 12px;
}

img {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

/* ===== Reset a základ ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

h2 {
  font-size: 80px;
  color: #2B2B2B;
}

strong {
  font-weight: 700;
}

.flowers {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  position: absolute;
  width: 100%;
  height: auto;
  z-index: -1;
}

.flowers > img {
  max-width: 30%;
}

.flowers .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  max-width: 26%;
}

.flowers .right .basket {
  max-width: 100%;
}

header {
  position: relative;
  padding-block: 28px;
}

header h1 {
  margin: 0;

  text-align: center;
  color: #849080;
  font-size: 82px;
}

header h1 span {
  color: #FCC9D2;
}

header ul {
  display: flex;
  justify-content: center;
  gap: 20px 60px;

  list-style: none;
}

header ul a {
  color: #565944;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

header ul a:hover {
  color: #37382e;
}

/* ===== Mobilní menu (hamburger) ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: #565944;
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 10;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-toggle:hover {
  color: #37382e;
}

.menu-toggle:active {
  background: transparent;
  color: #565944;
}

.menu-toggle-bar {
  display: block;
  width: 28px;
  height: 3px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-overlay {
  display: none; /* na desktop skryto, na mobilu zobrazeno v media query */
  position: fixed;
  inset: 0;
  background: rgba(45, 45, 45, 0.4);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.menu-panel {
  display: none; /* na desktop skryto */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  max-width: 100%;
  background: linear-gradient(180deg, #fff 0%, #f5f7f0 100%);
  box-shadow: -4px 0 24px rgba(86, 89, 68, 0.15);
  z-index: 101;
  padding: 24px 20px 32px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: #565944;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-close:hover {
  color: #37382e;
  transform: scale(1.05);
}

.menu-close:active {
  background: transparent;
  color: #565944;
  transform: none;
}

.menu-close-x {
  position: relative;
  width: 24px;
  height: 24px;
}

.menu-close-x::before,
.menu-close-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-nav {
  margin-top: 56px;
}

.menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-nav li {
  border-bottom: 1px solid rgba(86, 89, 68, 0.12);
}

.menu-nav li:last-child {
  border-bottom: none;
}

.menu-nav a {
  display: block;
  padding: 16px 0;
  color: #565944;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-nav a:hover {
  color: #849080;
  padding-left: 8px;
}

/* Stav: menu otevřené */
body.menu-open .menu-overlay {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .menu-panel {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
}

#zakladni-info a {
  color: #2d2d2D;
  text-decoration: none;
}

#zakladni-info a:hover {
  text-decoration: underline;
}

.introduction {
  position: relative;
  padding-bottom: 40px;
}

.introduction-bg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
}

.introduction-bg img {
  display: block;

  width: 100%;
  aspect-ratio: 1920/210;
  object-fit: cover;
  object-position: center top;
}

.introduction-inner {
  position: relative;
  max-width: 830px;
  margin: 40px auto 0;

  text-align: center;
}

.save {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%) rotate(-10deg);

  font-family: var(--font-heading);
  color: #686C57;
  font-weight: 700;
  font-size: 42px;
}

.save .date {
  font-size: 111px;
  line-height: 1;
}

.content {
  background: linear-gradient(to top, #565944, #CDD19F);
  padding-bottom: 100px;
}

.part {
  max-width: 976px;
  margin: 0 auto 84px;
  padding: 32px 68px;

  background-color: #fff;
  text-align: center;
  border-radius: 40px;
  line-height: 1.8;
  font-size: 18px;
}

.part:last-child {
  margin-bottom: 0;
}

.part h2 {
  margin-block: 0 24px;

  line-height: 1.2;
}

.part p {
  margin-bottom: 28px;
}

.colors {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  margin-block: 40px;
}

.colors span {
  display: block;

  width: 100px;
  height: 100px;

  border-radius: 50%;
}

/* Harmonogram – svislá timeline */
.timeline {
  position: relative;

  max-width: 540px;
  margin: 24px auto 0;
  padding: 0;

  list-style: none;
  text-align: left;
}

.timeline::before {
  content: "";

  position: absolute;
  top: 0;
  bottom: 0;
  left: 95px;

  width: 2px;
  background-color: #565944;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 32px 1fr;
  align-items: center;
  gap: 16px;

  position: relative;
  padding-block: 18px;
}

.timeline-icon {
  display: flex;
  justify-content: center;

  color: #565944;
}

.timeline-icon svg {
  width: 48px;
  height: 48px;
}

.timeline-dot {
  position: relative;

  width: 32px;
  height: 32px;
}

.timeline-dot::before {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 13px;
  height: 13px;

  background-color: #2B2B2B;
  border-radius: 50%;
}

.timeline-title {
  margin: 0;

  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #2B2B2B;
}

/* Potvrzení účasti – seznam položek */
.form-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.form-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.form-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #849080;
  font-weight: 700;
}

/* Potvrzení účasti – kontakt na Nikču */
.rsvp-contact {
  margin-top: 32px;
  margin-bottom: 0;
}

.rsvp-contact a {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: #565944;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.rsvp-contact a:hover {
  color: #849080;
}

/* ===== Video ze svatby ===== */
.video-part p {
  margin-bottom: 8px;
}

.video-wrap {
  margin: 32px auto 0;

  line-height: 0;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: auto;

  background-color: #2B2B2B;
  border-radius: 24px;
}

.video-note {
  margin: 14px 0 0;

  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.video-downloads {
  margin-top: 32px;
}

.video-downloads-hint {
  max-width: 640px;
  margin: 0 auto 10px;

  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.video-downloads-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;

  margin-top: 24px;
}

.video-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 12px 26px;

  background-color: #565944;
  color: #fff;
  border: 2px solid #565944;
  border-radius: 999px;
  text-decoration: none;
  text-align: left;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.video-download svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.video-download:hover {
  background-color: #849080;
  border-color: #849080;
  transform: translateY(-2px);
}

.video-download-text {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

/* 4K varianta – sekundární (světlejší) styl, ať 1080p působí jako hlavní volba */
.video-download--alt {
  background-color: #fff;
  color: #565944;
  border-color: #849080;
}

.video-download--alt:hover {
  background-color: #f0f3ea;
  border-color: #565944;
}

/* ===== Sekce fotky ===== */
.photo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-top: 28px;
  padding: 14px 32px;

  background-color: #565944;
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.photo-link svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}

.photo-link:hover {
  background-color: #849080;
  transform: translateY(-2px);
}

.photo-alt-link {
  margin: 20px 0 0;

  font-size: 13px;
  color: var(--color-text-muted);
}

.photo-alt-link a {
  color: inherit;
}

/* Samostatná stránka s jedním videem (rodina) */
.content--single {
  padding-top: 60px;
}

/* ===== Archivované sekce (už proběhlo) ===== */
.part--archived {
  position: relative;
}

.part--archived::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 1;

  background-color: rgba(248, 249, 243, 0.55);
  -webkit-backdrop-filter: grayscale(0.85);
  backdrop-filter: grayscale(0.85);
  border-radius: inherit;
}

.part-flag {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;

  display: inline-flex;
  align-items: center;

  padding: 7px 16px;

  background-color: #849080;
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===== Stránka galerie fotek ===== */
.content--gallery {
  padding-top: 50px;
}

.gallery-intro p {
  margin-bottom: 0;
}

.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;

  margin-top: 28px;
}

.gallery-nav a {
  display: inline-flex;
  align-items: center;

  padding: 8px 20px;

  border: 2px solid #849080;
  border-radius: 999px;
  color: #565944;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-nav a:hover {
  background-color: #f0f3ea;
  transform: translateY(-2px);
}

.gallery-part {
  padding-bottom: 44px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  display: block;

  aspect-ratio: 1 / 1;
  overflow: hidden;

  border-radius: 10px;
  background-color: #f0f3ea;
}

.gallery-item img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-zip {
  margin-top: 28px;
}

.gallery-zip-btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gallery-zip-btn-size {
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;

  position: fixed;
  inset: 0;
  z-index: 200;
}

.lightbox.lightbox-open {
  display: block;
}

body.lightbox-active {
  overflow: hidden;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;

  background-color: rgba(30, 31, 24, 0.94);
}

.lightbox-figure {
  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  inset: 0;
  margin: 0;
  padding: 64px 72px;

  pointer-events: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;

  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-top {
  display: flex;
  align-items: center;
  gap: 16px;

  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  z-index: 2;
}

.lightbox-counter {
  margin-right: auto;

  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  letter-spacing: 0.03em;
}

.lightbox-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 9px 20px;

  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.lightbox-download svg {
  width: 18px;
  height: 18px;
}

.lightbox-download:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;

  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2px;

  background-color: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 88px;
  z-index: 2;

  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.lightbox-arrow:hover {
  opacity: 1;
}

.lightbox-arrow::before {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;

  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.lightbox-prev {
  left: 8px;
}

.lightbox-prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.lightbox-next {
  right: 8px;
}

.lightbox-next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .lightbox-figure {
    padding: 60px 8px 24px;
  }
}

@media (max-width: 499px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .gallery-nav a {
    padding: 6px 14px;

    font-size: 20px;
  }

  .lightbox-download {
    padding: 8px 12px;

    font-size: 12px;
  }

  .lightbox-arrow {
    width: 44px;
  }

  .lightbox-prev {
    left: 0;
  }

  .lightbox-next {
    right: 0;
  }
}

@media (max-width: 1439px) {
  .save {
    font-size: 34px;
  }
  .save .date {
    font-size: 80px;
  }
  header ul {
    gap: 20px 44px;
  }
  h2 {
    font-size: 60px;
  }
  .colors span {
    width: 80px;
    height: 80px;
  }

  .colors {
    justify-content: center;

    margin-block: 24px;
  }

  .part {
    margin-bottom: 60px;
  }
}

@media (max-width: 1199px) {
  .introduction-inner {
    max-width: 530px;
  }

  header h1 {
    font-size: 64px;
  }

  header ul a {
    font-size: 24px;
  }

  .part {
    width: 970px;
    max-width: calc(100% - 60px);
    padding-bottom: 40px;
  }

  .content {
    padding-bottom: 40px;
  }

  .part p:last-child {
    margin-bottom: 0;
  }

  h2 {
    font-size: 48px;
  }
} 

@media (max-width: 991px) {
  html {
    scroll-padding-top: 70px;
  }

  header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-block: 20px;
    box-shadow: 0 0 0 transparent;
    transition: box-shadow 0.25s ease, background 0.25s ease, padding 0.25s ease;
  }

  header.header-scrolled {
    padding-block: 10px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(86, 89, 68, 0.12), 0 2px 8px rgba(86, 89, 68, 0.06);
  }

  header.header-scrolled h1 {
    font-size: 36px;
    line-height: 1.1;
  }

  header h1 {
    transition: font-size 0.25s ease, line-height 0.25s ease;
  }

  .menu-toggle {
    display: flex;
  }

  header .navi {
    display: none;
  }

  .menu-overlay {
    display: block;
  }

  .menu-panel {
    display: block;
  }

  .flowers .right .flowers-right {
    opacity: 0;
  }

  .flowers .right .basket {
    max-width: 80%;
  }

  .save {
    font-size: 28px;
  }

  .save .date {
    font-size: 60px;
  }

  .introduction-inner {
    max-width: 420px;
  }

  .part {
    font-size: 16px;

    margin-bottom: 40px;
  }
}

@media (max-width: 767px) {
  header h1 {
    font-size: 48px;
  }

  .introduction-inner {
    max-width: 370px;
  }

  .save {
    left: 40px;
    top: -20px;
  }

  .flowers .right {
    max-width: 36%;
  }

  .flowers .right .flowers-right {
    display: none;
  }

  .flowers .right {
    margin-top: 90px;
  }

  .introduction {
    padding-bottom: 10px;
  }

  .part {
    padding: 28px 40px 40px;
  }

  .colors {
    gap: 12px;
  }

  .colors span {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 499px) {
  .part {
    max-width: calc(100% - 20px);
    padding: 20px 20px 24px;
  }

  .colors {
    flex-wrap: wrap;
  }

  .part p {
    margin-bottom: 16px;
  }

  .introduction-inner {
    max-width: calc(100% - 20px);
  }

  .save {
    top: -20px;
    left: 0;
    transform: rotate(-10deg);
    font-size: 20px;
  }

  .save .date {
    font-size: 40px;
  }

  header h1 {
    font-size: 40px;
  }

  .menu-toggle-bar {
    width: 24px;
    height: 2px;
  }

  .menu-toggle {
    right: 10px;
  }

  header {
    padding-block: 12px;
  }

  .menu-nav {
    margin-top: 40px;
  }

  .part {
    font-size: 14px;

    margin-bottom: 24px;

    border-radius: 20px;
  }

  .colors span {
    width: 56px;
    height: 56px;
  }

  .rsvp-contact {
    margin-top: 24px;
  }

  .rsvp-contact a {
    font-size: 32px;
  }

  h2 {
    font-size: 44px;
  }

  .video-wrap {
    margin-inline: -20px;
  }

  .video-wrap video {
    border-radius: 0;
  }

  .video-downloads-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .video-download {
    justify-content: center;
    padding: 10px 22px;
  }

  .video-download-text {
    font-size: 24px;
  }

  .photo-link {
    font-size: 24px;
    padding: 12px 26px;
  }

  .part-flag {
    top: 14px;
    right: 14px;

    padding: 5px 12px;

    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .timeline::before {
    left: 73px;
  }

  .timeline-item {
    grid-template-columns: 48px 28px 1fr;
    gap: 12px;
  }

  .timeline-icon svg {
    width: 40px;
    height: 40px;
  }

  .timeline-title {
    font-size: 17px;
    letter-spacing: 0.04em;
  }
}