/* ============================================================
   ООО «ПКП» — современная версия primkp.ru
   Палитра: асфальт / сталь / бетон / сигнальный жёлтый (JCB)
   ============================================================ */

:root {
  --asphalt: #16191d;
  --steel: #232930;
  --steel-2: #2d343c;
  --paper: #eef0ee;
  --card: #ffffff;
  --ink: #1b1e22;
  --ink-soft: #4c545c;
  --line: #d9dcd7;
  --jcb: #f7a600;
  --jcb-dark: #d98e00;
  --ok: #2e7d32;
  --err: #c62828;

  --font-display: "Russo One", "Arial Black", sans-serif;
  --font-body: "PT Sans", "Segoe UI", Arial, sans-serif;

  --radius: 6px;
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: inherit; }

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

/* ---------- сигнальная полоса (фирменный элемент) ---------- */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--jcb) 0 16px,
    var(--asphalt) 16px 32px
  );
}

/* ---------- шапка ---------- */
.header {
  background: var(--asphalt);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--asphalt);
  background: var(--jcb);
  padding: 9px 10px 7px;
  border-radius: var(--radius);
  line-height: 1;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .5px;
}

.brand__tagline {
  display: block;
  font-size: 12.5px;
  color: #aeb6bd;
  letter-spacing: .3px;
}

.nav__list {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item { position: relative; }

.nav__link {
  display: block;
  padding: 10px 13px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
  color: #e8eaec;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}

.nav__link:hover { background: var(--steel-2); }

.nav__link.is-active {
  color: var(--asphalt);
  background: var(--jcb);
}

.nav__sub {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--steel);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}

.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sublink {
  display: block;
  padding: 10px 12px;
  font-size: 14.5px;
  color: #e8eaec;
  text-decoration: none;
  border-radius: 4px;
}
.nav__sublink:hover { background: var(--steel-2); color: var(--jcb); }

.header__phone {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--jcb);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: #ffc23d; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  width: 26px;
  height: 3px;
  background: var(--jcb);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- герой со слайдером ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(247, 166, 0, .16), transparent 60%),
    linear-gradient(180deg, var(--steel) 0%, var(--asphalt) 100%);
  color: #fff;
  padding: 56px 0 40px;
  overflow: hidden;
}

.slider { position: relative; }

.slider__track {
  position: relative;
  min-height: 340px;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s;
}
.slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.slide__content > * {
  opacity: 0;
  transform: translateY(18px);
}
.slide.is-active .slide__content > * {
  animation: slide-up .55s cubic-bezier(.2, .7, .3, 1) forwards;
}
.slide.is-active .slide__content > :nth-child(1) { animation-delay: .05s; }
.slide.is-active .slide__content > :nth-child(2) { animation-delay: .15s; }
.slide.is-active .slide__content > :nth-child(3) { animation-delay: .25s; }
.slide.is-active .slide__content > :nth-child(4) { animation-delay: .35s; }

@keyframes slide-up {
  to { opacity: 1; transform: none; }
}

.slide__eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--jcb);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.slide__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.12;
  margin: 0 0 16px;
}
.slide__title a { color: #fff; text-decoration: none; transition: color .15s; }
.slide__title a:hover { color: var(--jcb); }

.slide__text {
  max-width: 56ch;
  color: #c4cad0;
  margin: 0 0 26px;
  font-size: 17.5px;
}

/* фото слайда: скошенный край + лёгкий Ken Burns */
.slide__media {
  position: relative;
  height: 340px;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel-2);
}
.slide__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 7px;
  background: repeating-linear-gradient(-45deg, var(--jcb) 0 14px, var(--asphalt) 14px 28px);
}
.slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.slide.is-active .slide__media img {
  animation: kenburns 7s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}
.slide__media.is-broken { display: none; }

.slider__controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.slider__arrow {
  background: none;
  border: 2px solid var(--steel-2);
  color: #e8eaec;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
  transition: border-color .15s, color .15s, transform .15s;
}
.slider__arrow:hover { border-color: var(--jcb); color: var(--jcb); transform: scale(1.08); }

.slider__dots { display: flex; gap: 10px; }

/* точки-прогрессбары: заполняются за время показа слайда */
.slider__dot {
  position: relative;
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 3px;
  background: var(--steel-2);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}
