/* SGT Trans. Concrete ground, asphalt ink, white truck bodies, SGT red for actions only. */

@font-face {
  font-family: 'Sofia Sans';
  src: url('/assets/fonts/sofia-sans-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 1 1000; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Sofia Sans';
  src: url('/assets/fonts/sofia-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 1 1000; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans Condensed';
  src: url('/assets/fonts/sofia-sans-condensed-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 1 1000; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Sofia Sans Condensed';
  src: url('/assets/fonts/sofia-sans-condensed-latin-wght-normal.woff2') format('woff2');
  font-weight: 1 1000; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --concrete: #dddbd5;
  --concrete-deep: #cfcdc6;
  --paper: #fafaf7;
  --ink: #1c1b17;
  --ink-soft: #4a473f;
  --rule: rgb(28 27 23 / 0.22);
  --red: #e31e24;
  --red-press: #b8161b;
  --on-dark: #f1efe8;
  --on-dark-soft: #b9b6ac;
  --glass: #3a3935;
  --metal: #a9a79f;
  --lamp: #f4f2ea;

  --sans: 'Sofia Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --cond: 'Sofia Sans Condensed', 'Sofia Sans', 'Arial Narrow', sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --ease-hyd: cubic-bezier(0.45, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  scrollbar-color: var(--ink) var(--concrete-deep);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--concrete); }

img, svg { display: block; max-width: 100%; }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--cond);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--on-dark); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0 1.15em;
  border-radius: 4px; border: 0;
  font-family: var(--cond); font-weight: 750; font-size: 1.25rem; letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.btn--lg { min-height: 60px; font-size: 1.4rem; padding: 0 1.3em; }
.btn--call { background: var(--red); color: #fff; }
.btn--call:hover { background: var(--red-press); }
.btn--call:active { background: #9e1217; }
.btn--viber { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--viber:hover { background: var(--ink); color: var(--concrete); }
.btn--on-dark { color: var(--on-dark); box-shadow: inset 0 0 0 2px var(--on-dark); }
.btn--on-dark:hover { background: var(--on-dark); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */

.site-header { background: var(--concrete); border-bottom: 1px solid var(--rule); }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: none; }
.brand img { width: 132px; height: auto; }
.site-nav { display: none; gap: 28px; margin-left: auto; }
.site-nav a {
  font-family: var(--cond); font-weight: 650; font-size: 1.15rem;
  text-decoration: none; padding: 6px 0;
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 2px no-repeat;
  transition: background-size 200ms var(--ease-out);
}
.site-nav a:hover { background-size: 100% 2px; }
.header-call {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--cond); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums;
  text-decoration: none; white-space: nowrap;
}
.header-call .ico { color: var(--red); }
.header-call:hover span { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }

@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; z-index: 20; }
  .brand img { width: 148px; }
  .site-nav { display: flex; }
  .header-call { margin-left: 16px; padding-left: 24px; border-left: 1px solid var(--rule); }
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 72px); overflow-x: clip; }
.hero__head { display: grid; gap: 22px; align-items: end; }
.hero__title {
  font-size: clamp(3rem, 1.4rem + 5.4vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero__lede { font-size: 1.15rem; line-height: 1.5; max-width: 38ch; color: var(--ink-soft); margin-bottom: 20px; }

@media (min-width: 900px) {
  .hero__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
  .hero__aside { padding-bottom: 6px; }
}

/* ---------- Sign hero: the three services set at sign scale ---------- */

.sign { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 88px); }
.sign__title {
  font-family: var(--sans); font-weight: 500; letter-spacing: 0;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.4; color: var(--ink-soft); max-width: 52ch;
}
.sign__title b { color: var(--ink); font-weight: 750; }
.sign__lines { list-style: none; margin: clamp(18px, 3vw, 28px) 0 0; padding: 0; border-bottom: 2px solid var(--ink); }
.sign__lines li { border-top: 2px solid var(--ink); }
.sign__line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 32px;
  padding: clamp(16px, 2vw, 24px) 0; text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, padding 260ms var(--ease-out);
}
.sign__text { display: grid; gap: 8px; min-width: 0; }
.sign__big {
  font-family: var(--cond); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 0.55rem + 4.3vw, 4.75rem); line-height: 0.92; letter-spacing: -0.005em;
}
.sign__meta { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.35; }
.sign__go {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 4px;
  background: var(--ink); color: var(--concrete);
  transition: background-color 180ms ease, color 180ms ease;
}
.sign__go .ico { width: 28px; height: 28px; transition: transform 300ms var(--ease-out); }
.sign__line:hover, .sign__line:focus-visible { background: var(--ink); color: var(--concrete); padding-inline: 20px; }
.sign__line:focus-visible { outline-offset: 4px; }
.sign__line:hover .sign__meta, .sign__line:focus-visible .sign__meta { color: var(--on-dark-soft); }
.sign__line:hover .sign__go, .sign__line:focus-visible .sign__go { background: var(--concrete); color: var(--ink); }
.sign__line:hover .sign__go .ico, .sign__line:focus-visible .sign__go .ico { transform: translateX(4px); }

