* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #2A343C;
  color: #4B5B68;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #2A343C;
}

/* Header */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 16px;
  gap: 16px;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  header {
    padding: 8px 32px;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: start;
}

.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-actions {
  justify-self: end;
}

.brand {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.brand-text {
  text-align: center;
}

.brand-logo {
  width: 74px;
  height: 74px;
}

@media (max-width: 640px) {
  header {
    grid-template-columns: auto 1fr auto;
  }

  .brand-title,
  .brand-subtitle {
    display: none;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }
}


.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.hamburger svg {
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.brand-text {
  text-align: right;
  line-height: 1.4;
}

.brand-title {
  color: #F5F5F5;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
}

.brand-subtitle {
  color: #F5F5F5;
  font-size: 12px;
  font-weight: 200;
}

.brand-logo {
  width: 60px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .brand-logo {
    width: 48px;
    height: 50px;
  }
}

.cta-button {
  background: #F5F5F5;
  color: #2A343C;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Alegreya Sans', serif;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.cta-button:hover {
  opacity: 0.8;
}

.music-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 245, 0.25);
  background: rgba(245, 245, 245, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.music-button:hover {
  background: rgba(245, 245, 245, 0.18);
  transform: scale(1.05);
}

.music-button svg {
  width: 18px;
  height: 18px;
  fill: #F5F5F5;
}

.music-button.playing {
  background: #F5F5F5;
}

.music-button.playing svg {
  fill: #2A343C;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  .music-button {
    width: 42px;
    height: 42px;
  }

  .music-button svg {
    width: 16px;
    height: 16px;
  }
}


.cta-button.sm-hidden {
  display: none;
}

@media (max-width: 640px) {
  .cta-button.sm-hidden {
    display: flex;
    padding: 8px 16px;
    font-size: 12px;
  }

  .cta-button:not(.sm-hidden) {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #2A343C;
  display: none;
  flex-direction: column;
  z-index: 50;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(245, 245, 245, 0.1);
}

.close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 64px;
  padding: 0 16px;
}

.nav-link {
  background: none;
  border: none;
  color: #F5F5F5;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Alegreya Sans', serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.3s;
}

.nav-link:hover {
  opacity: 0.8;
}

/* Main */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 8px 8px 0 8px;
}

@media (min-width: 640px) {
  main {
    padding: 8px 16px 0 16px;
  }
}

@media (min-width: 768px) {
  main {
    padding: 8px 32px 0 32px;
  }
}

.hero-card {
  position: relative;
  flex: 1;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #D6E0E8 0%, #EAF0F4 58%, #A9B7C5 100%);
  min-height: clamp(560px, 74vh, 760px);
}

.skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38%;
  pointer-events: none;
  overflow: hidden;
}

.skyline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: saturate(0.7) contrast(1.08) brightness(0.9);
}

.radial-glows {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
}

.floating-clouds {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 180px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.cloud {
  position: absolute;
  opacity: 0.22;
  filter: blur(1px);
  animation: cloudMove linear infinite;
}

.cloud::before {
  content: '';
  display: block;
  width: 220px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 100px;
  box-shadow:
    60px -20px 0 10px rgba(255, 255, 255, 0.85),
    120px 0 0 0 rgba(255, 255, 255, 0.8),
    40px 20px 0 5px rgba(255, 255, 255, 0.75);
}

.cloud-1 {
  top: 10px;
  left: -320px;
  transform: scale(1);
  animation-duration: 90s;
}

.cloud-2 {
  top: 70px;
  left: -420px;
  transform: scale(0.8);
  animation-duration: 120s;
  opacity: 0.16;
}

.cloud-3 {
  top: 20px;
  left: -520px;
  transform: scale(1.2);
  animation-duration: 150s;
  opacity: 0.12;
}

@keyframes cloudMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(100vw + 700px));
  }
}


.hero-content {
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 32px 16px;
  text-align: center;
  gap: clamp(24px, 5vw, 40px);
}

@media (min-width: 640px) {
  .hero-content {
    padding: 48px 16px;
  }
}

.title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
}

.hero-title {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 600;
  line-height: 1;
  color: #4B5B68;
  margin: 0;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 2.5vw, 32px);
  font-weight: 200;
  line-height: 1;
  color: #4B5B68;
  margin: 0;
}

.epoch-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
  width: 100%;
  max-width: 600px;
}

.epoch-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
}

