:root {
  --ink: #101010;
  --muted: #626262;
  --line: #d9d9d5;
  --paper: #f4f3ee;
  --white: #fff;
  --yellow: #ffc400;
  --yellow-dark: #d99f00;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DIN 2014", Bahnschrift, "Arial Narrow", Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, .btn { touch-action: manipulation; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 200; background: var(--yellow); padding: .7rem 1rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.inner-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 76px;
  padding: .75rem max(1.25rem, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.inner-brand { flex: 0 0 auto; }
.inner-brand img { width: 190px; height: 50px; object-fit: contain; object-position: left center; }
.inner-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.65rem, 1.5vw, 1.35rem); }
.inner-nav a { text-decoration: none; font-size: .78rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.inner-nav a:hover, .inner-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 7px; }
.menu-button { display: none; margin-left: auto; border: 1px solid var(--ink); background: transparent; padding: .55rem .8rem; font-weight: 800; }

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 1px solid var(--ink);
  padding: .75rem 1.15rem;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .07em;
  cursor: pointer;
}
.btn--yellow { background: var(--yellow); }
.btn--dark { color: white; background: var(--ink); }
.btn--white { color: var(--ink); background: white; }
.btn .action-icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.btn:hover { transform: translateY(-1px); box-shadow: 4px 4px 0 rgba(0,0,0,.17); }

.page-hero {
  min-height: 430px;
  padding: clamp(4rem, 8vw, 7.5rem) max(1.25rem, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: end;
  gap: 3rem;
  color: white;
  background: var(--ink);
}
.eyebrow { margin: 0 0 1rem; color: var(--yellow); text-transform: uppercase; font-size: .75rem; font-weight: 900; letter-spacing: .16em; }
.page-hero h1, .section-title { margin: 0; font-size: clamp(3rem, 8vw, 7rem); line-height: .86; letter-spacing: -.055em; text-transform: uppercase; }
.page-hero > * { min-width: 0; }
.page-hero h1.service-hero-title { font-size: clamp(3rem, 5.5vw, 6rem); letter-spacing: -.045em; }
.page-hero h1 span, .section-title span { color: var(--yellow); }
.page-hero__copy { max-width: 38rem; margin: 0; color: #d7d7d2; font-size: clamp(1rem, 1.6vw, 1.22rem); }
.page-hero__aside { align-self: center; justify-self: end; width: min(100%, 38rem); }
.page-hero__aside .page-hero__copy { margin-inline: auto; }
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }

.section { padding: clamp(3.5rem, 7vw, 6.5rem) max(1.25rem, calc((100vw - var(--max)) / 2)); }
.section--white { background: white; }
.section--yellow { background: var(--yellow); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section-intro h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 4.5rem); line-height: .95; text-transform: uppercase; letter-spacing: -.04em; }
.section-intro p { margin: 0; color: var(--muted); }