/* A one-time nudge of each arrow after load hints that the rows are links. */
@keyframes sign-nudge { 0%, 100% { transform: none; } 45% { transform: translateX(6px); } }
.sign__lines li:nth-child(1) { --i: 0; }
.sign__lines li:nth-child(2) { --i: 1; }
.sign__lines li:nth-child(3) { --i: 2; }
@media (prefers-reduced-motion: no-preference) {
  .sign__go .ico { animation: sign-nudge 650ms var(--ease-out) calc(700ms + var(--i) * 160ms) 2 both; }
  .sign__line:hover .sign__go .ico { animation: none; }
}

@media (max-width: 699px) {
  .sign__line { gap: 8px 16px; align-items: center; }
  .sign__text { display: contents; }
  .sign__big { grid-column: 1 / -1; }
  .sign__meta { grid-column: 1; font-size: 0.94rem; }
  .sign__go { grid-column: 2; }
  .sign__go { width: 44px; height: 44px; }
  .sign__go .ico { width: 22px; height: 22px; }
}

.sign__call { margin-top: clamp(26px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.sign__num {
  font-family: var(--cond); font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap;
  font-size: clamp(2.75rem, 0.8rem + 6.4vw, 5.25rem); line-height: 1; color: var(--red); text-decoration: none;
}
.sign__num:hover { color: var(--red-press); text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.1em; }
.sign__call-side { display: grid; gap: 12px; justify-items: start; }
.sign__call-side p { color: var(--ink-soft); max-width: 34ch; }

/* ---------- Fleet section ---------- */

.fleet { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--rule); overflow-x: clip; }
.fleet .section-head { margin-bottom: 0; }

/* ---------- Truck lineup: three vehicles at one shared scale ---------- */

.lineup { --total: 25.8; --ruler: 25; container-type: inline-size; position: relative; margin-top: 0; }
.lineup__list {
  --m: 40px;                         /* fallback px per metre */
  --m: min(46px, 100cqi / var(--total));   /* metres of trucks plus 1.6 m gaps, set per lineup */
  --art: calc(var(--m) * 3.52);
  --headroom: calc(var(--m) * 2);
  position: relative;
  display: flex; align-items: flex-start; gap: calc(var(--m) * 1.6);
  list-style: none; margin: 0; padding: var(--headroom) 0 0;
}
/* The road: one continuous ground line under all three trucks. */
.lineup__list::after {
  content: ''; position: absolute; left: 0; right: 0; height: 3px;
  top: calc(var(--headroom) + var(--art) - 1px);
  background: var(--ink);
}
.truck { flex: none; width: calc(var(--m) * var(--len)); }
.truck__link { display: block; text-decoration: none; }
.truck__art { height: var(--art); display: flex; align-items: flex-end; }
.truck__art .tk { width: 100%; height: auto; overflow: visible; }

.lineup__scale {
  --m: 40px;
  --m: min(46px, 100cqi / var(--total));
  position: absolute; left: 0; height: 52px;
  top: calc(var(--m) * 2 + var(--m) * 3.52 + 2px);
  width: calc(var(--m) * var(--total));
  background:
    repeating-linear-gradient(to right, var(--ink) 0 2px, transparent 2px calc(var(--m) * 5)) left top / calc(var(--m) * var(--ruler) + 2px) 12px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px var(--m)) left top / calc(var(--m) * var(--ruler) + 1px) 6px no-repeat;
  font-family: var(--cond); font-weight: 600; font-size: 0.8rem; font-variant-numeric: tabular-nums; color: var(--ink-soft);
}
.lineup__scale span { position: absolute; top: 14px; left: calc(var(--m) * var(--at)); transform: translateX(-50%); white-space: nowrap; }
.lineup__scale span:first-child { transform: none; }
.lineup__scale em { position: absolute; left: 0; top: 34px; font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.7rem; white-space: nowrap; }

