/* Thi bằng lái xe máy — восстановление из веб-архива (снимок 2025-03-21, WordPress Flatsome) */

:root {
  --brand: #1769b0;
  --brand-dark: #114f87;
  --accent: #f5a623;
  --ink: #232323;
  --ink-soft: #5c5c5c;
  --line: #e3e3e3;
  --bg: #f4f6f9;
  --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: 124px; }

.btn { display: inline-block; padding: 12px 24px; background: var(--accent); color: #232323; font-weight: 700; border-radius: 3px; }
.btn:hover { background: #e0940f; text-decoration: none; }
.btn--ghost { background: var(--brand); color: #fff; }
.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: 54px; width: auto; }
.site-header__hotline { margin: 0 0 0 auto; font-weight: 700; }
.site-header__hotline span { color: var(--ink-soft); font-weight: 500; font-size: 12px; text-transform: uppercase; }
.site-header__hotline a { color: var(--brand-dark); font-size: 19px; }
.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; }

/* герой */
.hero { background: linear-gradient(rgba(17,79,135,.9), rgba(13,61,105,.92)), var(--brand-dark) url("../img/banner-r1-1.jpg") no-repeat center / cover; color: #fff; padding: 54px 0; }
.hero__panel { max-width: 780px; }
.hero__eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); }
.hero h1 { font-size: clamp(24px, 4vw, 36px); text-transform: uppercase; }
.hero__addr { margin: 12px 0 16px; font-weight: 500; }
.hero p { margin: 0 0 14px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* секции */
.section { padding: 44px 0; }
.section-title { font-size: clamp(21px, 2.6vw, 27px); color: var(--brand-dark); text-transform: uppercase; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px solid var(--accent); display: inline-block; }
.section p { max-width: 82ch; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0 0; padding: 0; list-style: none; }
.feature-grid > * { min-width: 0; }
.feature { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.feature h3 { font-size: 17px; color: var(--brand-dark); margin-bottom: 8px; }
.feature p { margin: 0; }

.section--cta { background: var(--brand-dark); color: #fff; }
.section--cta .section-title { color: #fff; border-bottom-color: var(--accent); }
.dang-ky__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dang-ky__inner p { margin: 0; }
.dang-ky__cta { flex: none; }

/* лента */
.posts { display: grid; grid-template-columns: repeat(4, 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; display: flex; flex-direction: column; }
.post__media { margin: 0; aspect-ratio: 3 / 2; background: #eee; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 14px; }
.post__title { font-size: 16px; color: var(--brand-dark); line-height: 1.4; }
.post__excerpt { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* футер */
.site-footer { background: var(--brand-dark); color: #cddcec; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1.4fr; 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-tags { margin: 0; font-size: 14px; line-height: 1.9; color: #dbe6f2; }
.site-footer__bottom { background: #0d3d6a; }
.site-footer__bottom .wrap { padding: 14px 18px; }
.site-footer__bottom p { margin: 0; font-size: 14px; }

/* адаптив */
@media (max-width: 1024px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-header__hotline { order: 3; width: 100%; margin-left: 0; text-align: center; }
  .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); }
  .feature-grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
}