.slider__dot-fill {
  position: absolute;
  inset: 0;
  background: var(--jcb);
  transform: scaleX(0);
  transform-origin: left;
}
.slider__dot.is-active .slider__dot-fill {
  animation: dot-progress var(--slide-interval, 6000ms) linear forwards;
}
@keyframes dot-progress {
  to { transform: scaleX(1); }
}
.slider.is-paused .slider__dot.is-active .slider__dot-fill {
  animation-play-state: paused;
}

/* ---------- бегущая строка услуг ---------- */
.marquee {
  background: var(--jcb);
  border-top: 3px solid var(--asphalt);
  border-bottom: 3px solid var(--asphalt);
  overflow: hidden;
}
.marquee__inner {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__inner { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee__row {
  display: flex;
  align-items: center;
  padding: 11px 0;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--asphalt);
  text-decoration: none;
  white-space: nowrap;
  padding: 0 18px;
}
.marquee__item:hover { text-decoration: underline; }
.marquee__sep { color: var(--asphalt); opacity: .55; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 14.5px;
  letter-spacing: .6px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.btn--accent {
  background: var(--jcb);
  color: var(--asphalt);
}
.btn--accent:hover { background: #ffbd33; }

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--jcb-dark); color: var(--jcb-dark); }

.hero .btn--ghost { border-color: #fff; color: #fff; }

/* ---------- секции ---------- */
.section { padding: 56px 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 34px 0 16px;
}
.section-title:first-child { margin-top: 0; }

.page-head {
  background: var(--asphalt);
  color: #fff;
  padding: 44px 0 36px;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 0;
  line-height: 1.15;
}

.page-title--with-icon {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title__icon svg {
  width: 52px;
  height: 52px;
  color: var(--jcb);
}

.page-sub {
  margin: 12px 0 0;
  color: #b6bdc4;
  font-size: 17px;
  max-width: 70ch;
}

.breadcrumbs {
  margin: 0 0 14px;
  font-size: 14px;
  color: #9aa2aa;
}
.breadcrumbs a { color: #c4cad0; text-decoration: none; }
.breadcrumbs a:hover { color: var(--jcb); }

/* ---------- преимущества на главной ---------- */
.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.advantage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  position: relative;
  overflow: hidden;
}
.advantage::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--jcb);
}

.advantage__num {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--jcb-dark);
  margin: 0;
  line-height: 1;
}

.advantage__title {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 8px 0 10px;
}

.advantage__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.home-cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #c8ccc5;
  box-shadow: 0 12px 26px rgba(22, 25, 29, .10);
}

/* карточка услуги */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
}

.service-card__media {
  display: block;
  height: 190px;
  background: var(--asphalt);
  overflow: hidden;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card.is-broken .service-card__media img { display: none; }

/* бейдж-иконка висит на границе фото и текста (наполовину на каждом) */
.service-card__icon {
  position: absolute;
  left: 16px;
  top: 164px; /* высота фото 190px минус половина бейджа */
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--asphalt);
  border: 3px solid var(--jcb);
  border-radius: var(--radius);
  color: var(--jcb);
  z-index: 1;
}
.service-card__icon svg { width: 30px; height: 30px; }

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 36px 22px 20px;
}


.card__title {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}

.card__text {
  display: block;
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 10px;
}

.card__more {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--jcb-dark);
  margin-top: auto;
}
.service-card:hover .card__more { text-decoration: underline; }

/* карточка техники */
.machine {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.machine__media {
  position: relative;
  height: 200px;
  background: linear-gradient(160deg, var(--steel) 0%, var(--asphalt) 100%);
  overflow: hidden;
}
.machine__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.machine:hover .machine__media img { transform: scale(1.07); }
.machine__media.is-broken img { display: none; }

.machine__fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--jcb);
}
.machine__fallback svg { width: 64px; height: 64px; }
.machine__media.is-broken .machine__fallback { display: grid; }

.machine__body { padding: 18px 20px 4px; flex: 1 1 auto; }

.machine__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.machine__specs {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 15px;
}
.machine__specs li { margin: 4px 0; }
.machine__specs li::marker { color: var(--jcb-dark); }

/* «номерная табличка» с ценой — фирменный приём */
.machine__plate {
  margin-top: auto;
  border-top: 4px solid;
  border-image: repeating-linear-gradient(-45deg, var(--jcb) 0 10px, var(--asphalt) 10px 20px) 4;
  background: #f7f8f6;
  padding: 12px 20px;
}
.machine__plate span {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .4px;
}