/* Data plate under each truck */
.truck__plate { margin-top: 72px; border-top: 2px solid var(--ink); padding-top: 12px; }
.truck__name {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  font-family: var(--cond); font-weight: 800; font-size: clamp(1.25rem, 0.9rem + 0.8vw, 1.55rem); line-height: 1.05;
  margin-bottom: 12px;
}
.truck__name .ico--arrow { width: 1.1em; height: 1.1em; margin-top: 0.02em; transition: transform 300ms var(--ease-out); }
.plate { margin: 0; display: grid; gap: 5px; }
.plate div { display: grid; grid-template-columns: 6.6em 1fr; gap: 10px; align-items: baseline; }
.plate dt {
  font-family: var(--cond); font-weight: 650; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
}
.plate dd { margin: 0; font-size: 0.97rem; line-height: 1.35; }

.truck__link:not(.truck__static):hover .truck__name,
.truck__link:not(.truck__static):focus-visible .truck__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.truck__link:hover .ico--arrow,
.truck__link:focus-visible .ico--arrow { transform: translateX(4px); color: var(--red); }

/* Truck drawing styles */
.tk-body { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tk-dark { fill: var(--ink); }
.tk-glass { fill: var(--glass); }
.tk-metal { fill: var(--metal); stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.tk-line { fill: none; stroke: var(--ink); stroke-width: 0.9; vector-effect: non-scaling-stroke; }
.tk-tyre { fill: var(--ink); }
.tk-rim { fill: var(--metal); }
.tk-hub { fill: var(--ink); }
.tk-lamp { fill: var(--lamp); stroke: var(--ink); stroke-width: 0.9; vector-effect: non-scaling-stroke; }

/* Hydraulics: tipper bodies raise, the tail lift folds down and lowers. */
.tk-tip, .tk-ram, .tk-lift-tilt, .tk-lift-drop { transform-box: view-box; }
.truck--tipper-small { --tip: -35deg; --ram-a: -15.9deg; --ram-s: 18.8; }
.truck--tipper-large { --tip: -18deg; --ram-a: -12.8deg; --ram-s: 23.7; }
.tk-tip, .tk-ram { transition: transform 1.15s var(--ease-hyd); }
.tk-lift-tilt { transition: transform 0.7s var(--ease-hyd) 0.5s; }
.tk-lift-drop { transition: transform 0.5s var(--ease-hyd) 0s; }
.tk-pallet { opacity: 0; transition: opacity 0.25s ease 0s; }

:is(.truck__link, .tk-host):is(:hover, :focus-visible, .is-demo) .tk-tip { transform: rotate(var(--tip)); }
:is(.truck__link, .tk-host):is(:hover, :focus-visible, .is-demo) .tk-ram { transform: rotate(var(--ram-a)) scaleY(var(--ram-s)); }
:is(.truck__link, .tk-host):is(:hover, :focus-visible, .is-demo) .tk-lift-tilt { transform: rotate(-90deg); transition-delay: 0s; }
:is(.truck__link, .tk-host):is(:hover, :focus-visible, .is-demo) .tk-lift-drop { transform: translateY(84px); transition-delay: 0.65s; }
:is(.truck__link, .tk-host):is(:hover, :focus-visible, .is-demo) .tk-pallet { opacity: 1; transition-delay: 1.15s; }

@media (prefers-reduced-motion: reduce) {
  .tk-tip, .tk-ram, .tk-lift-tilt, .tk-lift-drop, .tk-pallet { transition: none !important; }
  :is(.truck__link, .tk-host) :is(.tk-tip, .tk-ram, .tk-lift-tilt, .tk-lift-drop) { transform: none !important; }
  :is(.truck__link, .tk-host) .tk-pallet { opacity: 0 !important; }
}

/* Narrow screens: each truck on its own row, same scale, left-aligned so lengths compare. */
@media (max-width: 759px) {
  .lineup__list {
    --m: 34px;
    --m: calc(100cqi / 10.2);
    flex-direction: column; align-items: stretch; gap: calc(var(--m) * 1.9);
    padding-top: calc(var(--m) * 1.3);
  }
  .lineup__list::after { content: none; }
  .truck { width: auto; }
  .truck__art {
    height: auto; position: relative;
    border-bottom: 3px solid var(--ink);
  }
  .truck__art .tk { width: calc(var(--m) * var(--len)); }
  .truck--tail-lift .tk { margin-left: calc(var(--m) * 1.4); }
  .truck__art::after {
    content: ''; position: absolute; left: 0; top: 100%; width: 100%; height: 7px;
    background: repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px var(--m));
  }
  .truck__plate { margin-top: 20px; }
  .lineup__scale { display: none; }
}

/* ---------- Materials ---------- */

.materials { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { max-width: 52ch; color: var(--ink-soft); font-size: 1.1rem; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
}

.mats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 900px) { .mats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 18px; } }
.mat a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.mat__img { position: relative; display: block; aspect-ratio: 1; background: var(--concrete-deep); overflow: hidden; border-radius: 3px; }
.mat__img img { width: 100%; height: 100%; object-fit: cover; }
.frac {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 2px;
  padding: 0.05em 0.35em 0;
  font-family: var(--cond); font-weight: 800; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.frac--multi { font-size: 1.05rem; padding: 0.15em 0.4em 0.08em; }
.mat__name { margin-top: 12px; font-family: var(--cond); font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.mat__use { margin-top: 4px; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.4; }
.mat a:hover .mat__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }

.mat--all a {
  justify-content: flex-end; gap: 10px;
  background: var(--ink); color: var(--on-dark);
  border-radius: 3px; padding: 18px;
  min-height: 100%;
}
.mat__all-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--cond); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.mat__all-note { color: var(--on-dark-soft); font-size: 0.97rem; line-height: 1.4; }
.mat--all a:hover .ico--arrow { transform: translateX(4px); color: var(--red); }
.mat--all .ico--arrow { transition: transform 300ms var(--ease-out); }

