/* Rút hầm cầu Sơn Lâm — восстановление из веб-архива (снимок 2019-06-01) */

:root {
  --brand: #1a7a34;
  --brand-dark: #135c27;
  --accent: #e8531f;
  --ink: #232323;
  --ink-soft: #5c5c5c;
  --line: #e2e2e2;
  --bg: #f5f7f5;
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.25; margin: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

html { scroll-padding-top: 130px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 3px;
}
.btn:hover { background: #c8410f; text-decoration: none; }
.btn--ghost { background: var(--brand); }
.btn--ghost:hover { background: var(--brand-dark); }

/* ---------- шапка ---------- */

.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); position: sticky; top: 0; z-index: 40; }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}
.brand img { height: 56px; width: auto; }
.site-header__hotline { margin: 0 0 0 auto; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.site-header__hotline span { color: var(--ink-soft); font-weight: 500; text-transform: uppercase; font-size: 12px; }
.site-header__hotline a { color: var(--accent); font-size: 18px; }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.nav-toggle__bar { display: block; height: 2px; background: var(--brand-dark); margin: 5px 0; }

.primary-nav { background: var(--brand); }
.primary-nav__list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.primary-nav__list a {
  display: block;
  padding: 13px 16px;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
}
.primary-nav__list a:hover { background: var(--brand-dark); text-decoration: none; }
.primary-nav__list a:focus-visible { outline-color: #fff; }

/* ---------- герой ---------- */

.hero {
  background: linear-gradient(135deg, #1a7a34, #0f4a1f);
  color: #fff;
  padding: 56px 0;
}
.hero__text { max-width: 760px; }
.hero h1 { font-size: clamp(26px, 4.5vw, 40px); text-transform: uppercase; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.hero p { font-size: 17px; margin: 18px 0 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- секции ---------- */

.section { padding: 44px 0; }
.section--alt { background: #fff; }
.section h2 {
  font-size: clamp(21px, 2.6vw, 27px);
  color: var(--brand-dark);
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
.section h3 { font-size: 19px; margin: 24px 0 10px; color: var(--brand-dark); }
.section p { margin: 0 0 14px; max-width: 82ch; }

.services, .reasons { margin: 0 0 16px; padding-left: 22px; }
.services li, .reasons li { margin-bottom: 8px; }
.coverage { font-style: italic; color: var(--ink-soft); }

.area-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 20px;
  margin: 0; padding: 0;
  list-style: none;
}
.area-list li {
  min-width: 0;
  padding: 8px 12px;
  background: var(--bg);
  border-left: 3px solid var(--brand);
  font-size: 14.5px;
}
.section--alt .area-list li { background: #f5f7f5; }

/* ---------- лента статей ---------- */

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0; padding: 0;
  list-style: none;
}
.posts > * { min-width: 0; }
.post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.section--alt .post { background: var(--bg); }
.post__media { margin: 0; aspect-ratio: 3 / 2; background: #eee; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__title { padding: 14px; font-size: 16px; color: var(--brand-dark); }

/* ---------- футер ---------- */

.site-footer { background: var(--brand-dark); color: #d8e6dc; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 34px;
  padding: 40px 18px;
}
.site-footer__grid > * { min-width: 0; }
.footer-col h2 { color: #fff; font-size: 17px; text-transform: uppercase; margin-bottom: 14px; }
.footer-contact { font-style: normal; }
.footer-contact p { margin: 0 0 8px; }
.footer-contact a { color: #fff; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { padding: 5px 0; }
.footer-links a { color: #d8e6dc; }
.site-footer__bottom { background: #0f4a1f; }
.site-footer__bottom .wrap { padding: 14px 18px; }
.site-footer__bottom p { margin: 0; font-size: 14px; }

/* ---------- адаптив ---------- */

@media (max-width: 1024px) {
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-header__hotline { margin-left: 0; order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .site-header__inner { flex-wrap: wrap; }
  .brand { margin-right: auto; }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav__list { flex-direction: column; }
  .primary-nav__list li { border-top: 1px solid rgba(255, 255, 255, .12); }
  .area-list { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
}