.epoch-description {
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.5vw, 20px);
  font-weight: 200;
  line-height: 1.4;
  color: #4B5B68;
  text-align: center;
  max-width: 480px;
}

.epoch-prompt {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: clamp(18px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1;
  color: #4B5B68;
}

.epoch-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

@media (min-width: 640px) {
  .epoch-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.epoch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 16px 32px 16px;
  border-radius: 16px;
  border: 1px solid #2A343C;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 140px;
  font-family: 'Alegreya Sans', serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2A343C;
  width: 100%;
}

@media (min-width: 640px) {
  .epoch-card {
    padding: 24px 16px 32px 16px;
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .epoch-card {
    font-size: 15px;
  }
}

@media (min-width: 1024px) {
  .epoch-card {
    font-size: 16px;
  }
}

.epoch-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.epoch-card:active {
  transform: scale(0.95);
}

.epoch-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.epoch-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.epoch-icon svg {
  width: 32px;
  height: 32px;
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: #2A343C;
}

@media (min-width: 640px) {
  footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 20px 32px;
  }
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #F5F5F5;
  border-radius: 4px;
  flex-shrink: 0;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .contact-info {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact-text {
  color: #F5F5F5;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

.contact-phone {
  font-weight: 600;
  font-size: 16px;
}

.legal-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

@media (min-width: 640px) {
  .legal-info {
    align-items: flex-end;
  }
}

.legal-text {
  color: rgba(245, 245, 245, 0.6);
  font-size: 12px;
  font-family: 'Inter', sans-serif;
}

/* Frame border SVG */
.frame-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}

@media (min-width: 1280px) {
  .frame-border {
    display: block;
  }
}

/* Center logo block like reference: text left + logo right */
.header-center .brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: right;
}

.header-center .brand-text {
  text-align: right;
  line-height: 1.1;
  order: 1;
}

.header-center .brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  order: 2;
}

.header-center .brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  white-space: nowrap;
}

.header-center .brand-subtitle {
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .header-center .brand {
    gap: 8px;
  }

  .header-center .brand-title,
  .header-center .brand-subtitle {
    display: block;
  }

  .header-center .brand-title {
    font-size: 12px;
  }

  .header-center .brand-subtitle {
    font-size: 10px;
  }

  .header-center .brand-logo {
    width: 46px;
    height: 46px;
  }

  .cta-button.sm-hidden {
    display: none;
  }
}


.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.05));
  z-index: 1;
  pointer-events: none;
}


.hero-frame {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  z-index: 25;
  pointer-events: none;
}

.hero-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-frame path {
  fill: rgba(255, 255, 255, 0.92);
}

@media (max-width: 640px) {
  .hero-frame {
    inset: 7px;
    width: calc(100% - 14px);
    height: calc(100% - 14px);
  }
}

/* ================= INNER PAGE: test.html ================= */
/* body.inner-page *,
body.inner-page *::before,
body.inner-page *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */

html,
body.inner-page {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body.inner-page {
  --bg: #1B6655;
  --bg-dark: #174E40;
  --text-light: #F5F5F5;
  --text-muted: rgba(245, 245, 245, 0.6);
  --gold: #C49A3C;
  --gold-light: #D4A84B;
  --border-light: rgba(245, 245, 245, 0.35);
  --btn-border: rgba(245, 245, 245, 0.55);
}

body.inner-page {
  font-family: "Inter", -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text-light);
}

body.inner-page .page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='300' viewBox='0 0 200 300'%3E%3Crect x='80' y='40' width='40' height='120' rx='20' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Crect x='70' y='100' width='60' height='80' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Crect x='60' y='160' width='80' height='40' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='100' cy='40' r='10' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Crect x='55' y='70' width='15' height='60' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3Crect x='130' y='70' width='15' height='60' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 300px;
}

body.inner-page .page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.inner-page header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  body.inner-page header {
    padding: 14px 32px;
  }
}

body.inner-page .hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

body.inner-page .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

body.inner-page .brand-text {
  text-align: right;
  line-height: 1.4;
}

body.inner-page .brand-name {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  display: block;
}

body.inner-page .brand-sub {
  color: var(--text-light);
  font-size: 11px;
  font-weight: 200;
  display: block;
}

body.inner-page .brand-logo {
  width: 52px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  body.inner-page .brand-logo {
    width: 60px;
    height: 62px;
  }
}

body.inner-page .cta-btn {
  background: var(--text-light);
  color: #2A343C;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: "Alegreya Sans", serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
}

