@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Fleur+De+Leah&display=swap');

:root {
  --font-sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-wedding: "Great Vibes", "Times New Roman", serif;
  --ink: #0b1b2b;
  --sky-start: #6aa6ff;
  --sky-end: #0f3f7f;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  min-height: 100vh;
}

body.story-modal-open {
  overflow: hidden;
  touch-action: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: none;
  background: transparent;
  border-bottom: none;
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-brand {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.4px;
  font-family: var(--font-wedding);
  font-size: 1.25rem;
  text-decoration: none;
}

.nav-brand:link,
.nav-brand:visited,
.nav-brand:hover,
.nav-brand:active {
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  color: rgba(11, 27, 43, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #0b1b2b;
}

.lang-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 27, 43, 0.06);
  font-size: 0.85rem;
}

.lang-toggle a {
  color: rgba(11, 27, 43, 0.7);
  text-decoration: none;
  font-weight: 600;
}

.lang-toggle a.is-active {
  color: #0b1b2b;
}

.lang-sep {
  color: rgba(11, 27, 43, 0.55);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle:active {
  transform: translateY(1px);
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  display: block;
}

.nav-overlay {
  display: none;
}

.deck {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 120px;
  text-align: center;
  min-height: 200vh;
}

.content-section {
  padding: 120px 0 40px;
}

.content-section h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--ink);
  text-shadow: 0 12px 30px rgba(4, 12, 24, 0.35);
}

.content-section h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--ink);
  text-shadow: 0 12px 30px rgba(4, 12, 24, 0.35);
}

.faq-section {
  margin: 40px auto 0;
  padding: 24px 26px;
  border-radius: 20px;
  background: rgba(11, 27, 43, 0.06);
  text-align: left;
  max-width: 820px;
  box-shadow: 0 16px 40px rgba(7, 16, 32, 0.18);
  backdrop-filter: blur(10px);
}

.faq-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--ink);
  text-shadow: none;
}

.faq-item {
  margin: 14px 0;
  border-radius: 14px;
  padding: 6px 10px;
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.08);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: #0b1b2b;
}

.story-section {
  padding: 80px 0 60px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.story-card {
  background: rgba(11, 27, 43, 0.04);
  border: 1px solid rgba(11, 27, 43, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 14px 30px rgba(7, 16, 32, 0.12);
  font-size: 0.9rem;
}

.mountain-story {
  pointer-events: auto;
}

.story-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1200;
  pointer-events: auto;
}

.story-buttons .story-open:first-child {
  transform: translateY(-6px);
}

.story-buttons-floating {
  position: absolute;
  left: 50%;
  bottom: 34%;
  transform: translateX(-50%);
  display: none;
}

.story-open {
  border: 1px solid rgba(11, 27, 43, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: #0b1b2b;
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 20px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 18px rgba(7, 16, 32, 0.15);
}

.story-open:hover {
  background: rgba(255, 255, 255, 1);
  transform: none;
  box-shadow: 0 14px 24px rgba(7, 16, 32, 0.2);
}

.story-open:active {
  transform: translateY(0);
}

@media (min-width: 769px) {
  .story-open {
    padding: 18px 26px;
    font-size: 35px;
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .mountain-story {
    display: none;
  }
  .story-buttons-floating.is-visible {
    display: flex;
  }
}

.story-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 25, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1400;
}

.story-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.story-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1401;
  pointer-events: none;
}

.story-modal.is-open {
  pointer-events: auto;
}

.story-modal-card {
  background: #ffffff;
  color: #0b1b2b;
  border-radius: 16px;
  border: 1px solid rgba(11, 27, 43, 0.1);
  box-shadow: 0 30px 60px rgba(7, 16, 32, 0.3);
  max-width: 620px;
  width: min(90vw, 620px);
  max-height: 80vh;
  padding: 20px 22px 16px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.24s ease;
  position: relative;
}

.story-modal.is-open .story-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.story-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.story-modal-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.story-modal-content {
  max-height: 60vh;
  overflow: auto;
  line-height: 1.6;
  padding-right: 6px;
}

.story-modal-content img,
.story-image {
  width: 70%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(7, 16, 32, 0.2);
  margin-top: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.story-modal-close {
  border: none;
  background: rgba(11, 27, 43, 0.08);
  color: #0b1b2b;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.story-modal-close:hover {
  background: rgba(11, 27, 43, 0.14);
}

.story-modal-close:active {
  transform: scale(0.96);
}

.story-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
}

.story-card p {
  margin: 8px 0;
  color: rgba(11, 27, 43, 0.84);
  line-height: 1.55;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  margin-top: 8px;
  color: rgba(11, 27, 43, 0.82);
  line-height: 1.5;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px rgba(7, 16, 32, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 26px rgba(7, 16, 32, 0.24);
}

.contact-link::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
}

.contact-whatsapp::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20.5 3.5A11.95 11.95 0 0012 0 12 12 0 000 12c0 2.1.6 4.1 1.7 5.9L0 24l6.4-1.7A12 12 0 0024 12c0-3.2-1.3-6.2-3.5-8.5zM12 21.5a9.4 9.4 0 01-4.8-1.3l-.3-.2-3.8 1 1-3.7-.3-.4A9.4 9.4 0 1121.5 12 9.5 9.5 0 0112 21.5zm5.2-6.9c-.3-.1-1.7-.8-2-1-.3-.1-.5-.2-.7.2-.2.3-.8 1-.9 1.1-.2.1-.3.2-.6 0-.3-.1-1.4-.5-2.6-1.6-.9-.8-1.6-1.8-1.8-2-.2-.3 0-.4.1-.5l.5-.6c.2-.2.3-.3.4-.5.1-.2 0-.4 0-.5l-.8-2c-.2-.6-.4-.5-.6-.5h-.6c-.2 0-.5.1-.7.3-.3.3-1 1-.9 2.4.1 1.3 1 2.5 1.2 2.7.2.3 2 3 4.8 4.2.7.3 1.2.5 1.6.6.7.2 1.3.2 1.7.1.5-.1 1.7-.7 1.9-1.3.2-.6.2-1.1.2-1.2 0-.2-.2-.3-.5-.4z'/%3E%3C/svg%3E");
}

