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

:root {
  --green: #2d6a4f;
  --green-d: #1b4332;
  --green-l: #d8f3dc;
  --accent: #e63946;
  --text: #1d1d1d;
  --muted: #555;
  --border: #dde;
  --bg: #f9f9f9;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

/* ─── TOP BAR ─── */
.topbar {
  background: var(--green-d);
  color: #cde;
  font-size: 13px;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cde; }
.topbar .phone { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .5px; }

/* ─── HEADER ─── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.logo-img { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; }
.logo-name { font-size: 22px; font-weight: 700; line-height: 1.2; }
.logo-name a { color: var(--green-d); }
.logo-name a:hover { text-decoration: none; color: var(--green); }
.logo-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ─── SERVICE MENU ─── */
.service-menu {
  background: var(--green);
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0 16px;
}
.service-menu a {
  color: #fff;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  display: block;
  transition: background .15s;
}
.service-menu a:hover, .service-menu a.active {
  background: var(--green-d);
  text-decoration: none;
}

/* ─── LAYOUT ─── */
.layout {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

/* ─── SIDEBAR NAV ─── */
nav.sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
nav.sidebar .nav-item {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
  line-height: 1.4;
}
nav.sidebar .nav-item:hover { background: var(--green-l); color: var(--green-d); text-decoration: none; }
nav.sidebar .nav-item.active { background: var(--green); color: #fff; font-weight: 600; }
nav.sidebar .nav-item.parent { font-weight: 600; text-transform: uppercase; font-size: 12px; }
nav.sidebar .nav-item.child { padding-left: 28px; color: var(--muted); font-size: 13px; }
nav.sidebar .nav-item.child:hover { color: var(--green-d); }
nav.sidebar .nav-item:last-child { border-bottom: none; }

/* ─── MAIN CONTENT ─── */
main {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  min-width: 0;
}

main h1 {
  font-size: 22px;
  color: var(--green-d);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-l);
}

.entering-text {
  background: #fff8f8;
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--accent);
}

.content-block {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.content-block:last-of-type { border-bottom: none; margin-bottom: 0; }

.content-block h3 {
  font-size: 17px;
  color: var(--green-d);
  margin-bottom: 12px;
}

.content-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 18px 0 8px;
}

.content-block img {
  float: right;
  margin: 0 0 16px 20px;
  max-width: 200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-block p, .content-block li {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 14.5px;
}

.content-block ul, .content-block ol {
  padding-left: 20px;
  margin-bottom: 10px;
}

.content-block strong, .content-block b { color: var(--text); }

.closing-text {
  background: var(--green-l);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--green-d);
}

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}
.price-table th {
  background: var(--green);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}
.price-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.price-table tr:nth-child(even) td { background: var(--bg); }
.price-table .price-col { white-space: nowrap; color: var(--green-d); font-weight: 600; }

/* ─── CONTACTS BRIEF ─── */
.contacts-brief {
  margin-top: 28px;
  background: var(--green-l);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
}
.contacts-brief strong { color: var(--green-d); }

/* ─── BLOG ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.blog-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.blog-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--green);
  margin-bottom: 8px;
}
.blog-card h3 { font-size: 15.5px; color: var(--green-d); margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: 13.5px; color: var(--muted); flex: 1; margin-bottom: 14px; }
.blog-card-meta { font-size: 12px; color: var(--muted); }
.blog-card-meta span { color: var(--green); font-weight: 600; }

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-meta b { color: var(--text); }

/* ─── FOOTER ─── */
footer {
  background: var(--green-d);
  color: #aac;
  text-align: center;
  padding: 20px;
  font-size: 12px;
  margin-top: 40px;
}
footer a { color: #cde; }

/* ─── MOBILE BURGER ─── */
.burger {
  display: none;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 22px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; }
  .burger { display: block; }
  nav.sidebar { display: none; }
  nav.sidebar.open { display: block; }
  main { padding: 18px 16px; }
  .content-block img { float: none; max-width: 100%; margin: 0 0 14px 0; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