body.inner-page .cta-btn:hover {
  opacity: 0.85;
}

@media (max-width: 480px) {
  body.inner-page .cta-btn {
    padding: 8px 14px;
    font-size: 11px;
  }
}

body.inner-page .mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 1000;
  flex-direction: column;
}

body.inner-page .mobile-menu.open {
  display: flex;
}

body.inner-page .mobile-menu-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
}

body.inner-page .close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

body.inner-page .mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 60px;
  padding: 0 20px;
}

body.inner-page .nav-link {
  background: none;
  border: none;
  color: var(--text-light);
  font-family: "Alegreya Sans", serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s;
}

body.inner-page .nav-link:hover {
  opacity: 0.75;
}

body.inner-page .page-hero {
  text-align: center;
  padding: 24px 20px 20px;
}

body.inner-page .page-title {
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: var(--text-light);
  margin-bottom: 10px;
}

body.inner-page .page-subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 300;
  color: rgba(245, 245, 245, 0.75);
  letter-spacing: 0.01em;
}

body.inner-page main {
  flex: 1;
  padding: 16px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  body.inner-page main {
    padding: 24px 32px 48px;
  }
}

body.inner-page .grid-wrapper {
  position: relative;
}

body.inner-page .cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px 0;
  position: relative;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  body.inner-page .cards-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  body.inner-page .cards-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px 0;
  }
}

body.inner-page .center-divider {
  display: none;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  pointer-events: none;
  z-index: 2;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 901px) {
  body.inner-page .center-divider {
    display: flex;
  }
}

body.inner-page .divider-ornament {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 3;
  margin-top: 8px;
}

body.inner-page .divider-ornament img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body.inner-page .divider-wave-top,
body.inner-page .divider-wave-bottom {
  flex: 1;
}

body.inner-page .wavy-line {
  width: 24px;
}

body.inner-page .tour-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 16px 16px;
  gap: 10px;
  position: relative;
}

@media (max-width: 500px) {
  body.inner-page .tour-card {
    padding: 0 8px 12px;
  }
}

body.inner-page .card-image-wrap {
  position: relative;
  width: 100%;
  max-width: 200px;
}

body.inner-page .card-img-frame {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 100px 100px 8px 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

body.inner-page .card-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.inner-page .hit-badge {
  position: absolute;
  top: 10px;
  right: -8px;
  background: var(--gold);
  color: #fff;
  font-family: "Alegreya Sans", serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  transform: rotate(8deg);
  z-index: 2;
  white-space: nowrap;
}

body.inner-page .question-badge {
  position: absolute;
  top: 8px;
  right: -10px;
  width: 32px;
  height: 32px;
  background: rgba(245, 245, 245, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Alegreya Sans", serif;
  font-weight: 700;
  font-size: 18px;
  color: #2A343C;
  z-index: 2;
}

body.inner-page .card-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.4;
  margin-top: 4px;
}

body.inner-page .card-btn {
  background: transparent;
  border: 1px solid var(--btn-border);
  color: var(--text-light);
  font-family: "Alegreya Sans", serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  margin-top: 2px;
}

body.inner-page .card-btn:hover {
  background: rgba(245, 245, 245, 0.15);
  border-color: var(--text-light);
}

body.inner-page .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 40px;
}

body.inner-page .page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-light);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s;
}

body.inner-page .page-btn:hover {
  background: rgba(245, 245, 245, 0.15);
}

body.inner-page .page-btn.active {
  background: rgba(245, 245, 245, 0.2);
  border-color: var(--text-light);
  font-weight: 600;
}

body.inner-page .page-dots {
  color: var(--text-muted);
  font-size: 14px;
  padding: 0 4px;
}

body.inner-page .page-arrow {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

body.inner-page .page-arrow:hover {
  background: rgba(245, 245, 245, 0.15);
}

body.inner-page footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-top: 1px solid var(--border-light);
}

@media (min-width: 640px) {
  body.inner-page footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    gap: 24px;
  }
}

body.inner-page .footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body.inner-page .social-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text-light);
  border-radius: 4px;
  flex-shrink: 0;
}

body.inner-page .footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 640px) {
  body.inner-page .footer-contacts {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
  }
}

body.inner-page .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.inner-page .footer-contact-item svg {
  flex-shrink: 0;
}

body.inner-page .footer-phone {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
}