/* ---------- One call brief ---------- */

.brief { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--rule); }
.brief__grid { display: grid; gap: 28px; }
.brief__text p { margin-top: 16px; max-width: 40ch; color: var(--ink-soft); font-size: 1.1rem; }
@media (min-width: 900px) {
  .brief__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
}

.ticket { background: var(--paper); border-top: 4px solid var(--ink); border-radius: 0 0 3px 3px; padding: 6px clamp(18px, 3vw, 32px) clamp(20px, 3vw, 28px); }
.ticket__rows { margin: 0; }
.ticket__rows div {
  display: grid; gap: 4px; padding: 16px 0;
  border-bottom: 1px dashed var(--rule);
}
@media (min-width: 600px) {
  .ticket__rows div { grid-template-columns: 13em 1fr; gap: 16px; align-items: baseline; }
}
.ticket__rows dt { font-family: var(--cond); font-weight: 800; font-size: 1.3rem; line-height: 1.15; }
.ticket__rows dd { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.ticket__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Close: about and contact on asphalt ---------- */

.close { background: var(--ink); color: var(--on-dark); padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 72px); }
.close__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .close__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; } }
.close__about p { margin-top: 18px; max-width: 58ch; color: var(--on-dark-soft); font-size: 1.1rem; }
.close__about p:first-of-type { margin-top: 22px; }
.close__lead { color: var(--on-dark-soft); font-size: 1.1rem; }
.bignum {
  display: inline-block; margin: 6px 0 20px;
  font-family: var(--cond); font-weight: 850; font-size: clamp(3rem, 1rem + 6.4vw, 6rem); line-height: 1; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 0.07em; text-underline-offset: 0.12em;
  white-space: nowrap;
}
.bignum:hover { color: #fff; text-decoration-thickness: 0.1em; }
.close :focus-visible { outline-color: var(--on-dark); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--on-dark-soft); padding-bottom: 32px; font-size: 0.95rem; }
.site-footer__in { display: grid; gap: 16px; border-top: 1px solid rgb(241 239 232 / 0.2); padding-top: 28px; }
.site-footer > .wrap { padding-bottom: 0; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__nav a { color: var(--on-dark); text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer :focus-visible { outline-color: var(--on-dark); }

/* ---------- Mobile call bar ---------- */

.callbar { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
    position: fixed; inset: auto 0 0 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--concrete);
    border-top: 1px solid var(--rule);
    box-shadow: 0 -6px 18px rgb(28 27 23 / 0.12);
  }
  .callbar .btn { min-height: 54px; font-size: 1.2rem; }
  .site-footer { padding-bottom: 24px; }
}

