.machines { --machine-accent: #e73462; --machine-soft: color-mix(in srgb, var(--machine-accent) 7%, white); background: #fafafa; padding: 76px 28px 80px; }
.machines__inner { max-width: 1200px; margin-inline: auto; }
.machines__heading { margin-bottom: 36px; }
.machines__nav { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #dedede; background: #fff; }
.machines__nav a { color: #444; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 21px 16px; font-weight: 700; font-size: 14px; border-bottom: 3px solid transparent; transition: background .2s; }
.machines__nav a + a { border-left: 1px solid #e5e5e5; }
.machines__nav a:hover, .machines__nav a:focus-visible { border-bottom-color: var(--machine-accent); }
.machines__nav a:hover { background: var(--machine-soft); }
.machines__nav a::after { content: '↓'; color: #888; margin-left: auto; }
.machines__guide { margin: 17px 0 40px; font-size: 11px; color: #757575; }
.machines__group { scroll-margin-top: 110px; }
.machines__group + .machines__group { margin-top: 55px; }
.machines__group-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 17px; border-bottom: 1px solid #d6d6d6; margin-bottom: 22px; }
.machines__group h4 { margin: 0; font-size: 20px; }
.machines__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.machines__card { background: #fff; border: 1px solid #e4e4e4; display: grid; grid-template-columns: 45% 55%; min-height: 152px; overflow: hidden; }
.machines__photo { display: flex; align-items: center; justify-content: center; position: relative; border: 0; border-right: 1px solid #eee; background: #f0f0f1; padding: 0; min-width: 0; cursor: zoom-in; }
.machines__photo img { display: block; width: 100%; height: 100%; max-height: 180px; object-fit: contain; mix-blend-mode: multiply; }
.machines__zoom { position: absolute; right: 7px; bottom: 7px; width: 23px; height: 23px; display: grid; place-items: center; background: #fff; border: 1px solid #ddd; border-radius: 50%; font: 18px Arial, sans-serif; color: #555; }
.machines__photo:hover .machines__zoom { color: var(--machine-accent); border-color: var(--machine-accent); }
.machines__photo--missing { cursor: default; background: #f3f3f3; flex-direction: column; gap: 8px; color: #888; }
.machines__photo--missing span:first-child { font: 10px Arial, sans-serif; letter-spacing: .1em; }
.machines__photo--missing span:last-child { font-size: 11px; }
.machines__info { padding: 18px 14px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; }
.machines__info h5 { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
.machines__spec { color: #666; font-size: 12px; margin: 5px 0 0; }
.machines__target { color: #444; font-size: 12px; font-weight: 700; line-height: 1.6; margin: 7px 0 0; overflow-wrap: anywhere; }
.machines__effect { color: #666; font-size: 12px; line-height: 1.6; margin: 4px 0 0; overflow-wrap: anywhere; }
.machines__quantity { color: #fff; background: var(--machine-accent); border: 1px solid var(--machine-accent); border-radius: 3px; padding: 3px 9px; font-size: 11px; font-weight: 700; margin-top: 10px; white-space: nowrap; }
.machines__dialog { width: min(860px, calc(100% - 32px)); max-height: 90dvh; margin: auto; padding: 0; border: 0; background: #fff; box-shadow: 0 20px 90px #0003; }
.machines__dialog::backdrop { background: #161616bb; }
.machines__close { position: absolute; right: 12px; top: 12px; width: 42px; height: 42px; border: 1px solid #ddd; border-radius: 50%; background: #fff; cursor: pointer; font-size: 27px; z-index: 1; }
.machines__large-photo { display: block; width: 100%; height: min(65dvh, 600px); object-fit: contain; background: #f5f5f5; }
.machines__caption { padding: 23px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.machines__caption h2 { margin: 0; font-size: 18px; }
.machines__caption span { font-size: 13px; white-space: nowrap; }
.machines a:focus-visible, .machines button:focus-visible { outline: 3px solid var(--machine-accent); outline-offset: 3px; }
@media (max-width: 1050px) { .machines__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .machines { padding: 42px 20px 48px; }
  .machines__heading { margin-bottom: 25px; }
  .machines__nav a { font-size: 11px; padding: 16px 6px; text-align: center; }
  .machines__nav a::after { display: none; }
  .machines__guide { font-size: 10px; margin: 13px 0 29px; }
  .machines__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .machines__card { min-height: 134px; grid-template-columns: 43% 57%; }
  .machines__photo img { max-height: 150px; }
  .machines__info { padding: 15px; }
  .machines__group-heading { gap: 10px; margin-bottom: 17px; padding-bottom: 13px; }
  .machines__group h4 { font-size: 18px; }
  .machines__group + .machines__group { margin-top: 38px; }
  .machines__caption { padding: 20px; }
  .machines__caption h2 { font-size: 15px; }
}

.machines *, .machines *::before, .machines *::after { box-sizing: border-box; }
.machines button { font: inherit; }
.machines__photo { text-decoration: none !important; }
.machines__dialog:not([open]) { display: none; }