body.inner-page .footer-email {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 400;
}

body.inner-page .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

@media (min-width: 640px) {
  body.inner-page .footer-legal {
    align-items: flex-end;
  }
}

body.inner-page .footer-legal p {
  color: var(--text-muted);
  font-size: 11px;
}

/* Shared fixes for project pages */
a.epoch-card {
  text-decoration: none;
}

.music-button {
  appearance: none;
}

body.inner-page .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.inner-page .music-button {
  width: 46px;
  height: 46px;
}

body.inner-page .mobile-menu.active,
body.inner-page .mobile-menu.open {
  display: flex;
}

@media (max-width: 480px) {
  body.inner-page .header-actions {
    gap: 8px;
  }

  body.inner-page .music-button {
    width: 40px;
    height: 40px;
  }
}

.page-title {
  font-family: 'Noto Serif', serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  color: #F5F5F5;
}

.page-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 200;
  line-height: 1.2;
  color: #F5F5F5;
}

/* ================= INNER PAGE VISUAL FIXES 2026-05 =================
   Reference: green patterned background, white photo frames, centered buttons
*/
body.inner-page {
  background-color: #11695d;
}

body.inner-page .page {
  background-color: #11695d;
}

body.inner-page .page-bg {
  opacity: 0.22;
  background-size: 88px 132px;
  background-position: center 170px;
  background-repeat: repeat;
}

body.inner-page header {
  padding: 14px 24px 8px;
}

body.inner-page .header-center .brand,
body.inner-page .brand {
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

body.inner-page .brand-text {
  order: 1;
  text-align: right;
}

body.inner-page .brand-logo {
  order: 2;
}

body.inner-page .page-hero {
  padding: 16px 20px 68px;
  text-align: center;
}

body.inner-page .page-title {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 48px;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  color: #F5F5F5;
  margin-bottom: 8px;
}

body.inner-page .page-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 200;
  line-height: 1.2;
  color: #F5F5F5;
  letter-spacing: 0;
}

body.inner-page main {
  max-width: 1180px;
  padding-top: 0;
}

body.inner-page .cards-row {
  gap: 22px 34px;
  align-items: start;
  margin-bottom: 34px;
}

body.inner-page .tour-card {
  align-items: center;
  text-align: center;
  padding: 0 10px 16px;
  gap: 12px;
}

body.inner-page .card-image-wrap {
  width: 100%;
  max-width: 182px;
  border: 1px solid rgba(245, 245, 245, 0.95);
  padding: 10px;
}

body.inner-page .card-img-frame {
  border-radius: 96px 96px 0 0;
  background: transparent;
}

body.inner-page .card-img-frame img {
  filter: saturate(0.96) contrast(1.03);
}

body.inner-page .card-title {
  max-width: 230px;
  min-height: 38px;
  color: #F5F5F5;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 2px auto 0;
}

body.inner-page .card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 102px;
  margin: 0 auto;
  padding: 8px 22px;
  border: 1px solid rgba(245, 245, 245, 0.95);
  border-radius: 999px;
  color: #F5F5F5;
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

body.inner-page .center-divider {
  top: -16px;
  bottom: -16px;
}

body.inner-page .divider-ornament {
  width: 56px;
  height: 56px;
  margin-top: 210px;
}

@media (max-width: 900px) {
  body.inner-page .page-hero {
    padding-bottom: 34px;
  }

  body.inner-page .cards-row {
    gap: 28px 18px;
  }
}

@media (max-width: 640px) {
  body.inner-page .page-title {
    font-size: 36px;
  }

  body.inner-page .page-subtitle {
    font-size: 18px;
  }

  body.inner-page .card-image-wrap {
    max-width: 170px;
  }
}

@media (max-width: 420px) {
  body.inner-page .cards-row {
    grid-template-columns: 1fr;
  }

  body.inner-page .card-title {
    min-height: auto;
  }
}

/* Тонкая белая рамка */
body.inner-page .card-image-wrap {
  position: relative;

  width: 100%;
  max-width: 220px;

  padding: 3px;
  /* тонкая рамка */

  background: #F5F5F5;

  border-radius: 140px 140px 0 0;

  overflow: hidden;

  margin: 0 auto 18px;
}

/* Внешняя белая арка */
body.inner-page .card-image-wrap {
  position: relative;

  width: 100%;
  max-width: 190px;

  margin: 0 auto 18px;

  border: 2px solid rgba(255, 255, 255, 0.95);

  border-radius: 120px 120px 0 0;

  padding: 10px;

  background: transparent;
}