.contact-telegram::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cpath fill='%23fff' d='M125.5 161.8c-3.4 3.4-6.6 6.6-10.1 9.8-1.1 1-2.3 1.9-3.6 2.7-3.2 2-6.1 1-7-2.6-1.4-5.7-2.7-11.3-4-17-.4-1.9-1.3-3-3.1-4-7.9-4.4-15.6-9-23.4-13.6-2.3-1.4-2.3-3.2-.1-4.7 1.8-1.2 3.7-2.5 5.6-3.6 25.1-14.1 50.3-28.2 75.4-42.4 1.3-.7 2.7-1.2 4.2-1.6 3.3-.8 5.2 1.2 4.5 4.5-.4 2-1 4-1.6 6-6.9 22.9-13.8 45.9-20.7 68.8-.4 1.2-.9 2.4-1.6 3.7z'/%3E%3C/svg%3E");
}

.contact-imessage::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 5.5C20 3.6 18.4 2 16.5 2h-9C5.6 2 4 3.6 4 5.5v7c0 1.9 1.6 3.5 3.5 3.5H9l-.9 3.3c-.1.4.2.7.6.7.1 0 .3 0 .4-.1L12 18h4.5c1.9 0 3.5-1.6 3.5-3.5v-9z'/%3E%3C/svg%3E");
}

.contact-sms::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M4 4h16a2 2 0 012 2v9a2 2 0 01-2 2H8l-4 3v-3H4a2 2 0 01-2-2V6a2 2 0 012-2zm3 6a1 1 0 100 2h10a1 1 0 100-2H7zm0-3a1 1 0 100 2h10a1 1 0 100-2H7z'/%3E%3C/svg%3E");
}

.contact-whatsapp {
  background: #25d366;
}

.contact-telegram {
  background: #229ed9;
}

.contact-imessage {
  background: #34c759;
}

.contact-sms {
  background: #0b1b2b;
}