/* ---------- полоса заказа ---------- */
.order-strip {
  background: var(--asphalt);
  color: #e8eaec;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 30px;
  border-left: 6px solid var(--jcb);
}
.order-strip p { margin: 0; }
.order-strip--cta { margin: 36px 0 0; }
.order-strip a { color: var(--jcb); }

.order-strip__phone {
  font-family: var(--font-display);
  text-decoration: none;
  white-space: nowrap;
}
.order-strip__phone:hover { color: #ffc23d; }

/* ---------- текстовые страницы ---------- */
.prose p { margin: 0 0 14px; }
.muted { color: var(--ink-soft); font-size: 15px; }

.table-wrap { overflow-x: auto; }

.requisites {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15.5px;
}
.requisites th,
.requisites td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.requisites tr:last-child th,
.requisites tr:last-child td { border-bottom: 0; }
.requisites th {
  width: 38%;
  background: #f7f8f6;
  font-weight: 700;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.checklist li {
  position: relative;
  padding: 9px 0 9px 34px;
  border-bottom: 1px dashed var(--line);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--jcb-dark);
  border-bottom: 3px solid var(--jcb-dark);
  transform: rotate(-45deg);
}

/* ---------- контакты и форма ---------- */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
}

.contact__phone,
.contact__link {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  margin: 6px 0;
}
.contact__phone:hover,
.contact__link:hover { color: var(--jcb-dark); }

.contact__address { margin: 0 0 18px; color: var(--ink-soft); }

.form { display: flex; flex-direction: column; }

.form__label {
  font-weight: 700;
  font-size: 14.5px;
  margin: 14px 0 6px;
}
.form__label:first-of-type { margin-top: 0; }

.form__input {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form__input:focus {
  outline: none;
  border-color: var(--jcb);
  box-shadow: 0 0 0 3px rgba(247, 166, 0, .25);
}
.form__input--area { resize: vertical; }

.form .btn { margin-top: 20px; align-self: flex-start; }

.notice {
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 18px;
  font-weight: 700;
}
.notice--ok { background: #e6f3e6; color: var(--ok); border: 1px solid #bcdcbc; }
.notice--error { background: #fbe9e9; color: var(--err); border: 1px solid #efc4c4; }

/* ---------- подвал ---------- */
.footer {
  background: var(--asphalt);
  color: #c4cad0;
  margin-top: 24px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 30px;
  padding: 40px 20px 26px;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  margin: 0 0 8px;
}

.footer__label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--jcb);
  margin: 0 0 8px;
}

.footer__phone,
.footer__link {
  display: block;
  color: #e8eaec;
  text-decoration: none;
  margin: 4px 0;
}
.footer__phone:hover,
.footer__link:hover { color: var(--jcb); }

.footer__muted { font-size: 14.5px; margin: 8px 0 0; }

.footer__copy {
  border-top: 1px solid var(--steel-2);
  padding-top: 16px;
  padding-bottom: 18px;
  font-size: 14px;
}
.footer__copy p { margin: 0; }


/* ---------- появление при прокрутке ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .3, 1) var(--d, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.no-observer .reveal { opacity: 1; transform: none; }

/* ---------- фото на странице услуги ---------- */
.service-photo {
  margin: 0 0 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 6px solid;
  border-image: repeating-linear-gradient(-45deg, var(--jcb) 0 12px, var(--asphalt) 12px 24px) 6;
}
.service-photo img { width: 100%; max-height: 420px; object-fit: cover; }
.service-photo.is-broken { display: none; }

/* ---------- лицензия ---------- */
.license {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--jcb);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 30px;
}

.license__stamp {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  background: var(--asphalt);
  border-radius: 50%;
  color: var(--jcb);
}
.license__stamp svg { width: 48px; height: 48px; }

.license__number {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 4px 0 6px;
  letter-spacing: .5px;
}

.license__scope {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 16px;
}

.license__meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px 34px;
  margin: 0 0 22px;
}
.license__meta dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.license__meta dd {
  margin: 0;
  font-weight: 700;
}



/* ---------- партнёры ---------- */
.section--partners {
  background: #fff;
  border-top: 1px solid var(--line);
}

.section-title--center {
  text-align: center;
  font-size: 24px;
  margin-bottom: 30px;
}
.section-title--center::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin: 14px auto 0;
  background: repeating-linear-gradient(-45deg, var(--jcb) 0 10px, var(--asphalt) 10px 20px);
  border-radius: 3px;
}

.partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
}

.partner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.partner:hover {
  transform: translateY(-3px);
  border-color: #c8ccc5;
  box-shadow: 0 12px 26px rgba(22, 25, 29, .10);
}

/* лого-плашка: настоящий логотип или типографская монограмма */
.partner__logo {
  flex: 0 0 auto;
  min-width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--jcb);
  background: var(--asphalt);
  border-radius: var(--radius);
  border-bottom: 4px solid var(--jcb);
  filter: grayscale(1);
  opacity: .85;
  transition: filter .25s, opacity .25s;
}
.partner:hover .partner__logo {
  filter: none;
  opacity: 1;
}

.partner__logo--img {
  position: relative;
  width: 150px;
  padding: 0;
  overflow: hidden; /* логотип не может вылезти за плашку */
}

.partner__logo--img img {
  display: block;
  /* фиксированные пиксели: проценты внутри grid-строки с auto-высотой
     не работают (высота "100%" тихо превращается в auto, картинка
     раздувается до натуральной и обрезается overflow'ом плашки) */
  width: 122px;   /* 150 минус поля по бокам */
  height: 44px;   /* 64 минус поля сверху/снизу */
  object-fit: contain;
}

/* Обесцвечивание без CSS-фильтров: в покое показывается заранее
   перекрашенная серая версия логотипа, при наведении она плавно
   растворяется, открывая цветную. Прозрачность не растеризует SVG
   и не трогает сглаживание — края всегда чёткие. */
.partner__img-gray {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity .25s;
}
.partner__logo--has-gray .partner__img-color { opacity: 0; transition: opacity .25s; }
.partner:hover .partner__img-gray { opacity: 0; }
.partner:hover .partner__logo--has-gray .partner__img-color { opacity: 1; }

/* логотип без серой версии просто приглушён прозрачностью */
.partner__logo--img:not(.partner__logo--has-gray) .partner__img-color {
  opacity: .55;
  transition: opacity .25s;
}
.partner:hover .partner__logo--img:not(.partner__logo--has-gray) .partner__img-color {
  opacity: 1;
}

/* на сенсорных экранах наведения нет — сразу цвет */
@media (hover: none) {
  .partner__img-gray { display: none; }
  .partner__logo--has-gray .partner__img-color { opacity: 1; }
  .partner__logo--img:not(.partner__logo--has-gray) .partner__img-color { opacity: 1; }
}
/* монограмма-запаска показывается, только если логотип не загрузился */
.partner__logo--img .partner__mono { display: none; }
.partner__logo--img.is-broken img { display: none; }
.partner__logo--img.is-broken .partner__mono { display: block; }
.partner__logo--img.is-broken { width: 64px; padding: 0; }

.partner__name {
  display: block;
  font-family: var(--font-display);
  font-size: 16.5px;
  color: var(--ink);
  margin-bottom: 7px;
  line-height: 1.3;
}

.partner__text {
  display: block;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 9px;
}

.partner__more {
  font-weight: 700;
  font-size: 14px;
  color: var(--jcb-dark);
}
.partner:hover .partner__more { text-decoration: underline; }

/* ---------- карта проезда ---------- */
.map {
  margin-top: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 5px solid;
  border-image: repeating-linear-gradient(-45deg, var(--jcb) 0 12px, var(--asphalt) 12px 24px) 5;
}
.map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

/* ---------- доступность и движение ---------- */
:focus-visible {
  outline: 3px solid var(--jcb);
  outline-offset: 2px;
}

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

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .grid--machines { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .header__phone { display: none; }
  .slide__media { height: 280px; }
}

@media (max-width: 760px) {
  .burger { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--steel);
    border-bottom: 4px solid var(--jcb);
    display: none;
  }
  .nav.is-open { display: block; }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 10px 14px 16px;
  }

  .nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding-left: 16px;
  }

  .slide { grid-template-columns: 1fr; gap: 22px; }
  .slide__media { height: 220px; clip-path: none; order: -1; }
  .slider__track { min-height: 560px; }
  .license { flex-direction: column; }
  .license__meta { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr; }
  .grid--machines,
  .grid--services { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .partner { flex-direction: column; }
  .partner__logo--img { width: 170px; }
  .partner__logo--img img { width: 142px; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 32px; }
}
