:root {
  --blue: #008fe8;
  --blue-dark: #075985;
  --orange: #f59e0b;
  --text: #1f2937;
  --muted: #667085;
  --bg: #f4f8fb;
  --white: #ffffff;
  --dark: #0f2537;
  --border: #e5e7eb;
  --shadow: 0 10px 25px rgba(15, 37, 55, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.image-link {
  display: block;
  color: inherit;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8%;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.navbar.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-menu a {
  font-weight: bold;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 28px;
}

.hero,
.page-hero {
  background:
    linear-gradient(rgba(7, 37, 55, 0.78), rgba(0, 143, 232, 0.4)),
    var(--hero-image) center / cover;
  color: var(--white);
}

.hero {
  position: relative;
  display: flex;
  min-height: 760px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 48px;
  overflow: hidden;
  padding: 130px 8% 80px;
  text-align: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(rgba(7, 37, 55, 0.78), rgba(0, 143, 232, 0.36));
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}

.hero-carousel img {
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.hero-panel {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 26px;
  background: rgba(15, 37, 55, 0.48);
  backdrop-filter: blur(6px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-facts div {
  display: grid;
  gap: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 0;
  padding-top: 0;
  padding-left: 18px;
}

.hero-facts div:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero-facts strong {
  color: var(--orange);
  font-size: 28px;
  line-height: 1;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.9);
}

.page-hero {
  padding: 150px 8% 75px;
}

.page-hero h1,
.page-hero p {
  max-width: 850px;
}

.section {
  padding: 90px 8%;
}

.home-preview,
.about,
.landmarks {
  background: var(--white);
}

.culture,
.history {
  background: #eaf6ff;
}

.section-label {
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 20px;
  font-size: 56px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 16px;
  color: var(--dark);
  font-size: 38px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 22px;
}

p,
li {
  color: var(--muted);
}

.hero p,
.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-content p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.hero .section-label,
.page-hero .section-label {
  color: var(--orange);
}

.btn-primary {
  display: inline-block;
  margin-top: 10px;
  border-radius: 30px;
  padding: 12px 24px;
  background: var(--orange);
  color: var(--dark);
  font-weight: bold;
}

.feedback-section {
  background: var(--white);
}

.feedback-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label,
.form-row legend {
  color: var(--dark);
  font-weight: bold;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(0, 143, 232, 0.25);
  border-color: var(--blue);
}

.rating-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.rating-group legend {
  padding: 0 6px;
}

.rating-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: normal;
}

.form-message {
  min-height: 24px;
  color: var(--blue-dark);
  font-weight: bold;
}

.quiz-section {
  background: var(--white);
}

.quiz-form {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}

.quiz-question {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quiz-question legend {
  padding: 0 6px;
  color: var(--dark);
  font-size: 20px;
  font-weight: bold;
}

.quiz-question label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.quiz-result {
  min-height: 28px;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: bold;
}

.section-title {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}

.preview-grid,
.gallery-grid,
.card-grid,
.content-grid,
.stats {
  display: grid;
  gap: 22px;
}

.preview-grid,
.gallery-grid,
.card-grid,
.stats {
  grid-template-columns: repeat(3, 1fr);
}

.content-grid {
  grid-template-columns: repeat(2, 1fr);
}

.about,
.culture-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.culture-layout {
  align-items: stretch;
}

.culture-list {
  display: grid;
  gap: 18px;
}

.preview-card,
.text-box,
.gallery-item,
.info-card,
.culture-feature,
.mini-card,
.stats div,
.timeline-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.preview-card,
.text-box,
.mini-card,
.stats div,
.timeline-card {
  padding: 24px;
}

.preview-card a,
.footer a,
.detail-hint {
  color: var(--orange);
  font-weight: bold;
}

.map-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue-dark);
  font-weight: bold;
}

.map-link:hover {
  color: var(--blue);
}

.gallery-item,
.info-card,
.culture-feature {
  overflow: hidden;
}

.gallery-item img,
.info-card img {
  height: 220px;
  object-fit: cover;
}

.about-image img,
.culture-feature img {
  height: 360px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.gallery-item h3,
.gallery-item p,
.info-card div,
.culture-feature div {
  padding-left: 20px;
  padding-right: 20px;
}

.gallery-item h3,
.info-card div,
.culture-feature div {
  padding-top: 20px;
}

.gallery-item p,
.info-card div,
.culture-feature div {
  padding-bottom: 20px;
}

.text-box ul {
  margin-top: 12px;
  padding-left: 20px;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 48px;
}

.timeline-dot {
  position: absolute;
  top: 22px;
  left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
}

.detail-clickable {
  cursor: pointer;
  transition: 0.25s;
}

.detail-clickable:hover {
  transform: translateY(-5px);
}

.detail-hint {
  display: inline-block;
  margin-top: 12px;
}

.footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 48px 8% 24px;
  background: var(--dark);
  color: var(--white);
}

.footer h2,
.footer h3,
.footer p {
  color: var(--white);
}

.footer h2 {
  font-size: 22px;
}

.footer h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.footer p {
  margin-bottom: 8px;
}

.footer a {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-align: center;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 37, 55, 0.75);
}

.detail-modal.active {
  display: flex;
}

.detail-box {
  position: relative;
  width: min(850px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 14px;
  background: var(--white);
}

.detail-box img {
  height: 300px;
  object-fit: cover;
}

.detail-content {
  padding: 28px;
}

.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: 0.6s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .preview-grid,
  .gallery-grid,
  .card-grid,
  .content-grid,
  .stats,
  .about,
  .culture-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
  }

  .hero-panel {
    max-width: 620px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 16px;
    padding-left: 0;
  }

  .hero-facts div:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 700px) {
  .navbar {
    padding: 14px 6%;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 6%;
    right: 6%;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .nav-menu a {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
  }

  .hero,
  .section,
  .page-hero {
    padding-left: 6%;
    padding-right: 6%;
  }

  .hero {
    min-height: auto;
    padding-top: 115px;
    padding-bottom: 60px;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .about-image img,
  .culture-feature img,
  .detail-box img {
    height: 240px;
  }

  .footer {
    grid-template-columns: 1fr;
  }
}