/* On phones the fixed call bar carries both actions, so the hero does not repeat them. */
@media (max-width: 899px) {
  .hero .actions { display: none; }
  .hero__lede { margin-bottom: 0; }
}

/* ---------- 404 ---------- */
.nf__title { font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5rem); line-height: 0.92; max-width: 14ch; }
.nf__text { margin-top: 20px; max-width: 46ch; font-size: 1.15rem; color: var(--ink-soft); }
.nf__home { font-weight: 600; }

/* ======================================================================
   Service pages (ad landing pages)
   ====================================================================== */

.svc-hero { padding-block: clamp(28px, 5vw, 56px) clamp(44px, 6vw, 80px); overflow-x: clip; }
.svc-hero__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .svc-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; } }
.svc-hero h1 { font-size: clamp(2.4rem, 1.1rem + 3.9vw, 4.6rem); line-height: 0.92; letter-spacing: -0.015em; max-width: 15ch; }
.svc-hero__lede { margin: 20px 0 26px; font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 899px) { .svc-hero .actions { display: none; } .svc-hero__lede { margin-bottom: 0; } .svc-hero__grid { gap: 12px; } .svc-figure { --head: 1.1 !important; } }

/* One truck drawn to fit its column; the ruler shows metres at that truck's scale. */
.svc-figure { --lead: 0; --head: 1.3; container-type: inline-size; margin: 0; }
.svc-figure__art {
  --m: calc(100cqi / (var(--len) + var(--lead)));
  position: relative; padding-top: calc(var(--m) * var(--head));
  border-bottom: 3px solid var(--ink);
}
.svc-figure__art .tk { width: calc(var(--m) * var(--len)); height: auto; margin-left: calc(var(--m) * var(--lead)); overflow: visible; }
.svc-figure__art::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px;
  background: repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px var(--m));
}
.svc-figure__art--pair { display: flex; align-items: flex-end; gap: calc(var(--m) * 1.2); }
.svc-figure__art--pair > span { display: block; flex: none; width: calc(var(--m) * var(--w)); }
.svc-figure__art--pair .tk { width: 100%; margin-left: 0; }
.svc-figure figcaption { margin-top: 26px; border-top: 2px solid var(--ink); padding-top: 12px; }

