/* ==============================
   EAO Representation — styles
   ============================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:       #2d6a2d;
  --green-dark:  #1f4d1f;
  --green-light: #e8f2e8;
  --accent:      #c8a84b;   /* gold accent — герб */
  --text:        #1e1e1e;
  --text-muted:  #666;
  --border:      #d9e8d9;
  --white:       #ffffff;
  --bg:          #f7faf7;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 160px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- STICKY WRAPPER ---- */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--green);
  color: var(--white);
  padding: 18px 0;
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-logo {
  height: 72px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-region {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .85;
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

/* ---- NAV ---- */
.site-nav {
  background: var(--green-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
}

.nav-list li a {
  display: block;
  color: rgba(255,255,255,.88);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

.nav-list li a:hover {
  background: var(--green);
  color: var(--white);
  text-decoration: none;
}

.nav-external a {
  color: var(--accent) !important;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #3a7d3a 100%);
  color: var(--white);
  padding: 28px 0;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.65;
  opacity: .93;
  max-width: 780px;
}

/* ---- MAIN ---- */
.main-content {
  padding: 48px 24px 64px;
}

/* ---- SECTION ---- */
.section {
  margin-bottom: 56px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 24px;
}

.section-body p {
  margin-bottom: 14px;
  color: var(--text);
}

.info-box {
  background: var(--green-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 18px;
}

.info-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ---- HEAD CARD ---- */
.head-card {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.head-photo {
  width: 190px;
  height: 240px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
  flex-shrink: 0;
  border: 3px solid var(--green-light);
}

.head-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.head-position {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  font-style: italic;
}

.head-bio p {
  margin-bottom: 12px;
  font-size: 15px;
}

/* ---- FUNCTIONS LIST ---- */
.functions-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.functions-list li {
  padding: 14px 16px 14px 20px;
  border-left: 3px solid var(--green);
  background: var(--white);
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  margin-bottom: 8px;
  position: relative;
}

.functions-list li::before {
  content: '›';
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  position: absolute;
  left: 5px;
  top: 11px;
}

/* ---- CONTACTS ---- */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.contact-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.contact-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.contact-value a {
  color: var(--green);
  font-weight: 600;
}

/* ---- NEWS ---- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  border-left: 4px solid var(--green);
}

.news-meta {
  margin-bottom: 8px;
}

.news-date {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.news-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.35;
  margin-bottom: 14px;
}

.news-body p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 10px;
  color: var(--text);
}

.news-body p:last-child { margin-bottom: 0; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  padding: 28px 0;
  border-top: 3px solid var(--accent);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  transition: color .15s;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-copy {
  font-size: 13px;
  opacity: .6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .header-logo { height: 52px; }
  .header-title { font-size: 15px; }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .hero-emblem { height: 90px; }
  .hero-content h1 { font-size: 20px; }

  .head-card {
    flex-direction: column;
    align-items: center;
  }
  .head-photo { width: 160px; height: 200px; }

  .nav-list li a { padding: 12px 14px; font-size: 13px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .contacts-grid { grid-template-columns: 1fr; }
}
