:root {
  --gold: #b8943f;
  --gold-h: #9a7930;
  --dark: #1d1d1d;
  --dark2: #2a2a2a;
  --white: #ffffff;
  --bg: #f5f5f5;
  --text: #444444;
  --muted: #777777;
  --border: #dddddd;
  --topbar-h: 38px;
  --header-h: 80px;
  --maxw: 1160px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(184, 148, 63, 0.4);
  outline-offset: 3px;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

#topbar {
  background: var(--dark);
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #bbbbbb;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.topbar-contacts {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-contacts li a {
  color: #bbbbbb;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.topbar-contacts li a:hover {
  color: var(--gold);
}

.topbar-social {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-social a {
  color: #bbbbbb;
  font-size: 14px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.topbar-social a:hover {
  color: var(--gold);
}

#header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.site-logo {
  flex-shrink: 0;
  display: block;
}

.site-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

#site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-left: 0;
}

#site-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  padding: 0 15px;
  height: var(--header-h);
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

#site-nav a:hover,
#site-nav a.current {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  border-radius: 3px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-header:hover {
  background: var(--gold-h);
  color: var(--white);
}

#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}

#nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

#nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

#nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#hero {
  background: linear-gradient(135deg, #b8943f 0%, #9a7930 100%);
  padding: 54px 20px 50px;
  text-align: center;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

#hero h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}

#hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  max-width: 720px;
  margin: 0 auto;
}

#content {
  padding: 48px 0 64px;
  background: var(--bg);
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 40px;
  align-items: start;
}

#posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

.post-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.post-img {
  display: block;
  overflow: hidden;
  height: 200px;
  min-height: 200px;
  background: #e8e0d4;
  flex-shrink: 0;
}

.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-img img {
  transform: scale(1.04);
}

.post-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

.post-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.post-title a {
  color: var(--dark);
  transition: color 0.2s;
}

.post-title a:hover {
  color: var(--gold);
}

.post-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 14px;
}

.post-readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: inline-block;
  margin-top: auto;
  transition: color 0.2s;
}

.post-readmore::after {
  content: " →";
}

.post-readmore:hover {
  color: var(--gold-h);
}

#sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.sidebar-box,
.sidebar-cta {
  background: var(--white);
  border: 1px solid var(--border);
}

.sidebar-box h2,
.sidebar-cta h2 {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.cat-list li {
  border-bottom: 1px solid var(--border);
}

.cat-list li:last-child {
  border-bottom: none;
}

.cat-list li a {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  border-left: 3px solid transparent;
}

.cat-list li a:hover,
.cat-list li a.cat-active {
  background: #faf6ef;
  color: var(--gold);
  padding-left: 20px;
  border-left-color: var(--gold);
}

.sidebar-cta {
  padding-bottom: 16px;
}

.sidebar-cta p {
  padding: 14px 16px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.btn-sidebar {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 16px;
  margin: 16px 16px 0;
  transition: background 0.2s;
}

.btn-sidebar:hover {
  background: var(--gold-h);
  color: var(--white);
}

.blog-cta {
  background: #ffffff;
  padding: 54px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.blog-cta h2 {
  color: var(--dark);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.25;
  margin-bottom: 12px;
}

.blog-cta p {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 22px;
  font-size: 15px;
}

.blog-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s;
}

.blog-cta a:hover {
  background: var(--gold-h);
  transform: translateY(-1px);
}

#footer {
  background: var(--dark);
  color: #999999;
  padding: 56px 0 0;
}

.footer-wrap {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.footer-col h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #888888;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-info li {
  font-size: 13.5px;
  color: #888888;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-info li a {
  color: #888888;
  transition: color 0.2s;
}

.footer-info li a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 18px 20px;
  font-size: 13px;
  color: #555555;
  text-align: center;
}

#wpp-wrap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#wpp-popup {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  width: 280px;
  overflow: hidden;
}

#wpp-popup.wpp-hidden {
  display: none;
}

.wpp-popup-head {
  background: #128c7e;
  color: #ffffff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
}

#wpp-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.wpp-popup-body {
  padding: 14px 16px;
  background: #f0f0f0;
  font-size: 13px;
  line-height: 1.6;
}

.wpp-popup-btn {
  display: block;
  background: #25d366;
  color: #ffffff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px;
}

#wpp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}

#wpp-btn i {
  font-size: 22px;
}

#wpp-btn:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1080px) {
  #site-nav a {
    padding: 0 10px;
  }

  .btn-header {
    padding: 10px 14px;
  }
}

@media (max-width: 960px) {
  .content-wrap {
    grid-template-columns: 1fr 240px;
    gap: 28px;
  }

  .footer-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  #site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    border-top: 3px solid var(--gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    z-index: 998;
    gap: 0;
  }

  #site-nav.open {
    display: flex;
  }

  #site-nav a {
    height: auto;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
  }

  #site-nav a:hover,
  #site-nav a.current {
    border-bottom-color: var(--border);
    border-left-color: var(--gold);
    background: #faf6ef;
  }

  .btn-header {
    display: none;
  }

  #nav-toggle {
    display: flex;
  }

  .content-wrap {
    grid-template-columns: 1fr;
  }

  #sidebar {
    order: -1;
    position: static;
  }

  #posts {
    grid-template-columns: 1fr;
  }

  .topbar-contacts li:last-child {
    display: none;
  }
}

@media (max-width: 560px) {
  #topbar {
    display: none;
  }

  #header {
    height: 72px;
  }

  :root {
    --header-h: 72px;
  }

  .site-logo img {
    height: 46px;
  }

  #hero {
    padding: 38px 16px 34px;
  }

  #content {
    padding: 32px 0 48px;
  }

  .post-img {
    height: 188px;
    min-height: 188px;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #wpp-popup {
    width: calc(100vw - 40px);
    max-width: 320px;
  }

  #wpp-btn span {
    display: none;
  }

  #wpp-btn {
    border-radius: 50%;
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }
}