:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  --primary: #9b2d30; /* brick red */
  --primary-dark: #6f1f23; /* deep clay */
  --accent: #d9b16f; /* warm sand */
  --text: #1d1c1a;
  --muted: #5f6268;
  --background: #f5f3ef;
  --card: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

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

.hero {
  background: linear-gradient(120deg, rgba(155, 45, 48, 0.9), rgba(111, 31, 35, 0.9)),
    url("pokladac1.png") center/cover;
  color: #fff;
  padding: 32px 6vw 96px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-weight: 500;
}

.hero-content {
  max-width: 720px;
  margin-top: 80px;
}

.hero-location {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.85;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 18px 0;
  line-height: 1.2;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  background: var(--accent);
  color: #1c1c1c;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.button.ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.section {
  padding: 72px 6vw;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-bottom: 12px;
}

.highlight {
  background: #efebe3;
}

.gallery-controls {
  display: grid;
  gap: 16px;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-tab {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
}

.gallery-tab:hover {
  background: #eef4fb;
  border-color: rgba(20, 92, 158, 0.2);
  color: var(--primary-dark);
}

.gallery-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 16px rgba(20, 92, 158, 0.2);
}

.gallery-view {
  display: grid;
  gap: 12px;
}

.gallery-main {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #dbe7f3, #c4d4e8);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.gallery-thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--card);
  padding: 2px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
  flex: 0 0 110px;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 92, 158, 0.35);
}

.gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(20, 92, 158, 0.18);
}

.gallery-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #dbe7f3;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.list {
  margin-top: 18px;
  padding-left: 20px;
  color: var(--muted);
}

.list li {
  margin-bottom: 8px;
}

.facts {
  display: grid;
  gap: 16px;
}

.fact-card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 6px;
}

.fact-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.fact-label {
  color: var(--muted);
}

.contact {
  background: #fff;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background: var(--background);
  padding: 24px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.contact-detail {
  font-weight: 600;
  color: var(--primary-dark);
}

.contact-form {
  margin-top: 24px;
  background: var(--card);
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 16px;
}

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

.form-row label {
  font-weight: 600;
}

.form-row input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font-size: 1rem;
}

.form-row input:focus,
.richtext:focus {
  outline: 2px solid rgba(20, 92, 158, 0.4);
  border-color: rgba(20, 92, 158, 0.4);
}

.richtext {
  min-height: 140px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  line-height: 1.5;
}

.richtext.placeholder {
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 6vw;
  background: var(--primary-dark);
  color: #fff;
  flex-wrap: wrap;
}

.footer-subtle {
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}