.svc-section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
.svc-section--fleet { overflow-x: clip; }
.svc-section--fleet .section-head { margin-bottom: 0; }

/* Catalog: tiles are not links; each carries its own call action. */
.mat--card { display: flex; flex-direction: column; scroll-margin-top: 110px; }
.mat--card .mat__use { flex: 1 0 auto; }
.mat__img--empty { display: grid; place-items: center; }
.mat__img--empty .frac { position: static; }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--concrete); }

/* Catalog tile actions: ask for a price (scrolls to the call band), then work out the amount. */
.mat__actions { display: grid; gap: 10px; margin-top: 14px; justify-items: start; }
.mat--card .mat__ask {
  display: inline-flex; flex-direction: row; height: auto; width: 100%;
  min-height: 46px; padding: 6px 12px; font-size: 1.08rem; white-space: normal; text-align: center; line-height: 1.1;
}
.mat--card .mat__ask .ico { width: 1.05em; height: 1.05em; transition: transform 300ms var(--ease-out); }
.mat--card .mat__ask:hover .ico { transform: translateY(3px); }
.mat--card .mat__calc {
  display: inline; height: auto;
  font-size: 0.97rem; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
.mat--card .mat__calc .ico { display: inline-block; width: 1em; height: 1em; margin-left: 5px; vertical-align: -0.15em; transition: transform 300ms var(--ease-out); }
.mat--card .mat__calc:hover { text-decoration-thickness: 2px; }
@media (max-width: 599px) {
  .mat--card .mat__ask { min-height: 44px; padding: 6px 8px; font-size: 1rem; }
  .mat--card .mat__ask .ico { display: none; }
  .mat--card .mat__calc { font-size: 0.92rem; }
}
.mat--card .mat__calc:hover .ico { transform: translateX(3px); }

/* Fact rows: a quiet two-column table (key, value). Only real links inside values look like links. */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rows > li { display: grid; gap: 4px 32px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .rows > li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; } }
.rows__key { font-weight: 650; font-size: 1.1rem; line-height: 1.35; }
.rows__val { color: var(--ink-soft); font-size: 1.05rem; }
.rows__val a { color: var(--ink); font-weight: 600; }

