:root {
  --bg: #f7f2e9;
  --card: #fffdf9;
  --text: #3a2a18;
  --muted: #6a5742;
  --accent: #b58746;
  --accent-strong: #8f6630;
  --line: #e4d5bf;
  --shadow: 0 20px 45px rgba(90, 62, 28, 0.14);
  --radius: 18px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(70rem 30rem at 10% -20%, #f0dfc4 0%, transparent 60%),
    radial-gradient(50rem 24rem at 90% 0%, #f4e9d7 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
}

.site-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 44px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(215, 225, 236, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(95, 67, 35, 0.1);
  padding: 8px 10px;
  margin-bottom: 22px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-right: auto;
  font-size: 0.95rem;
  color: #5a3e1f;
}

.brand-link {
  text-decoration: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.brand-link:hover,
.brand-link:focus-visible {
  background: transparent;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: #f5ead8;
}

.nav a.active {
  background: var(--accent);
  color: #fff;
}

.hero,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  animation: rise 0.55s ease;
}

.hero {
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  color: #50371c;
}

h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  margin-bottom: 10px;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 72ch;
}

.inline-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.figure-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  height: 100%;
}

figure {
  margin: 0;
  background: #fffaf3;
  border: 1px solid #eadcc8;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background-color 0.26s ease;
}

.figure-link:hover figure,
.figure-link:focus-visible figure {
  transform: translateY(-4px) scale(1.01);
  border-color: #c69a5d;
  background: linear-gradient(180deg, #fffdf9 0%, #f6ebdb 100%);
  box-shadow: 0 18px 34px rgba(90, 62, 28, 0.2);
}

figure img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
}

.card {
  border: 1px solid #e6d8c4;
  border-radius: 14px;
  background: #fffaf4;
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background-color 0.26s ease;
}

.card-link:hover .card,
.card-link:focus-visible .card {
  transform: translateY(-4px) scale(1.01);
  border-color: #c69a5d;
  background: linear-gradient(180deg, #fffdf9 0%, #f6ebdb 100%);
  box-shadow: 0 18px 34px rgba(90, 62, 28, 0.2);
}

.card h3 {
  margin-bottom: 0;
  font-size: 1.06rem;
  color: var(--accent-strong);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.video-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #decdb5;
  background: #000;
}

.video-wrap video {
  width: 100%;
  display: block;
  max-height: 420px;
}

.footer {
  margin-top: 20px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .panel {
    padding: 20px;
  }

  .brand {
    width: 100%;
    margin-right: 0;
    margin-bottom: 4px;
  }
}
