:root {
  --bg: #f4efe8;
  --bg-2: #efe4d8;
  --panel: rgba(255, 255, 255, 0.72);
  --line: rgba(122, 90, 57, 0.14);
  --text: #2d241f;
  --muted: #67584d;
  --accent: #7d5a43;
  --accent-dark: #5a3f2e;
  --shadow: 0 20px 60px rgba(74, 48, 24, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(214, 188, 159, 0.46), transparent 34%),
    radial-gradient(circle at bottom right, rgba(167, 190, 204, 0.22), transparent 24%),
    linear-gradient(180deg, var(--bg), #f7f4ef 45%, var(--bg-2));
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
code {
  background: rgba(125, 90, 67, 0.08);
  border-radius: 8px;
  padding: 0.15rem 0.4rem;
}

.glass-panel {
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(1180px, calc(100% - 28px));
  margin: 16px auto 0;
  border-radius: 22px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

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

.lang-switch {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: rgba(255,255,255,0.65);
  border-radius: 999px;
  border: 1px solid rgba(125,90,67,0.12);
}

.lang-btn, .flag-tile {
  border: 0;
  background: transparent;
  color: var(--text);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  transition: 180ms ease;
}

.lang-btn img { width: 20px; height: 14px; border-radius: 3px; }
.lang-btn span { font-size: 0.88rem; font-weight: 700; }
.lang-btn.active,
.lang-btn:hover,
.flag-tile.active,
.flag-tile:hover {
  background: rgba(125, 90, 67, 0.12);
}

.page-wrap {
  width: min(1180px, calc(100% - 28px));
  margin: 26px auto 40px;
}

.hero, .page-hero {
  border-radius: var(--radius-xl);
  padding: 42px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

h1, h2, h3, p { margin-top: 0; }
.hero h1,
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 14px;
}

.hero-copy {
  max-width: 800px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.flag-selection {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.flag-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: var(--radius-lg);
  padding: 26px 18px;
  min-height: 180px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(125, 90, 67, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform 180ms ease, background 180ms ease;
}
.flag-tile:hover { transform: translateY(-2px); }
.flag-tile img { width: 96px; height: auto; border-radius: 10px; }
.flag-tile span { font-size: 1.05rem; font-weight: 700; }

.cards-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(74, 48, 24, 0.16);
}
.feature-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}
.feature-body {
  padding: 20px 20px 24px;
}
.feature-body h2 {
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.feature-body p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.content-card {
  border-radius: var(--radius-lg);
  padding: 28px;
}
.content-card h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.72;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.styled-list {
  padding-left: 18px;
  margin-bottom: 0;
}
.styled-list li + li { margin-top: 10px; }

.timeline {
  display: grid;
  gap: 16px;
}
.timeline-item {
  padding-left: 18px;
  border-left: 2px solid rgba(125, 90, 67, 0.25);
}
.timeline-item strong {
  display: block;
  margin-bottom: 6px;
}

.placeholder-frame {
  border: 2px dashed rgba(125, 90, 67, 0.22);
  border-radius: 20px;
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,0.46), rgba(255,255,255,0.16));
}
.placeholder-frame span {
  display: block;
  font-size: .92rem;
  margin-top: 10px;
}

.address-block {
  font-weight: 600;
  color: var(--text) !important;
}

.map-card iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 18px;
  background: #e7ddd0;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}
.primary-btn {
  background: linear-gradient(180deg, #8b664c, var(--accent-dark));
  color: #fff;
  border: 0;
  box-shadow: 0 14px 30px rgba(90, 63, 46, 0.18);
}
.inline-btn { margin-top: 10px; }
.ghost-btn {
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(125,90,67,0.12);
}

.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}
.login-shell { width: min(560px, 100%); }
.login-card {
  border-radius: 32px;
  padding: 36px;
}
.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(125,90,67,0.12);
  font-weight: 700;
  margin-bottom: 18px;
}
.login-card h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}
.login-intro, .tiny-note {
  color: var(--muted);
  line-height: 1.7;
}
.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.login-form label { display: grid; gap: 8px; }
.login-form span { font-weight: 600; }
.login-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(125,90,67,0.16);
  background: rgba(255,255,255,0.86);
  font: inherit;
}
.error-box {
  margin-top: 16px;
  background: rgba(165, 38, 38, 0.08);
  color: #7c1d1d;
  border: 1px solid rgba(165, 38, 38, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
}

.gallery-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.gallery-slot {
  border-radius: 22px;
  padding: 18px;
}
.gallery-slot .placeholder-frame { min-height: 220px; }

@media (max-width: 980px) {
  .cards-grid,
  .info-grid,
  .gallery-grid,
  .flag-selection {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    width: calc(100% - 28px);
  }

  .hero, .page-hero, .content-card, .login-card { padding: 24px; }
}