/* Manifest: a plain list printed on paper, like a delivery note; nothing in it is clickable. */
.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.manifest {
  list-style: none; margin: 0; padding: 8px clamp(18px, 3vw, 28px);
  background: var(--paper); border-radius: 3px;
  display: grid; gap: 0 32px;
}
@media (min-width: 640px) { .manifest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.manifest li {
  position: relative; padding: 14px 0 14px 22px; border-bottom: 1px dashed var(--rule);
  font-size: 1.08rem; line-height: 1.4;
}
.manifest li::before {
  content: ''; position: absolute; left: 0; top: calc(14px + 0.5em); width: 8px; height: 8px; background: var(--ink);
}

/* Top view of the cargo bed with eight euro pallets */
.pallet-fig { margin: 0; }
.pallet-plan { width: 100%; height: auto; }
.pp-bed { fill: var(--paper); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pp-pallet { fill: var(--concrete-deep); stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.pp-plank line { stroke: var(--ink-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pp-cab { fill: var(--paper); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pp-glass { fill: var(--glass); }
.pallet-fig figcaption { margin-top: 10px; font-family: var(--cond); font-weight: 650; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

/* Important notice (waste: transport only) */
.notice { background: var(--ink); color: var(--on-dark); border-radius: 3px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 8px; max-width: 760px; }
.notice strong { font-family: var(--cond); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); line-height: 1.05; }
.notice p { color: var(--on-dark-soft); font-size: 1.05rem; }

/* Compact SEO text: present, but quieter than the catalog */
.seo h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin-bottom: 20px; max-width: 30ch; }
.seo__cols { display: grid; gap: 14px 40px; color: var(--ink-soft); font-size: 1rem; }
@media (min-width: 900px) { .seo__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Closing call band on service pages */
.cta-band { background: var(--ink); color: var(--on-dark); padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 72px); }
.cta-band__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .cta-band__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: start; } }
.cta-band h2 { max-width: 16ch; }
.cta-band__text { margin-top: 18px; color: var(--on-dark-soft); font-size: 1.1rem; max-width: 46ch; }
.cta-band__ready { margin: 26px 0 0; border-top: 1px solid rgb(241 239 232 / 0.2); }
.cta-band__ready div { display: grid; grid-template-columns: minmax(7em, 0.8fr) 1.2fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgb(241 239 232 / 0.2); }
.cta-band__ready dt { font-family: var(--cond); font-weight: 750; font-size: 1.15rem; }
.cta-band__ready dd { margin: 0; color: var(--on-dark-soft); }
.cta-band .bignum { margin-top: 0; }
.cta-band :focus-visible { outline-color: var(--on-dark); }
.cta-band + .site-footer .site-footer__in { border-top-color: rgb(241 239 232 / 0.2); }

/* ======================================================================
   Review drafts: content waiting for the client's confirmation.
   Only present in --drafts builds; normal builds strip it.
   ====================================================================== */
.drafts-on .is-draft { outline: 2px dashed var(--red); outline-offset: 3px; position: relative; }
.drafts-on .is-draft::after {
  content: 'чака потвърждение'; position: absolute; top: -11px; right: 6px; z-index: 2;
  background: var(--red); color: #fff; border-radius: 2px; padding: 3px 6px;
  font: 700 10px/1 var(--cond); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.drafts-on span.is-draft::after { top: -16px; right: auto; left: 0; }

/* ---------- Real photos ---------- */
.photos-sec h2 { margin-bottom: clamp(20px, 3vw, 32px); }
.photos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--concrete-deep); max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--slot .photo__ph {
  display: grid; align-content: center; justify-items: center; gap: 8px; height: 100%; padding: 20px; text-align: center;
  border: 2px dashed var(--ink-soft); border-radius: 3px; color: var(--ink-soft); font-size: 0.95rem;
}
.photo__ph b { font-family: var(--cond); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.photo__ph code { font-size: 0.8rem; background: var(--paper); padding: 2px 6px; border-radius: 2px; }

/* ---------- How it works: conditions and areas ---------- */
.terms__grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .terms__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.areas { background: var(--paper); border-radius: 3px; padding: clamp(18px, 3vw, 28px); }
.areas h3 { font-size: 1.5rem; line-height: 1.05; }
.areas__city { margin-top: 10px; font-weight: 650; }
.areas__list { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--rule); columns: 2; column-gap: 24px; font-size: 1rem; line-height: 1.75; }
.areas__note { margin-top: 14px; color: var(--ink-soft); font-size: 0.95rem; }
.areas__note a { color: var(--ink); font-weight: 600; }

/* ---------- Questions people ask ---------- */
.faq-sec__grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .faq-sec__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.faq-sec__grid .section-head { display: block; margin: 0; }
.faq-sec__grid .section-head p { margin-top: 16px; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 0; font-weight: 650; font-size: 1.1rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 16px; height: 16px;
  background: linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat;
  transition: background-size 200ms var(--ease-out);
}
.faq details[open] summary::after { background-size: 16px 2px, 2px 0; }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.faq__a { padding: 0 0 20px; color: var(--ink-soft); max-width: 66ch; display: grid; gap: 10px; }
.faq__a a { color: var(--ink); font-weight: 600; }
.drafts-on .faq details.is-draft { outline-offset: 0; }

/* ---------- Other services strip on service pages ---------- */
.others { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }
.others h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 16px; }
.others .sign__lines { margin-top: 0; }
.others .sign__big { font-size: clamp(1.6rem, 0.9rem + 2.4vw, 2.8rem); }
.others .sign__go { width: 48px; height: 48px; }
.others .sign__go .ico { width: 22px; height: 22px; animation: none; }

/* ---------- Inline text link to the calculator ---------- */
.calc-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink); }
.calc-link .ico { width: 1.1em; height: 1.1em; }
.svc-hero__calc { margin: -12px 0 24px; }
@media (max-width: 899px) { .svc-hero__calc { margin: 14px 0 0; } }

