:root {
  --ink: #111414;
  --ink-2: #1b2326;
  --graphite: #263033;
  --line: #d9dee2;
  --paper: #ffffff;
  --mist: #f4f6f7;
  --mist-2: #e9edf0;
  --yellow: #ffbd0c;
  --yellow-2: #d69a00;
  --green: #194d26;
  --blue: #2379c6;
  --text: #182126;
  --muted: #68747c;
  --danger: #b42318;
  --ok: #157347;
  --shadow: 0 16px 40px rgba(17, 20, 20, 0.14);
  --radius: 8px;
  --hero-image: url("assets/hero-machinery.png");
  --hero-position: center;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Arial", "Helvetica Neue", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px clamp(16px, 4vw, 64px);
  font-size: 12px;
}

.topbar strong {
  color: var(--yellow);
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.language-select {
  background: #0b0d0e;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  min-height: 32px;
  padding: 4px 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(217, 222, 226, 0.58);
  box-shadow: 0 10px 34px rgba(17, 20, 20, 0.08);
}

.nav-wrap {
  min-height: 72px;
  padding: 0 clamp(16px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--yellow);
  border-radius: var(--radius);
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.brand:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(17, 20, 20, 0.16);
}

.brand-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  color: #344047;
  font-size: 13px;
  font-weight: 800;
  padding: 24px 12px;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  background: var(--mist);
}

.main-nav a:hover {
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--yellow);
  color: #151515;
  border: 0;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

.nav-cta:hover {
  background: #ffd24a;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 22px;
}

.hero {
  min-height: 620px;
  background-image:
    linear-gradient(90deg, rgba(10, 13, 14, 0.9) 0%, rgba(10, 13, 14, 0.72) 36%, rgba(10, 13, 14, 0.2) 70%, rgba(10, 13, 14, 0.04) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position);
  color: #fff;
  display: grid;
  align-items: center;
  padding: 82px clamp(16px, 4vw, 64px) 56px;
  overflow: hidden;
}

.hero-inner {
  max-width: 760px;
  width: 100%;
  min-width: 0;
  opacity: var(--hero-content-opacity, 1);
  transform: translateY(var(--hero-content-shift, 0px));
  transition: opacity 0.08s linear, transform 0.08s linear;
  will-change: opacity, transform;
}

.eyebrow {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.hero h1,
.page-title h1,
.section-head h2,
.catalog-title,
.product-name,
.admin-title {
  font-family: "Arial Narrow", "Roboto Condensed", "Arial", sans-serif;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: 74px;
  line-height: 0.98;
  font-weight: 900;
  text-transform: uppercase;
  max-width: 820px;
  overflow-wrap: anywhere;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.hero-actions,
.action-row,
.filter-row,
.dock-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: var(--radius);
  padding: 11px 16px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s, background 0.18s, color 0.18s, border-color 0.18s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--yellow);
  color: #161616;
}

.btn-primary:hover {
  background: #ffd24a;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--graphite);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-danger {
  background: #fee4e2;
  color: var(--danger);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  max-width: 720px;
  gap: 1px;
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat {
  padding: 18px;
  background: rgba(9, 12, 13, 0.62);
}

.hero-stat strong {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.hero-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  margin-top: 6px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--green);
  color: #fff;
}

.trust-item {
  padding: 18px clamp(16px, 4vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  transition: background 0.24s ease, transform 0.24s ease;
}

.trust-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.11) 42%, transparent 72%);
  transform: translateX(-110%);
  transition: transform 0.7s ease;
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.trust-item:hover::after {
  transform: translateX(110%);
}

.trust-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 189, 12, 0.18);
  color: var(--yellow);
  flex: 0 0 auto;
  transition: transform 0.24s ease, background 0.24s ease;
}

.trust-item:hover .trust-icon {
  transform: scale(1.08);
  background: rgba(255, 189, 12, 0.28);
}

.section {
  padding: 68px clamp(16px, 4vw, 64px);
}

.section.alt {
  background: var(--mist);
}

