:root {
  --yellow: #f9b900;
  --yellow-dark: #d99f00;
  --ink: #171717;
  --ink-2: #242424;
  --muted: #66645f;
  --paper: #ffffff;
  --soft: #f4f4f1;
  --line: #dfded8;
  --max: 1200px;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(14, 14, 13, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; background: var(--yellow); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.topbar { background: var(--ink); color: #fff; font-size: .9rem; }
.topbar__inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__location { color: #d5d3cd; }
.topbar__contacts { display: flex; align-items: center; gap: 22px; }
.topbar a:hover { color: var(--yellow); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(20,20,20,.08); backdrop-filter: blur(12px); }
.site-header__inner { min-height: 116px; display: flex; align-items: center; gap: 32px; }
.brand { flex: 0 0 auto; width: 112px; height: 108px; display: grid; place-items: center; overflow: hidden; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); font-weight: 700; font-size: .93rem; }
.main-nav a { position: relative; padding-block: 12px; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: 5px; left: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 46px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 3px; margin: 5px 0; border-radius: 2px; background: var(--ink); transition: .2s ease; }

.button { min-height: 48px; padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid transparent; border-radius: 8px; font-weight: 800; line-height: 1.15; text-align: center; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 12px 24px rgba(249,185,0,.2); }
.button--yellow:hover { background: #ffc61a; }
.button--dark { background: var(--ink); color: #fff; }
.button--dark:hover { background: #000; }
.button--outline { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(0,0,0,.12); }
.button--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.button--wide { width: 100%; }
.header-call { min-height: 44px; padding: 11px 18px; }

.hero { position: relative; min-height: 650px; display: grid; align-items: center; color: #fff; background: linear-gradient(90deg, rgba(10,10,9,.95) 0%, rgba(10,10,9,.82) 48%, rgba(10,10,9,.46) 100%), url("images/hero-4.jpg") center/cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 75%, rgba(0,0,0,.62)); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); gap: clamp(40px, 7vw, 90px); align-items: center; padding-block: 86px 100px; }
.eyebrow { margin: 0 0 12px; color: var(--yellow-dark); text-transform: uppercase; letter-spacing: .14em; font-weight: 900; font-size: .82rem; }
.hero .eyebrow, .section--dark .eyebrow, .work-steps .eyebrow { color: var(--yellow); }
h1, h2, h3 { margin-top: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-weight: 700; line-height: 1.03; letter-spacing: .02em; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(3rem, 6.2vw, 5.8rem); text-transform: uppercase; }
h2 { margin-bottom: 20px; font-size: clamp(2.2rem, 4vw, 3.7rem); text-transform: uppercase; }
h3 { font-size: 1.55rem; }
.hero__lead { max-width: 720px; margin: 0 0 22px; color: #eeeeea; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.hero__list { margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 22px; list-style: none; }
.hero__list li { position: relative; padding-left: 20px; font-weight: 700; }
.hero__list li::before { content: ""; position: absolute; top: .58em; left: 0; width: 9px; height: 9px; background: var(--yellow); transform: rotate(45deg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card { padding: 34px; color: var(--ink); background: rgba(255,255,255,.96); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card__label { margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .8rem; }
.hero-card h2 { margin-bottom: 12px; font-size: 2.2rem; }
.hero-card p { margin: 0 0 18px; color: var(--muted); }
.hero-card__phone { display: block; margin: 0 0 24px; font-weight: 900; font-size: 1.25rem; }
.hero-card__phone:hover { color: var(--yellow-dark); }
.hero__stripe { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; height: 18px; background: repeating-linear-gradient(135deg, var(--yellow) 0 20px, var(--ink) 20px 40px); }

.section { padding-block: 104px; }
.section--light { background: var(--soft); }
.section--dark { color: #fff; background: var(--ink); }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading--split { max-width: none; display: grid; grid-template-columns: 1.15fr .65fr; gap: 60px; align-items: end; }
.section-heading--split p:last-child { margin: 0; color: var(--muted); }
.section-heading--light { color: #fff; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter { min-height: 44px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 750; cursor: pointer; transition: .2s ease; }
.filter:hover, .filter.is-active { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.fleet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.machine-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid rgba(20,20,20,.08); border-radius: var(--radius); box-shadow: 0 9px 26px rgba(20,20,20,.05); transition: transform .25s ease, box-shadow .25s ease; }
.machine-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.machine-card[hidden] { display: none; }
.machine-card__media { height: 236px; overflow: hidden; background: #ecece8; }
.machine-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.machine-card:hover .machine-card__media img { transform: scale(1.03); }
.machine-card__media--graphic { display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 50% 45%, #fff 0 22%, #efeee9 80%); }
.machine-card__media--graphic::before { content: ""; position: absolute; }
.machine-card__media--graphic img { width: 88%; height: 88%; object-fit: contain; filter: contrast(1.05); }
.machine-card__body { padding: 24px; }
.machine-card__type { display: block; margin-bottom: 10px; color: #8b6800; font-size: .82rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.machine-card h3 { min-height: 50px; margin-bottom: 12px; font-family: inherit; font-size: 1.3rem; line-height: 1.18; letter-spacing: 0; }
.machine-card p { min-height: 52px; margin: 0 0 22px; color: var(--muted); }
.machine-card__order { width: 100%; min-height: 46px; border: 2px solid var(--ink); border-radius: 7px; background: transparent; font-weight: 850; cursor: pointer; transition: .2s ease; }
.machine-card__order:hover, .machine-card__order:focus-visible { background: var(--ink); color: #fff; }
.empty-state { padding: 30px; text-align: center; color: var(--muted); }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { position: relative; min-height: 265px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-card::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border: 22px solid var(--yellow); border-radius: 50%; opacity: .14; }
.service-card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 38px; border-radius: 8px; background: var(--yellow); font-weight: 950; }
.service-card h3 { margin-bottom: 12px; font-family: inherit; font-size: 1.25rem; line-height: 1.2; letter-spacing: 0; }
.service-card p { margin: 0; color: var(--muted); }
.service-card--photo { color: #fff; background: linear-gradient(180deg, rgba(12,12,11,.18), rgba(12,12,11,.9)), url("images/hero-3.jpg") center/cover no-repeat; border-color: #373632; }
.service-card--photo::after { opacity: .3; }
.service-card--photo p { color: #f2f1ed; }
.service-card--transport { background-image: linear-gradient(180deg, rgba(12,12,11,.18), rgba(12,12,11,.9)), url("images/dlinomer-color.jpg"); }
.service-card--height { background-image: linear-gradient(180deg, rgba(12,12,11,.18), rgba(12,12,11,.9)), url("images/zil-131-telescope.png"); }

.advantages-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
.advantages-layout__lead { max-width: 460px; margin: 0 0 28px; color: #c8c6c0; font-size: 1.08rem; }
.advantages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #3a3a37; border: 1px solid #3a3a37; }
.advantages-grid article { min-height: 180px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink-2); }
.advantages-grid strong { margin-bottom: 10px; color: var(--yellow); font-size: 1.25rem; }
.advantages-grid span { color: #d5d3cd; }

.about-layout { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(44px, 7vw, 88px); align-items: center; }
.about-media { position: relative; }
.about-media > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media__badge { position: absolute; right: -22px; bottom: -24px; width: 150px; height: 150px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--yellow); border: 8px solid #fff; border-radius: 50%; text-align: center; }
.about-media__badge strong { font-family: Impact, sans-serif; font-size: 2.8rem; line-height: 1; }
.about-media__badge span { font-weight: 800; }
.about-copy > p:not(.eyebrow) { color: var(--muted); }
.company-data { margin: 28px 0 0; border-top: 1px solid var(--line); }
.company-data div { padding: 13px 0; display: grid; grid-template-columns: 120px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.company-data dt { color: var(--muted); }
.company-data dd { margin: 0; font-weight: 750; }

.work-steps { padding-block: 92px; color: #fff; background: #262626; }
.steps-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: steps; list-style: none; }
.steps-grid li { min-height: 210px; padding: 28px; border-left: 1px solid #494945; }
.steps-grid li:last-child { border-right: 1px solid #494945; }
.steps-grid span { display: inline-block; margin-bottom: 42px; color: var(--yellow); font-weight: 950; font-size: 1.05rem; }
.steps-grid h3 { margin-bottom: 10px; font-family: inherit; font-size: 1.2rem; line-height: 1.2; letter-spacing: 0; }
.steps-grid p { margin: 0; color: #c9c7c0; }

.contact-section { background: var(--yellow); }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(45px, 8vw, 100px); align-items: center; }
.contact-section .eyebrow { color: #5f4700; }
.contact-copy > p:not(.eyebrow) { max-width: 560px; }
.contact-list { margin-top: 30px; display: grid; gap: 12px; }
.contact-list a { padding: 14px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(20,20,20,.24); }
.contact-list span { color: #5f4b12; }
.contact-list strong { font-size: 1.08rem; }
.contact-list a:hover strong { text-decoration: underline; }
.quote-form { padding: clamp(28px, 4vw, 46px); display: grid; gap: 17px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.quote-form h3 { margin-bottom: 2px; font-size: 2rem; }
.quote-form label { display: grid; gap: 7px; font-weight: 750; font-size: .92rem; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: #fafaf8; border: 1px solid #d8d7d2; border-radius: 7px; outline: none; }
.quote-form textarea { min-height: 94px; resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--yellow-dark); box-shadow: 0 0 0 3px rgba(249,185,0,.18); }
.quote-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #333 50%), linear-gradient(135deg, #333 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.form-note { margin: -2px 0 0; color: var(--muted); font-size: .85rem; }

.site-footer { padding-block: 34px; color: #d2d0ca; background: #111; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-footer p { margin: 0; font-size: .9rem; }
.brand--footer { width: 95px; height: 58px; background: #fff; border-radius: 6px; }
.mobile-actions { display: none; }

@media (max-width: 1020px) {
  .header-call { display: none; }
  .main-nav { gap: 18px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .about-media { max-width: 700px; }
  .contact-copy { max-width: 720px; }
}

@media (max-width: 800px) {
  body { padding-bottom: 64px; }
  .topbar__location { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__contacts { width: 100%; justify-content: space-between; gap: 12px; }
  .topbar__contacts a:first-child { display: none; }
  .site-header__inner { min-height: 92px; }
  .brand { width: 88px; height: 86px; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; padding: 18px 20px 24px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0,0,0,.12); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid #ecebe7; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero { min-height: auto; background-position: 60% center; }
  .hero__grid { padding-block: 70px 92px; }
  .section { padding-block: 78px; }
  .section-heading--split { grid-template-columns: 1fr; gap: 18px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid li:nth-child(2) { border-right: 1px solid #494945; }
  .site-footer__inner { flex-direction: column; text-align: center; }
  .mobile-actions { position: fixed; right: 0; bottom: 0; left: 0; z-index: 80; height: 64px; display: grid; grid-template-columns: 1fr 1fr; background: #111; border-top: 1px solid #333; }
  .mobile-actions a { display: grid; place-items: center; color: #fff; font-weight: 900; }
  .mobile-actions a:last-child { color: var(--ink); background: var(--yellow); }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .topbar { font-size: .78rem; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero__actions { display: grid; }
  .hero__actions .button { width: 100%; }
  .hero-card { padding: 26px; }
  .filters { flex-wrap: nowrap; margin-right: -14px; padding-right: 14px; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .fleet-grid, .services-grid, .advantages-grid, .steps-grid { grid-template-columns: 1fr; }
  .machine-card__media { height: 226px; }
  .advantages-grid article { min-height: 150px; }
  .about-media__badge { right: 8px; bottom: -45px; width: 126px; height: 126px; }
  .about-copy { margin-top: 30px; }
  .company-data div { grid-template-columns: 1fr; gap: 2px; }
  .steps-grid li, .steps-grid li:nth-child(2), .steps-grid li:last-child { border: 0; border-top: 1px solid #494945; }
  .contact-list a { flex-direction: column; }
  .quote-form { margin-inline: -2px; padding: 24px 20px; }
}

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