/* СеверЛогистика — таблица стилей сайта */

:root {
  --ink: #15202b;
  --ink-2: #2b3845;
  --muted: #5d6b7a;
  --muted-2: #7b8794;
  --line: #e3e9ef;
  --line-2: #d2dae2;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-soft-2: #eef3f7;
  --brand: #13456a;
  --brand-2: #1f6f9e;
  --brand-deep: #0e3650;
  --accent: #e07a26;
  --accent-ink: #b65f17;
  --ok: #1f8a5b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(21, 32, 43, .06), 0 8px 24px rgba(21, 32, 43, .06);
  --shadow-sm: 0 1px 2px rgba(21, 32, 43, .08);
  --wrap: 1140px;
  --font: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.05rem + 1.5vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin-bottom: 32px; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-2);
  font-weight: 700;
  margin-bottom: 10px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: #fff; color: var(--brand); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--brand-2); color: var(--brand-2); }

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__logo { flex: none; width: 40px; height: 40px; }
.brand__name { font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; line-height: 1; }
.brand__name span { color: var(--brand-2); }
.brand__tag { display: block; font-size: .7rem; color: var(--muted-2); font-weight: 500; letter-spacing: .04em; margin-top: 3px; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav__list a {
  display: block;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: .96rem;
}
.nav__list a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.nav__list a[aria-current="page"] { color: var(--brand); background: var(--bg-soft-2); font-weight: 600; }

.header-phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.header-phone a { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.header-phone a:hover { color: var(--brand-2); text-decoration: none; }
.header-phone span { font-size: .72rem; color: var(--muted-2); margin-top: 2px; }

/* Переключатель мобильного меню (работает без JS) */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }

/* Hero */
.hero {
  position: relative;
  color: #eaf1f7;
  background:
    radial-gradient(1100px 500px at 82% -10%, rgba(31,111,158,.55), transparent 60%),
    linear-gradient(160deg, #0e3650 0%, #13456a 48%, #0c2d44 100%);
  overflow: hidden;
}
.hero__map { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 72px 0 80px; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero__lead { font-size: 1.14rem; color: #cfe0ec; max-width: 540px; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 26px 36px; }
.fact__num { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1; }
.fact__label { font-size: .86rem; color: #a9c3d6; margin-top: 5px; }
.hero__card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(2px);
}
.hero__card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.route-list { list-style: none; margin: 0; padding: 0; }
.route-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.route-list li:last-child { border-bottom: 0; }
.route-list .route__from { color: #e7eff6; }
.route-list .route__time { color: #ffd7ad; font-weight: 600; white-space: nowrap; }

/* Сетки карточек */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card--pad-lg { padding: 30px; }
.card__icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft-2);
  color: var(--brand-2);
  margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .97rem; }
.card__link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .93rem; }
.card__link::after { content: " →"; }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { position: relative; padding: 0 0 0 30px; margin-bottom: 14px; color: var(--ink-2); }
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ok);
  -webkit-mask: no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M6.2 11.3 3.1 8.2l1.1-1.1 2 2 4.6-4.6 1.1 1.1z'/%3E%3C/svg%3E");
  mask: no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M6.2 11.3 3.1 8.2l1.1-1.1 2 2 4.6-4.6 1.1 1.1z'/%3E%3C/svg%3E");
}

/* Таблицы */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
table.data caption { text-align: left; padding: 16px 18px 0; color: var(--muted); font-size: .9rem; }
table.data th, table.data td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--bg-soft); color: var(--ink-2); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data tbody tr:hover { background: var(--bg-soft); }

/* Разметка «две колонки» */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
.prose p { color: var(--ink-2); }
.prose h2 { margin-top: 1.3em; }
.prose h2:first-child { margin-top: 0; }
.lead { font-size: 1.12rem; color: var(--ink-2); }

/* Боковой блок */
.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.aside-card h3 { font-size: 1.05rem; }
.dl { margin: 0; }
.dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dl div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); font-size: .92rem; }
.dl dd { margin: 0; font-weight: 600; text-align: right; }

/* Полоса показателей */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.stat-strip > div { padding: 26px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip .fact__num { color: var(--brand); }
.stat-strip .fact__label { color: var(--muted); }

/* CTA-полоса */
.cta {
  background: linear-gradient(135deg, #13456a, #1f6f9e);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { color: #cfe0ec; margin: 0; }

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 20px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 30px 17px 0;
  font-weight: 600;
  position: relative;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--brand-2); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Хлебные крошки */
.crumbs { font-size: .86rem; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--ink-2); }

.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 10px 0 44px; }
.page-head h1 { margin: 14px 0 10px; }
.page-head p { color: var(--muted); font-size: 1.08rem; max-width: 680px; margin: 0; }

/* Форма (без отправки) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: var(--brand-2); }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted-2); margin: 4px 0 0; }

.contact-rows { list-style: none; margin: 0; padding: 0; }
.contact-rows li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-rows li:last-child { border-bottom: 0; }
.contact-rows .ci {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-soft-2); color: var(--brand-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-rows .ci svg { width: 22px; height: 22px; }
.contact-rows .ct strong { display: block; font-size: 1.02rem; }
.contact-rows .ct span { color: var(--muted); font-size: .92rem; }

/* Карта офисов (SVG схема) */
.map-figure { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #0e3650; }
.map-figure figcaption { background: #fff; padding: 12px 18px; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Подвал */
.site-footer { background: #0e2a3e; color: #b9cdda; padding: 54px 0 26px; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer a { color: #b9cdda; }
.site-footer a:hover { color: #fff; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name span { color: #6bb6df; }
.footer-brand p { color: #90aabb; font-size: .92rem; margin-top: 14px; max-width: 280px; }
.footer-contacts { font-style: normal; font-size: .95rem; line-height: 1.8; }
.footer-contacts strong { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #80a0b2;
}

/* Служебная страница 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.notfound__code { font-size: clamp(4rem, 2rem + 12vw, 8rem); font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.04em; }

/* Адаптив */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 30px; padding: 54px 0 60px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(1), .stat-strip > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .header-phone { display: none; }
  .nav-burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav__list { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav__list a { padding: 13px 10px; border-radius: 8px; font-size: 1.02rem; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav-toggle:checked ~ .nav { max-height: 420px; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
  .section { padding: 44px 0; }
}

@media (max-width: 420px) {
  .hero__facts { gap: 18px 24px; }
}
