:root {
  --ink: #1b2333;
  --muted: #5b6270;
  --accent: #4f7a2e;
  --accent-soft: #dfead0;
  --bg: #f2f4e9;
  --border: #d3dcc0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

html {
  scroll-behavior: smooth;
}

.site-header,
.hero {
  background-image: linear-gradient(rgba(16, 20, 30, 0.55), rgba(16, 20, 30, 0.55)), url("hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header .brand,
.site-header .nav-btn {
  color: #fff;
}

.site-header .nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.site-header .nav-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
}

.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: none;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-btn:hover {
  color: var(--ink);
  background: var(--border);
}

.nav-btn.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

.page {
  padding: 48px 0;
  scroll-margin-top: 76px;
}

.page-light {
  background: #fff;
  color: var(--ink);
}

.page-dark {
  background: var(--accent-soft);
  color: var(--ink);
}

.page-dark h1 {
  color: var(--ink);
}

.page-dark .news-arrow {
  border-color: var(--accent);
  color: var(--accent);
}

.page-dark .news-arrow:hover {
  background: var(--accent);
  color: #fff;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 76px);
  padding: 64px 24px;
  border-bottom: none;
  color: #fff;
}

.badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.badge-logo {
  width: 144px;
  height: 144px;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero.page p {
  max-width: 560px;
  font-size: clamp(15px, 2vw, 18px);
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.page h1 {
  margin: 0 0 12px;
}

.news-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.news-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
  padding: 4px 4px 16px;
}

.news-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 2px;
  overflow: hidden;
}

.news-card-photo {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    135deg,
    var(--accent) 0px,
    var(--accent) 14px,
    #46672a 14px,
    #46672a 28px
  );
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 16px 16px 8px;
}

.news-card p {
  margin: 0 16px 16px;
  font-size: 14px;
  line-height: 1.55;
}

.news-arrow {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  border: 1px solid var(--accent);
  background: none;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.news-arrow:hover {
  background: var(--accent);
  color: #fff;
}

.page p {
  color: var(--muted);
  line-height: 1.6;
}

#team p a,
#contact a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#team p a:hover,
#contact a:hover {
  color: var(--ink);
}

.contact-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.contact-list a:first-child {
  display: block;
  font-size: 16px;
}

.contact-list .contact-email {
  font-weight: 400;
}

.team-photo {
  margin: 24px 0 32px;
}

.team-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.team-photo figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
