:root {
  --navy: #133b88;
  --blue: #196add;
  --accent: #f48024;
  --text: #43546a;
  --ink: #1f1f1f;
  --light: #edf5fd;
  --line: #c3d1e5;
  --container: 1230px;
  --font: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.7 var(--font); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.grid { display: grid; gap: 30px; }
.grid > * { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-block; padding: 14px 30px; font-weight: 600; text-decoration: none; border-radius: 32px; transition: opacity .25s; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 2px 4px 16px rgba(0, 0, 0, .16); }
.btn--accent:hover { opacity: .8; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(19, 59, 136, .1); }
.header-top { background: var(--navy); color: #fff; font-size: .82rem; }
.header-top__inner { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.header-top p { margin: 0; }
.header-top a { color: #fff; font-weight: 600; text-decoration: none; }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { flex: none; }
.brand img { width: 168px; height: 51px; }
.header-phone { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 1.1rem; text-decoration: none; white-space: nowrap; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.primary-nav a { color: var(--navy); font-size: .9rem; font-weight: 600; text-decoration: none; }
.primary-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; }

/* Hero */
.hero { color: #fff; text-align: center; padding: 96px 0; background: linear-gradient(135deg, #0d2c6b 0%, var(--navy) 45%, var(--blue) 100%); }
.hero__inner { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero__lead { font-size: 1.1rem; font-weight: 500; margin-bottom: 1.8em; }

/* Sections */
.section { padding: 64px 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--navy); color: #dbe6f7; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: #fff; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title--left { text-align: left; }
.subhead { margin: 44px 0 16px; text-align: center; }

/* About + stats */
.about { max-width: 820px; margin: 0 auto 44px; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; text-align: center; }
.stats > * { min-width: 0; }
.stats__num { display: block; color: var(--navy); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; line-height: 1.14; }
.stats__label { display: block; color: var(--navy); font-size: 1.15rem; font-weight: 500; }
.stats__text { display: block; font-size: .875rem; color: #000; }

/* Cards */
.cards { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.card--plain { display: flex; align-items: center; justify-content: center; min-height: 200px; background: linear-gradient(135deg, var(--navy), var(--blue)); border-color: transparent; }
.card--plain h3 { color: #fff; }
.card__body { padding: 16px 18px; }
.card__body h3 { margin: 0; text-align: center; }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 0; padding: 0; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 8px 20px; font-size: .9rem; font-weight: 500; color: var(--navy); }

/* Features */
.features { grid-template-columns: repeat(2, 1fr); }
.feature img { width: 72px; height: 72px; margin-bottom: 14px; }
.feature h3 { font-size: 1.15rem; }

/* Posts */
.posts { grid-template-columns: repeat(3, 1fr); }
.posts--two { grid-template-columns: repeat(2, 1fr); }
.post img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.post h3 { margin-bottom: .4em; }
.post__meta { color: var(--blue); font-size: .85rem; font-weight: 500; }
.post--plain { border-left: 4px solid var(--accent); padding-left: 18px; }

/* Contact */
.contact { grid-template-columns: 1fr 1fr; align-items: start; }
.contact__info { font-style: normal; }
.contact__info p { margin-bottom: .5em; }
.branches { list-style: none; margin: 0; padding: 0; }
.branches > li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.branches ul { list-style: none; margin: 6px 0 0; padding: 0 0 0 14px; }
.branches ul li { padding: 2px 0; }
.branches span { color: var(--accent); font-weight: 600; }

/* Footer */
.site-footer { background: #0d2c6b; color: #c3d1e5; padding: 24px 0; font-size: .875rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .header-top { font-size: .72rem; }
  .header-top__inner { justify-content: center; text-align: center; }
  .nav-toggle { display: block; order: 3; margin-left: auto; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy); transition: transform .2s; }
  .nav-toggle__bar { top: 21px; }
  .nav-toggle__bar::before { top: -7px; left: 0; }
  .nav-toggle__bar::after { top: 7px; left: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
  .header-phone { order: 2; margin-left: auto; font-size: 1rem; }
  .primary-nav { order: 4; display: none; width: 100%; padding-bottom: 16px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; margin: 0; }
  .primary-nav li { border-top: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 12px 2px; }
  .site-header__inner { flex-wrap: wrap; gap: 10px; min-height: 64px; }
  .hero { padding: 64px 0; }
  .section { padding: 44px 0; }
  .section-title { margin-bottom: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .cards, .posts, .posts--two, .features { grid-template-columns: 1fr; }
}
