/* =========================================================
   Марбо Транспорт – шлеп служба
   Palette: asphalt black + hazard yellow (from the trucks) + signal red
   ========================================================= */
:root {
  --ink: #141414;
  --ink-2: #1f1f1f;
  --ink-3: #2b2b2b;
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --yellow: #ffc400;
  --yellow-2: #ffd84d;
  --red: #e0261b;
  --muted: #6b675f;
  --muted-dark: #a9a49a;
  --radius: 14px;
  --wrap: 1160px;
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --callbar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-top: env(safe-area-inset-top);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark svg { width: 38px; height: 38px; display: block; }
.brand__text { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1; display: flex; flex-direction: column; }
.brand__text small { font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); margin-top: 4px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: #d6d2c9; transition: color .15s; }
.nav a:hover { color: var(--yellow); }
.topbar__call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: 16px; text-decoration: none;
  padding: 10px 16px; border-radius: 999px;
  transition: transform .15s, background .15s;
}
.topbar__call:hover { background: var(--yellow-2); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(20,20,20,.96) 0%, rgba(20,20,20,.86) 45%, rgba(20,20,20,.45) 100%),
    url("../assets/img/hero.jpg") center / cover no-repeat,
    radial-gradient(1200px 500px at 85% 20%, #3a3220 0%, var(--ink) 60%);
}
.hero__inner { position: relative; padding: 72px 0 88px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-weight: 700; font-size: 14px; letter-spacing: .04em;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.hero__title { font-size: clamp(40px, 7.4vw, 88px); font-weight: 800; text-transform: uppercase; }
.hero__title span { color: var(--yellow); }
.hero__lead { max-width: 34ch; font-size: clamp(17px, 2vw, 20px); color: #d6d2c9; margin: 20px 0 32px; }

.callcard {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label cta" "number cta";
  align-items: center; column-gap: 24px;
  max-width: 560px; padding: 20px 20px 20px 26px;
  background: var(--yellow); color: var(--ink);
  border-radius: 20px; text-decoration: none;
  box-shadow: 0 18px 50px -12px rgba(255,196,0,.45);
  transition: transform .15s, box-shadow .15s;
}
.callcard:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -12px rgba(255,196,0,.6); }
.callcard:active { transform: scale(.99); }
.callcard__label { grid-area: label; font-weight: 700; font-size: 14px; opacity: .8; }
.callcard__number { grid-area: number; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 6vw, 52px); line-height: 1.05; white-space: nowrap; }
.callcard__cta {
  grid-area: cta; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--yellow);
  font-weight: 800; padding: 16px 20px; border-radius: 14px;
}

.hero__facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px 36px; color: var(--muted-dark); font-size: 14px; }
.hero__facts strong { display: block; color: #fff; font-family: var(--font-display); font-size: 22px; }

.hazard { position: relative; height: 14px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, var(--ink) 22px 44px); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--tint { background: var(--paper-2); }
.section__head { margin-bottom: 40px; max-width: 640px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.section__lead { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.section--dark .section__lead { color: var(--muted-dark); }
.eyebrow { margin: 0 0 12px; font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.section--dark .eyebrow { color: var(--yellow); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  background: #fff; border-radius: var(--radius); padding: 28px;
  border: 1px solid #e4dfd4;
}
.service h3 { font-size: 19px; font-weight: 600; margin: 18px 0 8px; }
.service p { margin: 0; color: var(--muted); }
.service__ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); }
.service__ico svg { width: 26px; height: 26px; }
.service--main { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; overflow: hidden; }
.service--main::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px); }
.service--main h3 { font-size: 21px; font-weight: 800; }
.service--main p { color: var(--muted-dark); }
.service--main .service__ico { background: var(--yellow); }

