:root {
  --sk-green: #17613f;
  --sk-green-dark: #0e3426;
  --sk-gold: #e4c16d;
  --sk-blue: #0c2d64;
  --sk-text: #102018;
  --sk-muted: #5d6b63;
  --sk-bg: #f5f8f4;
  --sk-card: #ffffff;
  --sk-border: #dce8df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sk-bg);
  color: var(--sk-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

img {
  max-width: 100%;
  height: auto;
}

.site-shell {
  width: min(1180px, calc(100% - 24px));
  margin-inline: auto;
}

.top-community {
  background: var(--sk-green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  padding: 7px 0;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

.top-meta {
  background: #eef7f1;
  border-bottom: 1px solid var(--sk-border);
  color: #53645b;
  font-size: 12px;
  font-weight: 700;
}

.top-meta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
}

.top-meta-left,
.top-meta-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.top-meta-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #d7e4db;
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(15, 35, 24, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 35, 24, 0.08);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.site-brand img,
.custom-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(175, 132, 35, 0.22);
}

.site-brand small {
  display: block;
  color: var(--sk-muted);
  font-size: 12px;
  font-weight: 700;
}

.primary-menu {
  justify-self: end;
}

.primary-menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: #526259;
  font-size: 14px;
  font-weight: 800;
}

.primary-menu a:hover {
  background: #f5edd6;
  color: #132017;
}

.mobile-menu-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sk-border);
  border-radius: 12px;
  background: #fff;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #1f2f27;
}

.home-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.home-hero picture,
.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero img {
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 34, 24, 0.82), rgba(6, 31, 48, 0.46), rgba(11, 55, 31, 0.34));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 80px;
  color: #fff;
}

.hero-badge {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  max-width: 760px;
  margin: 20px 0 0;
  color: #fff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.58);
}

.hero-content p {
  max-width: 700px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 19px;
  font-weight: 700;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.48);
}

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

.button,
button,
input[type="submit"] {
  cursor: pointer;
}

.button,
.sk-button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 900;
}

.button-primary,
.sk-button,
input[type="submit"] {
  background: var(--sk-green);
  color: #fff;
  box-shadow: 0 14px 34px rgba(23, 97, 63, 0.24);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.9);
  color: var(--sk-green-dark);
}

.widget-band,
.content-section {
  margin-top: 48px;
}

.section-card-grid,
.news-grid,
.sk-job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.section-card-grid {
  margin-top: -42px;
  position: relative;
  z-index: 3;
}

.section-card-grid article,
.news-card,
.post-card,
.sk-card,
.page-content article,
.widget {
  border: 1px solid var(--sk-border);
  border-radius: 20px;
  background: var(--sk-card);
  box-shadow: 0 20px 56px rgba(15, 35, 24, 0.11);
}

.section-card-grid article,
.news-card,
.post-card,
.sk-card,
.page-content article {
  padding: 22px;
}

.section-heading span {
  color: #a57b18;
  font-size: 13px;
  font-weight: 900;
}

.section-heading h2,
.archive-header h1,
.page-content h1 {
  margin: 6px 0 20px;
  color: #132018;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.sk-search-form,
.sk-form {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, #174f36, #276343 48%, #0f2c22);
  padding: 18px;
  color: #fff;
  box-shadow: 0 24px 68px rgba(14, 64, 43, 0.26);
}

.sk-search-form {
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.8fr) auto;
}

.sk-form label,
.sk-search-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.sk-form input,
.sk-form select,
.sk-form textarea,
.sk-search-form input,
.sk-search-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  background: #fff;
  color: #17241d;
  padding: 9px 12px;
  font: inherit;
}

.sk-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  color: var(--sk-muted);
  font-size: 13px;
  font-weight: 700;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-block: 46px;
}

.post-list {
  display: grid;
  gap: 18px;
}

.page-content {
  padding-block: 48px;
}

.entry-content {
  max-width: 860px;
}

.sidebar .widget {
  padding: 20px;
  margin-bottom: 18px;
}

.site-footer {
  margin-top: 70px;
  background: linear-gradient(180deg, #184633, #113424);
  color: rgba(240, 255, 246, 0.86);
  padding: 46px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: 36px;
}

.footer-brand h2,
.footer-widget h3,
.widget-title {
  color: #fff;
}

.footer-contact {
  display: grid;
  gap: 6px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-widget li {
  margin-top: 8px;
}

.footer-bottom {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
}

.scroll-up {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(228, 193, 109, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #16231b;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(15, 35, 24, 0.2);
}

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .primary-menu {
    position: absolute;
    top: 100%;
    right: 12px;
    width: min(50vw, 220px);
    min-width: 184px;
    display: none;
    border: 1px solid var(--sk-border);
    border-radius: 18px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 18px 45px rgba(15, 35, 24, 0.18);
    transform-origin: right center;
    animation: sk-menu-slide 180ms ease-out;
  }

  .primary-menu.is-open {
    display: block;
  }

  .primary-menu ul {
    display: grid;
    gap: 5px;
  }

  .primary-menu a {
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .section-card-grid,
  .news-grid,
  .sk-job-grid,
  .footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sk-search-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hide-mobile,
  .site-brand small {
    display: none;
  }

  .top-meta-inner {
    justify-content: center;
  }

  .top-meta-social {
    display: none;
  }

  .home-hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-block: 58px;
  }

  .section-card-grid,
  .news-grid,
  .sk-job-grid {
    grid-template-columns: 1fr;
  }

  .footer-widgets {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@keyframes sk-menu-slide {
  from {
    opacity: 0;
    transform: translateX(24px) scaleX(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
}