.contact-whatsapp:hover { background: #1fb85a; }
.contact-telegram:hover { background: #1d8cc1; }
.contact-imessage:hover { background: #2eaf4e; }
.contact-sms:hover { background: #0e2640; }

.faq-list {
  margin: 6px 0 0 18px;
  padding: 0;
  color: rgba(11, 27, 43, 0.82);
  line-height: 1.5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: min(1100px, 100%);
  margin: 0 auto 80px;
  padding: 0 6px;
}

.gallery-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(7, 16, 32, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  aspect-ratio: 4 / 5;
  background: rgba(255, 255, 255, 0.04);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px rgba(7, 16, 32, 0.32);
  border-color: rgba(255, 255, 255, 0.18);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 20, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1100;
  padding: 16px;
}

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

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 28px 48px rgba(7, 16, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 0 14px;
  transform: translateY(-50%);
}

.lightbox-button {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(7, 16, 32, 0.35);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lightbox-button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(7, 16, 32, 0.4);
}

.lightbox-button:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }

  .gallery-card {
    aspect-ratio: 3 / 4;
  }
}

.card-stack {
  position: sticky;
  top: 140px;
  width: min(100%, 1100px);
  margin: 0 auto;
  height: clamp(360px, 55vw, 620px);
  --mountain-transform: translateY(6%);
  --mountain-scale: 0.985;
  --mountain-scale-active: 1.02;
  --register-bg: rgba(14, 33, 58, 0.85);
  --register-active: rgba(255, 255, 255, 0.9);
}

.rsvp-button {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(41, 60, 89, 0.9);
  color: #ffffff;
  text-decoration: none;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 16px 30px rgba(7, 16, 32, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.rsvp-button.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.rsvp-button:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 20px 36px rgba(7, 16, 32, 0.3);
}

.register-tabs {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 12;
}

.register-tabs button {
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px 0 0 12px;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.8);
  background: var(--register-bg);
  box-shadow: 0 10px 24px rgba(7, 16, 32, 0.25);
  transform: perspective(500px) rotateY(-6deg);
  transform-origin: right center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.register-tabs button.is-active {
  background: var(--register-active);
  color: #0c2035;
  transform: perspective(500px) rotateY(0deg) translateX(4px);
  box-shadow: 0 14px 30px rgba(7, 16, 32, 0.32);
}

.more-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  pointer-events: auto;
}

.more-card {
  background: rgba(11, 27, 43, 0.08);
  border: 1px solid rgba(11, 27, 43, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 14px 24px rgba(7, 16, 32, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
   flex: 1;
  width: 100%;
  max-width: 240px;
}

.more-description {
  font-family: var(--font-sans);
  color: #0b1b2b;
  font-size: 15px;
  text-align: center;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.more-link {
  border: 1px solid rgba(11, 27, 43, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: #0b1b2b;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-shadow: 0 10px 18px rgba(7, 16, 32, 0.15);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.more-link:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 14px 24px rgba(7, 16, 32, 0.2);
}

.more-link:active {
  transform: none;
}

.mountain-frame {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  transform: var(--mountain-transform) scale(var(--mountain-scale));
  transition: transform 0.45s ease;
}

.mountain-frame .mountain-shape {
  pointer-events: visiblePainted;
  cursor: pointer;
}

.mountain-frame .mountain-text {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  fill: #293c59;
  letter-spacing: 2px;
  pointer-events: none;
}

.mountain-frame .name-primary {
  font-size: 1.4em;
  letter-spacing: 3px;
}

.mountain-frame .name-and {
  font-family: "Cardo", "Times New Roman", serif;
  font-style: italic;
  font-size: 0.7em;
  letter-spacing: 1px;
}

.mountain-frame .name-date {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 200;
  font-size: 0.5em;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mountain-frame .name-place {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 200;
  font-size: 0.45em;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mountain-frame .name-celebrate {
  font-family: "Amatic SC", "Fleur De Leah", cursive;
  font-size: 75px;
  fill: #293c59;
  letter-spacing: 1px;
  font-weight: 400;
}

.mountain-frame .mountain-label {
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.6em;
  letter-spacing: 0.12em;
  fill: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  pointer-events: none;
}

.card-stack .mountain-frame:first-of-type .mountain-text {
  font-size: clamp(32px, 4vw, 54px);
}

.card-stack .mountain-frame:first-of-type .mountain-label {
  display: none;
}

.card-stack .mountain-frame:nth-of-type(5) .mountain-shape {
  fill: url(#mountain5Gradient);
}

.mountain-frame:nth-child(1) { z-index: 5; }
.mountain-frame:nth-child(2) { z-index: 4; }
.mountain-frame:nth-child(3) { z-index: 3; }
.mountain-frame:nth-child(4) { z-index: 2; }
.mountain-frame:nth-child(5) { z-index: 1; }

.card-stack.animate-mountains .mountain-frame {
  transition: transform 0.45s ease;
}

.card-stack.animate-mountains .mountain-frame.is-active {
  transform: var(--mountain-transform) scale(var(--mountain-scale-active));
}


@media (max-width: 520px) {
  .card-stack {
    height: 480px;
    top: 120px;
    --mountain-transform: translateY(48%) scale(1.1, 2.05);
  }

  .deck {
    padding: 28px 16px 90px;
  }

  .mountain-frame {
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    transform: var(--mountain-transform);
    transform-origin: center bottom;
  }

  .card-stack .mountain-frame:first-of-type {
    --mountain-transform: translateY(55%) scale(1.1, 2.05);
  }

  .nav-inner {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }

  .register-tabs {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
  }

  .nav-inner {
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    z-index: 1002;
    background: rgba(11, 27, 43, 0.06);
    border-color: rgba(11, 27, 43, 0.14);
  }

  .nav-toggle-bar {
    background: #0b1b2b;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    right: 16px;
    left: auto;
    bottom: auto;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(11, 27, 43, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 48px rgba(7, 16, 32, 0.2);
    border-radius: 16px;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1001;
  }

  .nav-links a,
  .lang-toggle {
    width: 100%;
    text-align: right;
  }

  .nav-links a {
    font-size: 1rem;
  }

  body.nav-open .nav-links {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.75));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .nav-toggle {
    background: rgba(255, 255, 255, 0.2);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 480px) {
  .card-stack {
    height: 520px;
    top: 110px;
  }
}
