:root {
  --bg: #e7dfc8;
  --panel: #efe6cf;
  --panel-2: #ead9a1;
  --gold: #d5b13a;
  --gold-hover: #c59d24;
  --brown: #9a6b46;
  --brown-dark: #5b3a21;
  --text: #1f140d;
  --shadow: rgba(80, 50, 20, 0.18);
  --line: rgba(91, 58, 33, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at top left, rgba(213, 177, 58, 0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(154, 107, 70, 0.10), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.site-header {
  background: var(--panel);
  border-bottom: 2px solid var(--brown);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  flex-wrap: wrap;
}

.header-left {
  flex: 0 0 auto;
}

.site-header h1 {
  font-size: 2rem;
  color: var(--text);
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1 1 700px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  padding: 12px 18px;
  border: 2px solid var(--brown);
  border-radius: 12px;
  transition: 0.2s ease;
  box-shadow: 0 2px 6px var(--shadow);
  white-space: nowrap;
  flex-shrink: 0;
}

.home-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

/* DROPDOWN */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: var(--panel);
  border: 2px solid var(--brown);
  border-radius: 12px;
  box-shadow: 0 8px 18px var(--shadow);
  padding: 10px;
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  width: 100%;
  margin-bottom: 8px;
}

.dropdown-content a:last-child {
  margin-bottom: 0;
}

/* PAGE FORUM */
.forum-page {
  width: min(1320px, 92%);
  margin: 30px auto 48px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  flex: 1;
}

/* HERO */
.forum-hero {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 28px;
  border: 2px solid var(--brown);
  box-shadow: 0 14px 34px var(--shadow);
  background:
    linear-gradient(135deg, rgba(91, 58, 33, 0.96) 0%, rgba(154, 107, 70, 0.92) 50%, rgba(31, 20, 13, 0.96) 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.forum-hero::before,
.forum-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.forum-hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -90px;
  background: radial-gradient(circle, rgba(213, 177, 58, 0.28) 0%, rgba(213, 177, 58, 0.05) 45%, transparent 70%);
}

.forum-hero::after {
  width: 300px;
  height: 300px;
  bottom: -140px;
  left: -60px;
  background: radial-gradient(circle, rgba(239, 230, 207, 0.22) 0%, rgba(239, 230, 207, 0.06) 45%, transparent 72%);
}

.forum-hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  color: #fff7ea;
}

.forum-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(239, 230, 207, 0.15);
  border: 1px solid rgba(255, 247, 234, 0.28);
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.3px;
}

.forum-hero h2 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  margin-bottom: 12px;
  line-height: 1.05;
}

.forum-hero p {
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 780px;
  color: rgba(255, 247, 234, 0.92);
}

.forum-tools {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.forum-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff7ea;
  background: rgba(239, 230, 207, 0.12);
  border: 1px solid rgba(255, 247, 234, 0.22);
  transition: 0.2s ease;
  font-weight: bold;
}

.forum-tool:hover {
  transform: translateY(-2px);
  background: rgba(239, 230, 207, 0.18);
}

/* PANELS */
.forum-panel {
  background: var(--panel);
  border: 2px solid var(--brown);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 22px var(--shadow);
}

.forum-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: end;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(234, 217, 161, 0.55) 0%, rgba(239, 230, 207, 0.95) 100%);
}

.forum-panel-header h3 {
  font-size: 2rem;
  color: var(--brown-dark);
  margin-bottom: 6px;
}

.forum-panel-header p {
  color: rgba(31, 20, 13, 0.82);
  line-height: 1.5;
}

.forum-panel-head-last {
  text-align: right;
  font-size: 1rem;
  color: rgba(31, 20, 13, 0.72);
  font-weight: bold;
}

.forum-list {
  display: flex;
  flex-direction: column;
}

.forum-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  text-decoration: none;
  color: var(--text);
  border-top: 1px solid var(--line);
  transition: 0.2s ease;
}

.forum-list .forum-row:first-child {
  border-top: 0;
}

.forum-row:hover {
  background: rgba(234, 217, 161, 0.35);
}

.forum-row-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.forum-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-hover) 100%);
  border: 2px solid var(--brown);
  color: var(--brown-dark);
  font-size: 1.45rem;
  box-shadow: 0 4px 12px rgba(80, 50, 20, 0.14);
}

.forum-row-text {
  min-width: 0;
}

.forum-row-text h4 {
  font-size: 1.35rem;
  color: var(--brown-dark);
  margin-bottom: 6px;
}

.forum-row-text p {
  line-height: 1.55;
  color: rgba(31, 20, 13, 0.84);
  margin-bottom: 8px;
}

.forum-meta {
  display: inline-block;
  font-size: 0.95rem;
  color: rgba(91, 58, 33, 0.78);
  font-weight: bold;
}

.forum-row-last {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forum-row-last strong {
  color: var(--brown-dark);
  font-size: 1rem;
}

.forum-row-last span {
  color: rgba(31, 20, 13, 0.70);
  font-size: 0.95rem;
}

/* FOOTER */
.site-footer {
  background: var(--panel);
  border-top: 2px solid var(--brown);
  text-align: center;
  padding: 18px;
  font-size: 1rem;
  color: var(--brown-dark);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .forum-panel-header,
  .forum-row {
    grid-template-columns: 1fr;
  }

  .forum-panel-head-last,
  .forum-row-last {
    text-align: left;
  }

  .forum-row-last {
    padding-left: 70px;
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
  }

  .forum-hero {
    padding: 28px;
    min-height: 240px;
  }
}

@media (max-width: 700px) {
  .site-header h1 {
    font-size: 1.7rem;
  }

  .header-right {
    gap: 10px;
  }

  .home-btn {
    padding: 10px 14px;
  }

  .forum-page {
    width: min(94%, 1320px);
    margin: 20px auto 36px;
    gap: 18px;
  }

  .forum-hero h2 {
    font-size: 2.2rem;
  }

  .forum-hero p {
    font-size: 1rem;
  }

  .forum-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .forum-tool {
    justify-content: center;
    text-align: center;
  }

  .forum-panel-header {
    padding: 18px;
  }

  .forum-panel-header h3 {
    font-size: 1.6rem;
  }

  .forum-row {
    padding: 18px;
  }

  .forum-row-main {
    gap: 12px;
  }

  .forum-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
    font-size: 1.2rem;
  }

  .forum-row-last {
    padding-left: 58px;
  }

  .forum-row-text h4 {
    font-size: 1.15rem;
  }
}