/* ======================================================================
   Material calculator
   ====================================================================== */
.calc-hero { padding-bottom: clamp(20px, 3vw, 32px); }
.calc-hero h1 { max-width: 18ch; }
.calc-sec { padding-bottom: clamp(56px, 8vw, 104px); }
.calc { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }

.calc__jobs { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc__jobs legend, .field > span {
  display: block; margin-bottom: 10px; padding: 0;
  font-family: var(--cond); font-weight: 750; font-size: 1.15rem;
}
.calc__chips { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.calc__chips label { position: relative; display: block; cursor: pointer; }
.calc__chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc__chips span {
  display: flex; align-items: center; min-height: 52px; height: 100%; padding: 10px 14px;
  border-radius: 4px; box-shadow: inset 0 0 0 2px var(--ink); background: transparent;
  font-weight: 600; line-height: 1.25; transition: background-color 160ms ease, color 160ms ease;
}
.calc__chips label:hover span { background: var(--concrete-deep); }
.calc__chips input:checked + span { background: var(--ink); color: var(--concrete); }
.calc__chips input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 3px; }

.calc__fields { margin-top: 24px; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field--wide { grid-column: 1 / -1; }
.field select, .field input {
  width: 100%; min-height: 54px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 4px;
  background: var(--paper); color: var(--ink); font: 600 1.15rem/1.2 var(--sans); font-variant-numeric: tabular-nums;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 52px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1b17' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"), linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: right 14px center, right 44px center;
  background-size: 20px 20px, 1px 60%;
}
.field select:hover { background-color: #fff; }
.field select:focus-visible, .field input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.calc__hint { margin-top: 12px; color: var(--ink-soft); font-size: 0.97rem; }

.calc__result { background: var(--paper); border-top: 4px solid var(--ink); border-radius: 0 0 3px 3px; padding: 18px clamp(18px, 3vw, 28px) 24px; display: grid; gap: 6px; }
@media (min-width: 960px) { .calc__result { position: sticky; top: 100px; } }
.calc__label { color: var(--ink-soft); }
.calc__tons { font-family: var(--cond); font-weight: 850; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.calc__facts { margin: 12px 0 0; border-top: 1px dashed var(--rule); }
.calc__facts div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--rule); }
.calc__facts dt { font-family: var(--cond); font-weight: 650; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.calc__facts dd { margin: 0; font-weight: 600; }
.calc__summary { margin-top: 10px; font-weight: 600; }
.calc__big { color: var(--ink-soft); }
.calc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.calc__note { margin-top: 8px; color: var(--ink-soft); font-size: 0.92rem; }

.table-wrap { overflow-x: auto; }
.dens { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 520px; }
.dens th, .dens td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.dens thead th { font-family: var(--cond); font-weight: 650; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--ink); }
.dens tbody th { font-weight: 650; }
.dens tbody th a { color: var(--ink); }
.dens td:nth-child(2) { font-weight: 650; white-space: nowrap; }
.dens td:last-child { color: var(--ink-soft); }
.drafts-on .areas__list.is-draft::after { top: -10px; right: 0; }
@media (max-width: 599px) {
  .calc__chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .calc__chips label { flex: 0 1 auto; }
  .calc__chips span { min-height: 42px; padding: 8px 12px; font-size: 0.95rem; }
}

/* "Not included" note under a price list: quiet, with a small red mark */
.excluded { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 1.02rem; color: var(--ink-soft); }
.excluded .ico { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--red); stroke-width: 2; }
.excluded b { color: var(--ink); font-weight: 650; }
