:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --header-bg: #102436;
  --header-text: #f8fafc;
  --header-muted: #b8c7d6;
  --text: #1b2430;
  --text-muted: #4b5563;
  --border: #dfe5ec;
  --accent: #146c43;
  --accent-hover: #0f5132;
  --accent-soft: #ecf7f1;
  --focus: #0b5ed7;
  --radius: 12px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1020px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header */
.site-header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding-block: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--header-muted);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-block-size: 44px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--header-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.header-phone:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Main Layout */
.main-content {
  flex: 1;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

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

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 1px 3px rgba(16, 36, 54, 0.04);
}

h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.card-lead {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Meta / Company identifiers */
.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

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

.meta-item dt {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.meta-item dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* Documents list */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-block-size: 56px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background-color: var(--surface);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.doc-link:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

.doc-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.doc-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.doc-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.doc-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.doc-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

.doc-link:hover .doc-arrow {
  color: var(--accent);
}

/* Contact list */
.contact-list {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-item dt {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.contact-item dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.contact-item a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding-block: 2px;
}

.contact-item a:hover {
  color: var(--accent-hover);
}

.icon {
  width: 20px;
  height: 20px;
}

/* Focus indicators */
:where(a:any-link, button):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  padding-block: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

/* 404 helper */
.not-found {
  max-width: 540px;
  margin-inline: auto;
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  padding: 0.65rem 1.25rem;
  margin-top: 1rem;
  border-radius: 8px;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.back-btn:hover {
  background-color: var(--accent-hover);
}