/* Внутренняя область картинки */
body.inner-page .card-img-frame {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  overflow: hidden;
  border-radius: 110px 110px 0 0;
  background: transparent;
}

/* Картинка */
body.inner-page .card-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 110px 110px 0 0;
  display: block;
}

.imperial-wrapper {
  background-image: url('media/bg1.svg');
}


body.inner-page .grid-wrapper {
  position: relative;
}

body.inner-page main {
  position: relative !important;
}

.scroll-path {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: calc(100% - 230px);
  z-index: 10;
  pointer-events: none;
}

.scroll-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.scroll-logo {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #C29A72;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transform: translate(-50%, -50%);
  z-index: 999;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* MODAL */

.tour-modal {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transition: .4s;

  z-index: 99999;
}

.tour-modal.active {
  opacity: 1;
  visibility: visible;
}

.tour-modal-card {
  position: relative;

  width: min(92vw, 980px);
  height: 620px;

  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}

.tour-modal-card.flipped {
  transform: rotateY(180deg);
}

.tour-modal-side {
  position: absolute;
  inset: 0;

  border-radius: 32px;
  overflow: hidden;

  backface-visibility: hidden;

  background: #1B6655;
}

.tour-modal-front {
  transform: rotateY(0deg);
  border: 1px solid rgba(255, 255, 255, .2);
}

.tour-modal-back {
  transform: rotateY(180deg);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;
}

.tour-modal-image {
  position: absolute;
  inset: 0;
}

.tour-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-modal-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(to top,
      rgba(0, 0, 0, .72) 10%,
      rgba(0, 0, 0, .15) 60%);
}

.tour-modal-content {
  position: absolute;

  left: 32px;
  right: 32px;
  bottom: 32px;

  z-index: 2;

  color: #fff;
}

.tour-modal-content h2 {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 18px;

  font-family: "Noto Serif", serif;
}

.tour-modal-content p {
  font-size: 15px;
  line-height: 1.6;

  opacity: .92;

  margin-bottom: 24px;
}

.tour-modal-close {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  border-radius: 50%;
  border: none;

  background: rgba(255, 255, 255, .15);

  color: #fff;

  font-size: 18px;

  cursor: pointer;

  z-index: 5;
}

.tour-form-wrap {
  width: 100%;
  max-width: 520px;
}

.tour-form-wrap h3 {
  color: #fff;

  font-size: 34px;
  margin-bottom: 32px;

  font-family: "Noto Serif", serif;
}

.tour-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tour-form input,
.tour-form textarea {
  width: 100%;

  border: 1px solid rgba(255, 255, 255, .18);

  background: rgba(255, 255, 255, .08);

  border-radius: 18px;

  padding: 18px 20px;

  color: #fff;

  font-size: 15px;
}

.tour-form textarea {
  min-height: 120px;
  resize: none;
}

.tour-form button {
  height: 58px;

  border: none;
  border-radius: 999px;

  background: #C29A72;
  color: #fff;

  font-weight: 700;
  text-transform: uppercase;

  cursor: pointer;
}

.tour-book-btn {
  position: relative;

  padding: 20px 42px;

  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;

  background:
    linear-gradient(135deg,
      #D4B08A 0%,
      #C29A72 35%,
      #B7845A 100%);

  color: #fff;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, .22),
    inset 0 1px 1px rgba(255, 255, 255, .18);

  cursor: pointer;

  overflow: hidden;

  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.tour-book-btn::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(120deg,
      transparent 20%,
      rgba(255, 255, 255, .28) 50%,
      transparent 80%);

  transform: translateX(-120%);
  transition: transform .8s ease;
}

.tour-book-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, .28),
    inset 0 1px 1px rgba(255, 255, 255, .22);
}

.tour-book-btn:hover::before {
  transform: translateX(120%);
}

.tour-book-btn:active {
  transform: translateY(0);
}

.tour-modal-image {
  position: relative;

  width: 52%;
  height: 100%;

  overflow: hidden;
}

.tour-modal-image .swiper {
  width: 100%;
  height: 100%;
}

.tour-modal-image .swiper-slide {
  width: 100%;
  height: 100%;
}

.tour-modal-image .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-modal-nav {
  position: absolute;
  top: 50%;

  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);

  color: #fff;

  cursor: pointer;

  z-index: 20;

  transform: translateY(-50%);

  transition: .3s;
}

