:root {
  --bg: #ffffff;
  --bg-alt: #f4f7f5;
  --surface: #ffffff;
  --text: #1c2521;
  --text-muted: #566159;
  --accent: #0f5c46;
  --accent-light: #147a5e;
  --border: #dde4e0;
  --radius: 6px;
  --max-width: 1120px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", -apple-system, BlinkMacSystemFont, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
}

.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  font-family: Georgia, serif;
}

.logo:hover {
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
}

.main-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

.hero {
  background: var(--bg-alt);
  padding: 56px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 16px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 24px;
}

.hero img {
  margin: 32px auto 0;
  max-width: 720px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-light);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-left: 12px;
}

section {
  padding: 52px 0;
}

section h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.section-lead {
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 32px;
  max-width: 640px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 3px solid var(--accent);
}

.card h3 {
  margin-top: 0;
}

.card--alt {
  background: var(--bg-alt);
  border-top-color: var(--accent-light);
}

.tariff-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.tariff-table th,
.tariff-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

.tariff-table th {
  background: var(--bg-alt);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}

.blog-list {
  display: grid;
  gap: 20px;
}

.post-preview {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.post-preview__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 4px 0 10px;
}

.sidebar {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar h4 {
  margin-top: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.post-body h2,
.post-body h3 {
  margin-top: 2em;
}

.post-body p {
  margin: 1em 0;
}

.post-body a {
  text-decoration: underline;
}

.post-header {
  padding: 36px 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  list-style: none;
  padding: 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.pagination a:hover {
  color: var(--text);
  text-decoration: none;
}

.pagination .is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

form.contact-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-grid h4 {
  margin-top: 0;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.error-page {
  text-align: center;
  padding: 96px 20px;
}

.error-page .code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0;
}

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

@media (max-width: 780px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar .container {
    justify-content: center;
  }

  .main-nav ul {
    gap: 12px;
  }
}