.section.dark {
  background: var(--ink);
  color: #fff;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dark .section-head h2,
.section.dark .section-head h2 {
  color: #fff;
}

.section-head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section.dark .section-head p {
  color: rgba(255, 255, 255, 0.62);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.category-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s, background 0.22s;
}

.category-tile:hover {
  border-color: var(--yellow);
  background: linear-gradient(180deg, #fff 0%, #fff8df 100%);
  box-shadow: 0 18px 44px rgba(17, 20, 20, 0.1);
  transform: translateY(-4px);
}

.category-tile b {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.category-tile span {
  color: var(--muted);
  font-size: 12px;
}

.machinery-band {
  background:
    linear-gradient(90deg, rgba(17, 20, 20, 0.92), rgba(17, 20, 20, 0.7)),
    var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position);
  color: #fff;
  padding: 44px clamp(16px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
}

.machinery-band h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.machinery-band p {
  color: rgba(255, 255, 255, 0.72);
  margin: 12px 0 0;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(17, 20, 20, 0.94), rgba(17, 20, 20, 0.76)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 68px clamp(16px, 4vw, 64px);
  overflow: hidden;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-title h1 {
  margin: 0;
  font-size: 60px;
  text-transform: uppercase;
  line-height: 1;
  overflow-wrap: anywhere;
}

.page-title {
  width: 100%;
  min-width: 0;
}

.page-title p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 760px;
  overflow-wrap: anywhere;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-title {
  background: var(--ink);
  color: #fff;
  padding: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-list {
  max-height: calc(100vh - 190px);
  overflow: auto;
}

.category-list button {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  color: #334047;
  font-size: 13px;
  font-weight: 800;
}

[dir="rtl"] .category-list button {
  text-align: right;
}

.category-list button:hover,
.category-list button.active {
  background: #fff8df;
  color: var(--ink);
  box-shadow: inset 4px 0 0 var(--yellow);
}

[dir="rtl"] .category-list button:hover,
[dir="rtl"] .category-list button.active {
  box-shadow: inset -4px 0 0 var(--yellow);
}

.catalog-toolbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px 180px;
  gap: 10px;
}

.field,
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label,
.form-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field select,
.form-field input,
.form-field select,
.form-field textarea,
.admin-input,
.admin-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  min-height: 42px;
  padding: 10px 12px;
  outline: none;
}

.field input:focus,
.field select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.admin-input:focus,
.admin-textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 189, 12, 0.18);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
}

.product-card:hover {
  border-color: #c8cfd5;
  box-shadow: 0 22px 58px rgba(17, 20, 20, 0.15);
  transform: translateY(-5px);
}

.product-media {
  height: 190px;
  background-color: var(--mist-2);
  background-size: 720px auto;
  background-repeat: no-repeat;
  position: relative;
  transition: filter 0.24s ease, transform 0.24s ease;
}

.product-card:hover .product-media {
  filter: saturate(1.08) contrast(1.02);
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.2));
}

.badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.badge.hot {
  background: #fff3c4;
}

