﻿:root {
  --bg: #f3f8f4;
  --panel: #ffffff;
  --ink: #19251f;
  --muted: #4f6258;
  --brand: #19704b;
  --brand-2: #84c887;
  --line: #d4e1d9;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
.container { width: min(1160px, 92%); margin: 0 auto; }
.header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
}
.logo img { width: 38px; height: 38px; object-fit: contain; }
.nav { display: flex; gap: 16px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a:hover { color: var(--brand); }
.menu-toggle, .menu-btn { display: none; }

.hero {
  position: relative;
  color: #fff;
  padding: 96px 0 84px;
  background:
    linear-gradient(120deg, rgba(10, 39, 28, 0.84), rgba(28, 103, 70, 0.76)),
    var(--hero-bg) center/cover no-repeat;
}
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .86rem; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 780px; }
.hero-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn-light { background: #fff; color: var(--brand); }

.section { padding: 56px 0; }
.section-alt { background: #eaf4ee; }
.page-head {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #ebf4ee, #f7fbf8);
}
.page-head-cover {
  color: #fff;
  background:
    linear-gradient(120deg, rgba(9, 37, 27, 0.82), rgba(22, 87, 59, 0.70)),
    var(--cover) center/cover no-repeat;
}
.page-head-cover .date,
.page-head-cover .eyebrow { color: #def1e5; }

.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.card a { color: var(--brand); font-weight: 700; text-decoration: none; }
.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid #dbe6df;
  background: #f8fcf9;
}

.application-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-card h2 { font-size: 1.1rem; }

.list { padding-left: 20px; margin: 0; }
.list.compact li { margin-bottom: 6px; }

.news-list { display: grid; gap: 14px; }
.news-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.news-item.has-image {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: start;
}
.news-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d9e5dd;
}
.news-item h2, .news-item h3 { margin-bottom: 8px; }
.news-item a { text-decoration: none; color: var(--ink); }
.news-item a:hover { color: var(--brand); }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.detail-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.table th { width: 46%; background: #f8fcf9; }

.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tab-link {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  background: #fff;
}
.tab-link.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 26px;
}
.icon-grid img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}
.gallery {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.gallery.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.certs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.article {
  max-width: 900px;
}
.article-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.date { color: var(--muted); font-size: .92rem; margin-bottom: 6px; }
.muted { color: var(--muted); font-size: .9rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.form label { display: block; margin-bottom: 10px; font-weight: 600; }
.form input, .form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #c8d7ce;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}
.alert {
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.alert.success { background: #e4f5e8; color: #176d47; border: 1px solid #bfe3c9; }
.alert.error { background: #ffeae8; color: #8f2d25; border: 1px solid #f4c8c2; }
.contact-icons {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.contact-icons img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer { margin-top: 40px; background: #10271d; color: #d6e5dc; padding: 34px 0 16px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.copyright { text-align: center; margin: 20px 0 0; color: #9cb6a8; }

@media (max-width: 1280px) {
  .container { width: min(1040px, 94%); }
}

@media (max-width: 992px) {
  .cards,
  .application-cards,
  .two-col,
  .footer-grid,
  .gallery.certs,
  .icon-grid { grid-template-columns: 1fr 1fr; }
  .gallery.three { grid-template-columns: 1fr 1fr; }
  .news-item.has-image { grid-template-columns: 1fr; }
  .news-thumb { height: 180px; }
}

@media (max-width: 768px) {
  .menu-btn {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
    padding: 7px 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .logo span { display: none; }
  .nav {
    position: absolute;
    right: 4%;
    top: 68px;
    min-width: 230px;
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
  }
  .menu-toggle:checked ~ .nav { display: flex; }
  .hero { padding: 74px 0; }
  .section { padding: 42px 0; }
  .cards,
  .application-cards,
  .gallery.three,
  .gallery.certs,
  .icon-grid { grid-template-columns: 1fr; }
}