.tour-modal-nav:hover {
  background: rgba(255, 255, 255, .2);
}

.tour-modal-nav.prev {
  left: 18px;
}

.tour-modal-nav.next {
  right: 18px;
}

.tour-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}

.tour-more-btn,
.tour-book-btn {
  border-radius: 0;
  padding: 20px 42px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}

.tour-more-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .42);
}

.tour-book-btn {
  background: linear-gradient(135deg, #D4B08A 0%, #C29A72 45%, #B7845A 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
}

@media (max-width: 640px) {
  body.inner-page header .cta-btn {
    display: none;
  }
}

/* =========================================================
   MOBILE MODAL — safe override
   Desktop keeps 3D flip. On mobile we switch front/back by display,
   because 3D + auto height often breaks layout.
   ========================================================= */
@media (max-width: 768px) {
  .tour-modal {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 14px !important;
    overflow-y: auto !important;
  }

  .tour-modal-card,
  .tour-modal-card.flipped {
    width: 100% !important;
    max-width: 520px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 22px auto !important;
    transform: none !important;
    transform-style: flat !important;
  }

  .tour-modal-side,
  .tour-modal-front,
  .tour-modal-back {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
  }

  .tour-modal-front {
    display: block !important;
  }

  .tour-modal-back {
    display: none !important;
    padding: 30px 18px !important;
  }

  .tour-modal-card.flipped .tour-modal-front {
    display: none !important;
  }

  .tour-modal-card.flipped .tour-modal-back {
    display: flex !important;
  }

  .tour-modal-image {
    position: relative !important;
    width: 100% !important;
    height: 280px !important;
    min-height: 280px !important;
  }

  .tour-modal-image .swiper,
  .tour-modal-image .swiper-wrapper,
  .tour-modal-image .swiper-slide {
    width: 100% !important;
    height: 100% !important;
  }

  .tour-modal-image img,
  .tour-modal-image .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .tour-modal-overlay {
    pointer-events: none !important;
  }

  .tour-modal-content {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    padding: 24px 18px 28px !important;
    background: #1B6655 !important;
  }

  .tour-modal-content h2 {
    font-size: 28px !important;
    line-height: 1.08 !important;
    margin-bottom: 14px !important;
  }

  .tour-modal-content p {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-bottom: 20px !important;
  }

  .tour-modal-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-top: 22px !important;
  }

  .tour-more-btn,
  .tour-book-btn {
    width: 100% !important;
    padding: 18px 20px !important;
    text-align: center !important;
  }

  .tour-modal-close {
    top: 12px !important;
    right: 12px !important;
    z-index: 50 !important;
  }

  .tour-modal-nav {
    width: 42px !important;
    height: 42px !important;
  }

  .tour-modal-nav.prev {
    left: 10px !important;
  }

  .tour-modal-nav.next {
    right: 10px !important;
  }

  .tour-form-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tour-form-wrap h3 {
    font-size: 30px !important;
    margin-bottom: 24px !important;
  }

  .tour-form input,
  .tour-form textarea {
    border-radius: 0 !important;
    padding: 16px 18px !important;
    font-size: 14px !important;
  }

  .tour-form textarea {
    min-height: 120px !important;
  }

  .tour-form button {
    border-radius: 0 !important;
  }
}

.footer-phone a,
.footer-email a,
footer a {
  color: #F5F5F5;
  text-decoration: none;
}

footer a:hover {
  opacity: .8;
}


/* HERO REBUILD */

.hermitage-detail-hero {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;

  width: 100%;
  margin-bottom: 100px;

  background: transparent !important;
}

.tour-hero-image {
  position: relative;

  width: 100%;
  height: 720px;

  overflow: hidden;
}

.tour-hero-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;
}

.tour-hero-info {

  width: 100%;

  padding: 60px;

  background: rgba(8, 48, 43, 0.92);

  border: 1px solid rgba(255, 255, 255, .12);

  backdrop-filter: blur(12px);
}

.tour-detail-title {
  max-width: 1000px;
}

.tour-detail-lead {
  max-width: 900px;
}

@media (max-width: 768px) {

  .tour-hero-image {
    height: 320px;
  }

  .tour-hero-info {
    padding: 28px 20px;
  }

}

.tour-route-card {
  display: flex;
  flex-direction: column;
}

.tour-route-order {
  margin-left: auto;
  margin-top: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}