.badge.certified {
  background: #dff3e4;
  color: var(--green);
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-name {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  margin: 0;
}

.product-summary {
  color: var(--muted);
  font-size: 13px;
  min-height: 42px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.spec {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  min-width: 0;
}

.spec span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.spec b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.product-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.price {
  color: var(--yellow-2);
  font-size: 20px;
  font-weight: 900;
}

.empty-state {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.service-grid,
.faq-grid,
.contact-grid,
.admin-grid,
.video-grid,
.calculator-grid {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(5, 1fr);
}

.service-card,
.faq-card,
.contact-card,
.admin-panel,
.calculator-panel,
.video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.section.dark .service-card {
  background: #181f21;
  border-color: rgba(255, 255, 255, 0.12);
}

.service-card h3,
.faq-card h3,
.contact-card h3,
.admin-panel h3,
.calculator-panel h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.section.dark .service-card h3 {
  color: #fff;
}

.service-card p,
.faq-card p,
.contact-card p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.section.dark .service-card p {
  color: rgba(255, 255, 255, 0.62);
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-methods {
  display: grid;
  gap: 10px;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--mist);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-method:hover {
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 20, 20, 0.08);
  transform: translateY(-1px);
}

.contact-method b {
  color: var(--ink);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.qr-box {
  min-height: 150px;
  background: var(--mist);
  border: 1px dashed #b8c0c7;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 12px;
  overflow: hidden;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-field.full {
  grid-column: 1 / -1;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px) saturate(140%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: fadeIn 0.18s ease;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  animation: modalRise 0.22s cubic-bezier(.2, .8, .2, 1);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.modal-body {
  padding: 20px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.floating-dock {
  position: fixed;
  right: 28px;
  bottom: 34px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.dock-menu {
  display: grid;
  width: min(360px, calc(100vw - 56px));
  max-height: min(620px, calc(100vh - 150px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 70px rgba(17, 20, 20, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(150%);
  overflow: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-dock.open .dock-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dock-panel-head {
  display: grid;
  gap: 4px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.dock-panel-head b {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.dock-panel-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dock-inquiry {
  margin: 12px 12px 6px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.dock-menu a,
.dock-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  text-decoration: none;
}

.dock-menu a span,
.dock-menu button span {
  max-width: 190px;
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: right;
  line-height: 1.25;
}

.dock-menu a:hover,
.dock-menu button:hover {
  background: rgba(255, 189, 12, 0.12);
}

.dock-menu .dock-inquiry {
  width: auto;
  justify-content: center;
  border-bottom: 0;
  background: var(--yellow);
  color: var(--ink);
}

.dock-menu .dock-inquiry:hover {
  background: #ffd04a;
}

.dock-trigger {
  min-width: 132px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 16px 42px rgba(17, 20, 20, 0.22);
  font-size: 15px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dock-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(17, 20, 20, 0.26);
}

.dock-trigger b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 20, 20, 0.12);
}

.video-grid {
  grid-template-columns: repeat(3, 1fr);
}

.video-thumb {
  position: relative;
  height: 170px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(17, 20, 20, 0.74), rgba(17, 20, 20, 0.2)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 189, 12, 0.92);
  color: var(--ink);
  font-weight: 900;
}

.video-card {
  cursor: pointer;
}

.video-card:hover .video-thumb {
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.visual-video-upload {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 9;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 189, 12, 0.95);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  box-shadow: var(--shadow);
}

.video-file-name {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.video-player-modal {
  width: min(1060px, 100%);
}

.video-player {
  width: 100%;
  max-height: 70vh;
  display: block;
  border-radius: 14px;
  background: #000;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalRise {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.upload-zone {
  border: 2px dashed #b8c0c7;
  border-radius: var(--radius);
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.calculator-panel {
  max-width: 960px;
  margin: 0 auto;
}

.calculator-grid {
  grid-template-columns: repeat(4, 1fr);
}

.calc-result {
  margin-top: 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 8px;
}

.calc-row:last-child {
  border: 0;
  padding-bottom: 0;
  color: var(--yellow);
  font-weight: 900;
}

.admin-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.admin-title {
  margin: 0 0 16px;
  font-size: 32px;
  color: var(--ink);
}

.admin-headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-headline .admin-title {
  margin: 0;
}

.admin-tools {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-field {
  min-width: 180px;
}

.admin-stack {
  display: grid;
  gap: 12px;
}

.admin-textarea {
  min-height: 230px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.admin-hint {
  color: var(--muted);
  font-size: 13px;
}

.visual-editor-toolbar {
  position: sticky;
  top: 72px;
  z-index: 70;
  background: #101414;
  color: #fff;
  border-bottom: 3px solid var(--yellow);
  padding: 12px clamp(16px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 28px rgba(17, 20, 20, 0.16);
}

.visual-editor-toolbar strong {
  color: var(--yellow);
  margin-right: 10px;
}

.visual-editor-toolbar span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.visual-editor-toolbar .cloud-status {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.visual-editor-toolbar .cloud-status.ok {
  color: #d9ffe6;
  background: rgba(21, 128, 61, 0.42);
}

.visual-editor-toolbar .cloud-status.bad {
  color: #ffe1e1;
  background: rgba(185, 28, 28, 0.46);
}

.visual-editor-toolbar .cloud-status.local {
  color: #fff4cc;
  background: rgba(255, 184, 0, 0.24);
}

.visual-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.visual-editor-actions label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.72);
}

.visual-editor-actions select {
  min-height: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #070909;
  color: #fff;
  padding: 6px 10px;
}

.editable-inline {
  outline: 2px dashed rgba(255, 189, 12, 0.92);
  outline-offset: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.16s, outline-color 0.16s;
}

.editable-inline:hover {
  background: rgba(255, 189, 12, 0.18);
  outline-color: #fff;
}

.login-note {
  color: var(--muted);
  margin: -4px 0 18px;
}

.footer-edit-hint {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 189, 12, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 189, 12, 0.12);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
}

.visual-edit-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  border: 0;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  box-shadow: var(--shadow);
}

.visual-image-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 8;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.visual-image-tools button {
  border: 0;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  box-shadow: var(--shadow);
}

.hero,
.product-media,
.page-hero,
.video-thumb,
.qr-box {
  position: relative;
}

.visual-edit-modal textarea {
  min-height: 180px;
}

.admin-image-preview {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 8px 0;
  background: #f4f6f8;
}

.add-product-modal {
  width: min(920px, 100%);
}

.product-gallery-modal {
  width: min(980px, 100%);
}

.gallery-main {
  position: relative;
  background: #f4f6f8;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.gallery-main img.is-changing {
  animation: gallerySwap 0.24s ease;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.18s ease, background 0.18s ease;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-50%) scale(1.05);
}

.gallery-prev {
  left: 14px;
}

.gallery-next {
  right: 14px;
}

.gallery-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  border-radius: 999px;
  background: rgba(17, 20, 20, 0.68);
  color: #fff;
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumbs button {
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.gallery-thumbs button.active,
.gallery-thumbs button:hover {
  opacity: 1;
  border-color: var(--yellow);
  transform: translateY(-1px);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes gallerySwap {
  from { opacity: 0.35; transform: scale(0.992); }
  to { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.992);
  filter: blur(8px);
  transition:
    opacity 0.72s cubic-bezier(.2, .8, .2, 1),
    transform 0.72s cubic-bezier(.2, .8, .2, 1),
    filter 0.72s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible,
.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.section-head.reveal {
  transform: translateY(18px);
}

.machinery-band.reveal {
  transform: translateY(16px) scale(0.996);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.add-product-modal .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-panel {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 34px rgba(17, 20, 20, 0.08);
}

.login-panel h2 {
  margin: 0 0 18px;
  color: var(--ink);
}

.simple-admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.simple-admin-form .form-field:nth-child(2),
.simple-admin-form .form-field:nth-child(4),
.simple-admin-form .form-field:nth-child(6),
.simple-admin-form .form-field:nth-child(10),
.simple-admin-form .form-field:nth-child(12),
.simple-admin-form .form-field:nth-child(14),
.simple-admin-form .form-field:nth-child(16),
.simple-admin-form .form-field:nth-child(18),
.simple-admin-form .form-field:nth-child(20),
.simple-admin-form .form-field:nth-child(22),
.simple-admin-form .form-field:nth-child(24),
.simple-admin-form .form-field:nth-child(26),
.simple-admin-form .form-field:nth-child(29) {
  grid-column: 1 / -1;
}

.simple-list {
  display: grid;
  gap: 14px;
}

.simple-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.simple-editor-title {
  color: var(--ink);
  font-weight: 900;
}

.simple-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.simple-editor-grid .full {
  grid-column: 1 / -1;
}

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.58);
  padding: 42px clamp(16px, 4vw, 64px) 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer h3,
.footer h4 {
  color: #fff;
  margin: 0 0 12px;
}

.footer a {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  margin: 7px 0;
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 160;
  transform: translateX(-50%) translateY(80px);
  opacity: 0;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, opacity 0.2s;
  max-width: min(560px, calc(100vw - 32px));
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    display: flex;
    position: static;
    order: 3;
    flex: 0 0 100%;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    padding: 0 0 8px;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 12px 10px;
  }

  .mobile-toggle {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 560px;
    background-position: 58% center;
  }

  .hero h1 {
    font-size: 54px;
  }

  .page-title h1 {
    font-size: 46px;
  }

  .section-head h2,
  .machinery-band h2 {
    font-size: 36px;
  }

  .hero-stats,
  .trust-strip,
  .machinery-band,
  .catalog-layout,
  .contact-grid,
  .admin-grid,
  .admin-headline,
  .simple-admin-form,
  .simple-editor-grid,
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .admin-headline {
    align-items: flex-start;
    flex-direction: column;
  }

  .visual-editor-toolbar {
    top: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-sidebar {
    position: static;
  }

  .category-list {
    display: flex;
    overflow-x: auto;
    max-height: none;
  }

  .category-list button {
    min-width: 190px;
    border-right: 1px solid var(--line);
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .topbar {
    display: none;
  }

  .nav-wrap {
    min-height: 64px;
    flex-wrap: nowrap;
    padding-right: 16px;
  }

  .main-nav {
    order: 0;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .brand-title {
    display: none;
  }

  .brand {
    min-width: 0;
    flex: 0 0 auto;
  }

  .nav-wrap {
    gap: 12px;
    position: relative;
    padding-right: 74px;
  }

  .mobile-toggle {
    display: none !important;
    place-items: center;
    flex: 0 0 42px;
    position: fixed;
    right: 16px;
    top: 12px;
    transform: none;
    z-index: 90;
    background: var(--ink);
    color: var(--yellow);
    border: 2px solid var(--yellow);
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: 540px;
    padding-top: 56px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.02;
    max-width: 330px;
  }

  .eyebrow {
    font-size: 11px;
    max-width: 330px;
  }

  .hero-copy {
    max-width: 330px;
  }

  .page-title h1 {
    font-size: 30px;
    max-width: 330px;
  }

  .page-title p {
    max-width: 330px;
  }

  .section-head h2,
  .machinery-band h2 {
    font-size: 30px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .product-grid,
  .service-grid,
  .video-grid,
  .footer-grid,
  .form-grid,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    height: 210px;
  }

  .floating-dock {
    right: 14px;
    bottom: 18px;
  }

  .dock-menu {
    width: min(340px, calc(100vw - 28px));
    max-height: calc(100vh - 120px);
  }

  .dock-menu a span,
  .dock-menu button span {
    max-width: 165px;
  }

  .dock-trigger {
    min-width: 118px;
    height: 50px;
    padding: 0 14px;
  }
}
