:root { --ink: #17212a; --muted: #4d5a62; --green: #287240; --line: #dfe4e7; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #ed631f; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1450px, calc(100% - 64px)); margin-inline: auto; }
.top { background: #f4f7f8; }
.topin { min-height: 88px; padding: 14px 0; display: flex; align-items: center; gap: 28px; }
.brand { flex: 1 1 0; min-width: 0; }
.logo { width: 100%; aspect-ratio: 4.3 / 1; object-fit: cover; object-position: center 80%; }
.contacts { display: flex; flex: 0 1 620px; max-width: 48%; gap: 16px 28px; flex-wrap: wrap; font-size: 15px; }
.contacts a:hover, .foot a:hover { text-decoration: underline; }
.nav { background: linear-gradient(#25313b, #15212c); color: white; }
.navin { min-height: 67px; display: flex; align-items: stretch; }
.links { display: flex; flex: 1; }
.links a { display: flex; align-items: center; padding: 0 38px; font-weight: 700; }
.links a:hover { background: #2d3d49; }
.links a[aria-current] { background: linear-gradient(135deg, #48a951, #2d8438); }
.shop, .button { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ff691d, #ed430f); color: white; padding: 15px 24px; border-radius: 7px; font-weight: 700; min-height: 48px; }
.shop { align-self: center; margin-left: 20px; font-size: 24px; padding: 17px 45px; white-space: nowrap; }
.lang { display: flex; align-items: center; padding-left: 35px; font-weight: 700; }
.button:hover, .shop:hover { filter: brightness(.94); }
.button.secondary { color: var(--ink); background: white; border: 1px solid var(--line); }
.intro { background: linear-gradient(125deg, #eef2eb, #f5f7f8); border-bottom: 1px solid var(--line); }
.intro-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; padding-block: 48px; }
.intro img { width: 100%; height: 300px; object-fit: cover; border-radius: 12px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .13em; margin: 0 0 14px; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; }
h1 { font-size: clamp(32px, 3.3vw, 52px); line-height: 1.1; margin: 0 0 20px; }
h2 { font-size: clamp(26px, 2.4vw, 36px); margin: 0 0 16px; }
h3 { font-size: 21px; margin: 0 0 12px; }
p { line-height: 1.65; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.section-nav { display: flex; gap: 12px; padding-block: 24px; flex-wrap: wrap; }
.section-nav a { padding: 14px 22px; border: 1px solid var(--line); border-radius: 7px; font-weight: 700; }
.section-nav a:hover { background: #eef4ef; border-color: var(--green); }
.section { padding-block: 42px; scroll-margin-top: 20px; }
.machinery { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.machinery > img { width: 100%; height: 300px; object-fit: cover; border-radius: 12px; }
.machinery-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.machinery-photos img { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 10px; }
.machinery p:not(.eyebrow), .section-description { color: var(--muted); max-width: 850px; }
.parts-section { background: #f4f7f5; scroll-margin-top: 20px; }
.documents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.document { display: flex; flex-direction: column; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.document p { margin-top: 0; color: var(--muted); }
.badge { align-self: flex-start; font-size: 12px; background: #eaf2eb; color: var(--green); font-weight: 700; padding: 7px 10px; border-radius: 4px; margin-bottom: 20px; }
.text-link { color: var(--green); font-size: 14px; font-weight: 700; margin-top: auto; }
.document:hover, .product:hover { border-color: var(--green); box-shadow: 0 6px 18px #17212a0d; }
.notice { border-left: 3px solid var(--green); padding: 10px 16px; color: var(--muted); margin-bottom: 0; }
.notice a { font-weight: 700; text-decoration: underline; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; transition: border-color .2s, box-shadow .2s; }
.product img { width: 100%; height: 200px; object-fit: contain; padding: 20px; background: white; }
.product > div { flex: 1; display: flex; flex-direction: column; padding: 20px; border-top: 1px solid #edf0f2; background: #f8faf9; }
.product h3 { font-size: 19px; line-height: 1.4; margin-bottom: 20px; }
.help { display: flex; gap: 30px; align-items: center; justify-content: space-between; background: #edf3ee; padding: 32px; border-radius: 12px; margin-block: 12px 48px; }
.help h2 { font-size: 28px; }
.help p { margin-bottom: 0; }
.help .actions { margin-top: 0; }
footer { background: #18232d; color: #dfe4e7; padding: 22px 0; }
.foot { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
@media (max-width: 1100px) {
  .links a { padding-inline: 18px; }
  .shop { padding-inline: 22px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-inner, .machinery { gap: 28px; }
  .help { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1000px) { .contacts { display: none; } }
@media (max-width: 760px) {
  .intro-inner, .machinery { grid-template-columns: 1fr; }
  .documents { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navin { display: block; padding-bottom: 8px; }
  .links { flex-wrap: wrap; }
  .links a { flex: 1 1 auto; justify-content: center; min-height: 46px; padding-inline: 14px; white-space: nowrap; }
  .shop { display: flex; margin: 8px 0 0; }
  .lang { display: none; }
  .section { padding-block: 30px; }
  .intro img, .machinery > img { height: 240px; }
  .machinery-photos img { height: 130px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 24px); }
  .product-grid { grid-template-columns: 1fr; }
  .foot { flex-direction: column; }
  .help { padding: 22px; }
  .intro-inner { padding-block: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .product { transition: none; } }

/* Editable catalog and public product details. */
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 10; padding: 14px 20px; background: white; color: var(--ink); border-radius: 7px; }
.skip-link:focus { top: 12px; }
.card-price { font-weight: 700; color: var(--green); margin: 0 0 8px; }
.price-note { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.product .text-link { padding-top: 12px; }
.product h3, .document, .detail-content, .breadcrumbs { overflow-wrap: anywhere; }
.empty-state { padding: 24px; border: 1px dashed #aabbb0; border-radius: 12px; background: #f8faf9; color: var(--muted); }
.empty-state a { color: var(--green); text-decoration: underline; }
.foot { flex-wrap: wrap; align-items: center; }
.admin-link { color: #bdc9c2; font-size: 12px; }
.status-panel { min-height: 50vh; padding-block: 70px; }
.detail-background { background: linear-gradient(135deg, #f0f4ef, #f8fafb); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.breadcrumbs a:hover { color: var(--green); text-decoration: underline; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.detail-photo { margin: 0; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 36px #17212a08; }
.detail-photo img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: contain; }
.detail-content { min-width: 0; padding-block: 12px; }
.detail-content h1 { font-size: clamp(30px, 3vw, 46px); }
.detail-price-panel { border-block: 1px solid #d8e2d9; padding-block: 20px; margin-block: 24px; }
.detail-price { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; color: var(--green); }
.detail-price-panel .price-note { margin: 8px 0 0; }
.detail-description h2, .detail-contact h2 { font-size: 24px; }
.detail-description p { color: var(--muted); margin-bottom: 28px; }
.detail-contact { padding: 24px; border: 1px solid #d8e2d9; border-radius: 12px; background: #eaf1eb; }
.detail-contact p { color: var(--muted); margin-bottom: 0; }
.detail-contact .button { text-align: center; }
.back-link { display: inline-flex; padding-block: 20px; margin-top: 16px; font-weight: 700; color: var(--green); }
.back-link:hover { text-decoration: underline; }
@media (max-width: 1100px) { .product-detail { gap: 28px; } }
@media (max-width: 760px) {
  .product-detail { grid-template-columns: minmax(0, 1fr); }
  .detail-photo { padding: 20px; }
  .detail-photo img { max-height: 480px; }
  .detail-content { padding-block: 0; }
  .status-panel { padding-block: 40px; }
}
@media (max-width: 480px) {
  .detail-contact { padding: 20px; }
  .detail-contact .actions { flex-direction: column; }
  .detail-contact .button { width: 100%; }
}