.search-panel { display: grid; grid-template-columns: 1fr auto; gap: .6rem; max-width: 880px; margin: 0 0 1rem; }
.search-panel input { width: 100%; min-height: 58px; border: 2px solid var(--ink); background: white; padding: 0 1rem; font-size: 1.05rem; }
.suggestions { max-width: 880px; margin: -.5rem 0 1.5rem; padding: 0; list-style: none; background: white; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.suggestions[hidden] { display: none; }
.suggestions button { width: 100%; padding: .7rem 1rem; text-align: left; border: 0; background: white; cursor: pointer; }
.suggestions button:hover, .suggestions button:focus { background: #fff3bf; }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-row button { border: 1px solid var(--ink); background: transparent; padding: .55rem .8rem; font-weight: 800; cursor: pointer; }
.filter-row button.is-active { background: var(--ink); color: white; }
.result-note { min-height: 1.5rem; color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-card { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid var(--line); }
.product-card__image { aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; background: #f7f7f4; }
.product-card__image img { width: 100%; height: 100%; padding: .65rem; object-fit: contain; transform: scale(var(--product-image-scale, 1)); transition: transform .35s ease; }
.product-card:hover .product-card__image img { transform: scale(calc(var(--product-image-scale, 1) + .025)); }
.product-card__body { padding: 1.1rem; display: flex; flex: 1; flex-direction: column; }
.product-card__category { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .69rem; font-weight: 900; }
.product-card h2, .product-card h3 { margin: .45rem 0; font-size: 1.28rem; line-height: 1.08; }
.product-card h2 a, .product-card h3 a { text-decoration: none; }
.product-card p { margin: .35rem 0; color: var(--muted); }
.product-card__price { margin-top: auto !important; padding-top: .7rem; color: var(--ink) !important; font-size: 1.1rem; font-weight: 900; }
.status { display: inline-flex; width: fit-content; margin-top: .45rem; padding: .28rem .5rem; background: #f1f1ed; font-size: .72rem; font-weight: 800; }
.price-note { max-width: 62rem; color: var(--muted); font-size: .9rem; }

.request-layout, .form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.request-layout h2, .form-layout h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 5.5rem); line-height: .9; text-transform: uppercase; letter-spacing: -.045em; }
.request-layout p { max-width: 32rem; }
.request-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; padding: clamp(1.2rem, 3vw, 2rem); background: white; border: 1px solid rgba(0,0,0,.2); }
.field { display: grid; gap: .35rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #9f9f9a; background: white; padding: .75rem; }
.field textarea { resize: vertical; }
.field-note, .form-status { margin: 0; color: var(--muted); font-size: .88rem; }
.form-status.is-error { color: #9d1010; }
.form-status { display: grid; gap: .55rem; }
.form-status.is-success { padding: 1rem; color: var(--ink); background: #fff8d7; border-left: 4px solid var(--ink); }
.form-status strong, .form-status span { display: block; }
.form-success-actions { display: flex !important; flex-wrap: wrap; gap: .55rem; margin-top: .25rem; }
.form-success-actions a { display: inline-flex; min-height: 40px; align-items: center; padding: .45rem .7rem; color: var(--ink); background: var(--yellow); border: 1px solid var(--ink); font-size: .72rem; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.form-upload-warning { color: #8a3d00; }
.request-form button[disabled] { cursor: wait; opacity: .68; transform: none; }
.form-trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.consent-row { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: .7rem; cursor: pointer; line-height: 1.4; }
.consent-row input[type="checkbox"] { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin: .08rem 0 0; accent-color: var(--ink); }
.consent-row span { font-size: .92rem; }
.file-drop { grid-column: 1 / -1; display: grid; gap: .7rem; padding: 1.1rem; border: 2px dashed #777; background: #f7f7f4; }
.file-drop strong { text-transform: uppercase; letter-spacing: .06em; }
.file-drop input[type="file"] { width: 100%; padding: .7rem; border: 1px solid #999; background: white; }
.file-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.file-preview li { min-width: 0; padding: .55rem; background: white; border: 1px solid var(--line); font-size: .74rem; overflow-wrap: anywhere; }
.file-preview img { width: 100%; aspect-ratio: 1; margin-bottom: .35rem; object-fit: cover; }
.share-files { display: none; }
.share-files.is-supported { display: inline-flex; }

.product-detail { min-height: 70vh; padding: clamp(2.5rem, 6vw, 6rem) max(1.25rem, calc((100vw - var(--max)) / 2)); }
.breadcrumbs { margin-bottom: 2rem; color: var(--muted); font-size: .85rem; }
.breadcrumbs a { text-underline-offset: 3px; }
.product-detail__grid { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); }
.product-detail__image { align-self: start; margin: 0; background: white; border: 1px solid var(--line); }
.product-detail__image img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product-detail__image img[src$="used-jcb-excavator.jpeg"] { aspect-ratio: 4 / 3; object-fit: cover; }
.product-detail h1 { margin: .5rem 0 1rem; font-size: clamp(2.4rem, 5vw, 5.2rem); line-height: .9; letter-spacing: -.045em; text-transform: uppercase; }
.product-detail__price { margin: 1.5rem 0 .2rem; font-size: 1.55rem; font-weight: 900; }
.spec-table { width: 100%; margin-top: 2rem; border-collapse: collapse; background: white; }
.spec-table th, .spec-table td { padding: .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 42%; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

.service-list { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
.service-row { min-height: 430px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); background: white; border: 1px solid var(--line); }
.service-row:nth-child(even) { grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr); }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media { min-height: 430px; margin: 0; overflow: hidden; background: #f1f1ed; }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; }
.service-row:nth-child(3) .service-row__media { background: white; }
.service-row:nth-child(3) .service-row__media img { padding: clamp(.75rem, 2vw, 1.5rem); object-fit: contain; }
.service-row__body { align-self: center; padding: clamp(2rem, 5vw, 4.5rem); }
.service-row h2 { margin: 0 0 .8rem; font-size: clamp(2rem, 3.4vw, 3.8rem); line-height: .95; text-transform: uppercase; letter-spacing: -.035em; }
.service-row ul { padding-left: 1.15rem; }
.call-first { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 2rem; color: white; background: var(--ink); }
.call-first h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: .95; text-transform: uppercase; }
.call-first p { color: #c9c9c4; }

.legal { max-width: 860px; margin: auto; padding: clamp(3rem, 7vw, 7rem) 1.25rem; }
.legal h1 { font-size: clamp(2.7rem, 6vw, 5rem); line-height: .9; text-transform: uppercase; }
.legal h2 { margin-top: 2.5rem; }
.legal p, .legal li { color: #454541; }

.inner-footer { padding: 3rem max(1.25rem, calc((100vw - var(--max)) / 2)) 6rem; color: white; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-logo { width: 210px; background: white; padding: .4rem; }
.inner-footer h2, .inner-footer h3 { margin-top: 0; }
.inner-footer p, .inner-footer span { color: #b9b9b5; }
.inner-footer a { display: block; width: fit-content; margin: .45rem 0; color: white; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #3c3c3a; font-size: .8rem; }

.mobile-actions { position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; display: none; grid-template-columns: repeat(3, 1fr); background: white; border-top: 1px solid var(--line); }
.mobile-actions a { min-height: 54px; display: grid; place-items: center; text-decoration: none; text-transform: uppercase; font-size: .72rem; font-weight: 900; }
.mobile-actions a:nth-child(2) { background: #20b35a; color: white; }
.mobile-actions a:nth-child(3) { background: var(--yellow); }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .inner-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 1rem 1.25rem; background: white; border-bottom: 1px solid var(--line); }
  .inner-nav.is-open { display: flex; }
  .inner-nav a { padding: .8rem 0; }
  .page-hero, .section-intro, .request-layout, .form-layout, .product-detail__grid { grid-template-columns: 1fr; }
  .page-hero__aside { justify-self: start; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-row, .service-row:nth-child(even) { min-height: 0; grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .service-row__media { min-height: 320px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { padding-bottom: 54px; }
  .inner-header { min-height: 66px; }
  .inner-brand img { width: 150px; height: 40px; }
  .page-hero { min-height: 360px; padding-top: 4.5rem; }
  .product-grid, .request-form, .footer-grid { grid-template-columns: 1fr; }
  .search-panel, .call-first { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .consent-row, .file-drop { grid-column: auto; }
  .file-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-actions { display: grid; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