/* Fleet */
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.truck { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 26px; }
.truck h3 { font-size: 21px; font-weight: 600; color: var(--yellow); margin-bottom: 18px; }
.truck dl { margin: 0; display: grid; gap: 10px; }
.truck dl div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink-3); padding-top: 10px; }
.truck dt { color: var(--muted-dark); font-size: 15px; }
.truck dd { margin: 0; font-weight: 700; text-align: right; }
.note { color: var(--muted-dark); margin: 24px 0 0; font-size: 15px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.gallery:not(:has(img:not(.is-broken))) { display: none; }
.gallery img.is-broken { display: none; }

/* Why us */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li {
  position: relative; padding: 16px 18px 16px 56px;
  background: #fff; border: 1px solid #e4dfd4; border-radius: 12px; font-weight: 600;
}
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 50%; translate: 0 -50%;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Partners */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.partners li {
  background: #fff; border-radius: 12px; border: 1px solid #ddd7ca;
  height: 104px; display: grid; place-items: center; padding: 14px; text-align: center;
}
.partners img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.partners li:hover img { filter: none; opacity: 1; }
.partners span { display: none; font-weight: 800; color: var(--muted); }
.partners li.no-img span { display: block; }

/* Contact */
.contact { text-align: center; position: relative; }
.bigcall {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--yellow); color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 5vw, 48px);
  padding: 22px 36px; border-radius: 20px;
  box-shadow: 0 18px 50px -12px rgba(255,196,0,.45);
  transition: transform .15s;
}
.bigcall:hover { transform: translateY(-2px); }
.contact__alt { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.pill {
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  color: #fff; text-decoration: none; background: transparent;
  border: 1px solid #3a3a3a; padding: 12px 18px; border-radius: 999px;
  transition: border-color .15s, color .15s;
}
.pill:hover { border-color: var(--yellow); color: var(--yellow); }
.contact__tip { color: var(--muted-dark); max-width: 46ch; margin: 28px auto 0; font-size: 15px; }

/* Footer */
.footer { background: #0d0d0d; color: var(--muted-dark); font-size: 14px; padding: 28px 0; }
.footer__inner { display: flex; justify-content: center; text-align: center; flex-wrap: wrap; gap: 8px 24px; }
.footer p { margin: 0; }
.footer a { color: #fff; text-decoration: none; }

/* Mobile sticky call bar (hidden on desktop) */
.callbar { display: none; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--callbar-h) + 24px + env(safe-area-inset-bottom)); translate: -50% 20px;
  background: #fff; color: var(--ink); font-weight: 700; padding: 10px 16px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; z-index: 70;
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services, .fleet { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .nav { display: none; }
  .topbar__call { margin-left: auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .footer { padding-bottom: calc(28px + var(--callbar-h) + env(safe-area-inset-bottom)); }
  .wrap { width: calc(100% - 32px); }
  .topbar__inner { height: 58px; }
  .topbar__call { display: none; } /* the sticky call bar at the bottom replaces it */

  .hero__inner { padding: 40px 0 52px; }
  .hero__lead { margin: 14px 0 24px; }
  .callcard { grid-template-columns: 1fr; grid-template-areas: "label" "number" "cta"; padding: 20px; row-gap: 4px; }
  .callcard__cta { justify-content: center; margin-top: 14px; padding: 16px; font-size: 18px; }
  .hero__facts { gap: 10px 24px; margin-top: 28px; }
  .hero__facts strong { font-size: 18px; }

  .section { padding: 60px 0; }
  .section__head { margin-bottom: 28px; }
  .services, .fleet { grid-template-columns: 1fr; }
  .service { padding: 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .bigcall { padding: 18px 22px; width: 100%; justify-content: center; }

  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: center; gap: 14px;
    min-height: var(--callbar-h);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--yellow); color: var(--ink); text-decoration: none;
    box-shadow: 0 -8px 30px rgba(0,0,0,.25);
    -webkit-tap-highlight-color: transparent;
  }
  .callbar:active { background: var(--yellow-2); }
  .callbar__pulse { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; animation: ring 2.4s infinite; }
  .callbar__pulse .ico { width: 22px; height: 22px; }
  .callbar__text { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.1; display: flex; flex-direction: column; }
  .callbar__text small { font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
  @keyframes ring { 0%, 100% { transform: rotate(0); } 4% { transform: rotate(-14deg); } 8% { transform: rotate(14deg); } 12% { transform: rotate(-10deg); } 16% { transform: rotate(0); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
