/* =========================================================
   NPROMAX — фирменные стили
   Brand: #EC6B00 (orange), #1A1918 (dark), #FFFFFF (white)
   ========================================================= */
:root {
  --brand: #EC6B00;
  --brand-dark: #C75800;
  --brand-light: #FFA94D;
  --ink: #1A1918;
  --ink-soft: #2E2A24;
  --gray-900: #111;
  --gray-700: #444;
  --gray-500: #777;
  --gray-300: #d9d4cc;
  --gray-200: #ece6db;
  --gray-100: #f6f1e7;
  --gray-50: #faf6ee;
  --paper: #fffaf0;
  --bg: #ffffff;
  --bg-soft: #FAF4EA;
  --green: #1f8a4c;
  --red: #c5352e;
  --shadow: 0 8px 30px rgba(26, 25, 24, 0.08);
  --shadow-strong: 0 12px 40px rgba(26, 25, 24, 0.15);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --header-h: 108px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

/* ===== Cart icon in header ===== */
.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gray-100);
  font-size: 24px;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.cart-icon:hover { background: var(--brand); transform: translateY(-1px); }
.cart-icon.has-items { background: var(--brand); }
.cart-icon.has-items .cart-icon-svg { filter: brightness(0) invert(1); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ===== Toast notification ===== */
.np-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  max-width: 420px;
}
.np-toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.np-toast::before { content: '✓'; background: var(--green); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; }
.np-toast-link { color: var(--brand-light); font-weight: 700; white-space: nowrap; }
.np-toast-link:hover { color: #fff; }
@media (max-width: 720px) {
  .np-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* ===== Cart page ===== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 16px;
  align-items: center;
}
.cart-item-img { display: block; }
.cart-item-img img { width: 120px; height: 120px; object-fit: contain; background: var(--gray-100); border-radius: 10px; }
.cart-item-info h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; line-height: 1.3; }
.cart-item-info h3 a { color: var(--ink); }
.cart-item-info h3 a:hover { color: var(--brand); }
.cart-item-meta { color: var(--gray-500); font-size: 13px; margin-bottom: 8px; }
.cart-item-price { font-weight: 700; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 4px;
}
.cart-item-qty input { width: 50px; border: none; background: transparent; text-align: center; font-size: 16px; font-weight: 700; }
.qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: #fff;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
}
.qty-btn:hover { background: var(--brand); color: #fff; }
.cart-item-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 140px;
}
.cart-item-total strong { font-size: 18px; }
.remove-btn {
  width: 32px; height: 32px;
  border: none; background: var(--gray-100);
  border-radius: 50%; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--gray-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.remove-btn:hover { background: var(--red); color: #fff; }
.cart-summary {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 14px);
}
.cart-summary .summary-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--gray-200); font-size: 15px;
}
.cart-summary .summary-row.total { border-bottom: none; font-size: 20px; padding-top: 16px; }
.cart-summary .summary-row.total strong { color: var(--brand); }

/* ===== Checkout page ===== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
}
.checkout-fields {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 30px;
}
.checkout-summary {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 14px);
}
.checkout-summary .summary-row {
  display: flex; justify-content: space-between; padding: 8px 0;
}
.checkout-summary .summary-row.total { font-size: 18px; padding-top: 12px; border-top: 1px solid var(--gray-300); margin-top: 8px; }
.checkout-summary .summary-row.total strong { color: var(--brand); font-size: 22px; }
.checkout-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
}
.checkout-item img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 6px; }
.checkout-item-title { font-weight: 700; line-height: 1.3; margin-bottom: 3px; }
.checkout-item-meta { color: var(--gray-500); font-size: 12px; }

@media (max-width: 1024px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }
}
@media (max-width: 720px) {
  .cart-item { grid-template-columns: 80px 1fr; grid-template-areas: "img info" "qty total"; gap: 12px; padding: 12px; }
  .cart-item-img { grid-area: img; }
  .cart-item-img img { width: 80px; height: 80px; }
  .cart-item-info { grid-area: info; }
  .cart-item-qty { grid-area: qty; }
  .cart-item-total { grid-area: total; }
  .checkout-fields { padding: 20px; }
}

/* ===== Top bar ===== */
.topbar {
  background: var(--ink);
  color: #f6f1e7;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.topbar a { color: #f6f1e7; }
.topbar a:hover { color: var(--brand-light); }
.topbar .left, .topbar .right { display: flex; gap: 22px; align-items: center; }

/* ===== Header ===== */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header .container {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  height: 68px;
  width: auto;
  display: block;
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: 18px;
  flex: 1;
}
.nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a.active { color: var(--brand); border-color: var(--brand); }
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.header-phone {
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}
.header-phone:hover { color: var(--brand); }
.menu-toggle { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 700;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(236, 107, 0, 0.28);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #000; }
.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { color: var(--brand); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 17px; }

/* ===== Sections ===== */
section { padding: 80px 0; }
section.tight { padding: 50px 0; }
.section-title {
  font-size: 36px;
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.section-sub {
  font-size: 18px;
  color: var(--gray-500);
  margin: 0 0 38px;
  max-width: 720px;
}
.kicker {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(236, 107, 0, 0.12);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1A1918 0%, #2E2A24 60%, #4A2E15 100%);
  color: #fff;
  padding: 70px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(236,107,0,0.35), transparent 50%),
    radial-gradient(circle at 5% 90%, rgba(236,107,0,0.10), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--brand); }
.hero p.lead { color: #e8e4dc; }
.hero-strip .item { color: #fff; }
.hero-strip .item .num { color: var(--brand-light); }
.hero .btn-dark { background: #fff; color: var(--ink); }
.hero .btn-dark:hover { background: #f3e6d2; }
.hero .btn-outline { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }
.hero-visual img { border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); width: 100%; }
.hero .kicker { background: rgba(236, 107, 0, 0.22); color: #ffb265; }
.hero-logo {
  height: 96px;
  width: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.25));
}
.hero h1 {
  font-size: 54px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin: 0 0 18px;
}
.hero h1 .accent { color: var(--brand); }
.hero p.lead {
  font-size: 19px;
  color: #e8e4dc;
  margin: 0 0 28px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-strip {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-strip .item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.hero-strip .item .num {
  font-size: 26px;
  color: var(--brand);
  font-weight: 900;
}
.hero-visual {
  position: relative;
  min-height: 480px;
}
.hero-visual img { width: 100%; height: auto; }

/* ===== Format cards ===== */
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.format-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.format-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.format-card .badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 16px;
}
.format-card h3 {
  font-size: 26px;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.format-card p { color: var(--gray-500); margin: 0 0 18px; }
.format-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.format-card ul li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 14px;
}
.format-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 14px; height: 14px;
  background: var(--brand);
  border-radius: 50%;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  padding: 28px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 4px solid var(--brand);
}
.feature h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}
.feature p { margin: 0; color: var(--gray-700); font-size: 15px; }

/* ===== Product cards ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.product-card .image {
  background: #F4F0E8;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* preserve aspect, no stretch */
  object-position: center;
  transition: transform .35s ease;
}
.product-card:hover .image img { transform: scale(1.03); }
.product-card .image .tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.product-card .image .country {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}
.product-card .body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .body h3 {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 800;
  line-height: 1.25;
}
.product-card .body .sub {
  color: var(--gray-500);
  font-size: 13px;
  margin: 0 0 12px;
  flex: 1;
}
.product-card .price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.product-card .price {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}
.product-card .price .unit { font-size: 13px; color: var(--gray-500); font-weight: 600; margin-left: 4px; }
.product-card .stock-in { color: var(--green); font-size: 12px; font-weight: 700; }
.product-card .stock-out { color: var(--red); font-size: 12px; font-weight: 700; }
.product-card .actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.product-card .actions .btn { flex: 1; white-space: nowrap; padding-left: 8px; padding-right: 8px; }
@media (max-width: 1280px) {
  .product-card .body { padding: 14px; }
  .product-card .body h3 { font-size: 15px; }
  .product-card .price { font-size: 20px; }
  .product-card .actions .btn { font-size: 13px; padding: 8px 6px; }
}
@media (max-width: 900px) {
  .product-card .actions { flex-direction: column; }
  .product-card .actions .btn { width: 100%; }
}

/* ===== Catalog layout ===== */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: flex-start;
}
.filters {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: calc(var(--header-h) + 14px);
}
.filters h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 10px;
  color: var(--gray-700);
}
.filters .group { margin-bottom: 18px; }
.filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  cursor: pointer;
}
.filters .pill {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--gray-300);
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 6px 6px 0;
  color: var(--gray-700);
}
.filters .pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar select, .toolbar input {
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font: inherit;
}

/* ===== Equipment ===== */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.eq-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
}
.eq-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.eq-card .image {
  background: #ECE8DE;
  aspect-ratio: 1 / 0.78;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eq-card .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* preserve aspect, never stretch */
  object-position: center;
  transition: transform .35s ease;
}
.eq-card:hover .image img { transform: scale(1.03); }
.eq-card .body { padding: 22px; }
.eq-card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.eq-card .meta { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.eq-card .price {
  font-size: 26px; font-weight: 900; color: var(--ink);
  margin-bottom: 4px;
}
.eq-card .price small { color: var(--gray-500); font-weight: 600; font-size: 14px; }
.eq-card .summary { font-size: 14px; color: var(--gray-700); margin: 10px 0 18px; min-height: 60px; }
.eq-card .row { display: flex; gap: 8px; }
.eq-card .row .btn { flex: 1; }

/* ===== Rent & options ===== */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.option {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--gray-200);
}
.option .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  margin-bottom: 14px;
}
.option h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.option p { color: var(--gray-700); margin: 0 0 16px; }

/* ===== Rent — segments grid ===== */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.segment-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.segment-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.segment-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 10px;
}
.segment-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.segment-profile { font-size: 13px; color: var(--gray-500); margin-bottom: 10px; font-weight: 600; }
.segment-best { font-size: 14px; color: var(--ink); margin-bottom: 14px; line-height: 1.4; }
.segment-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.segment-picks a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gray-100);
  color: var(--ink);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.segment-picks a:hover { background: var(--brand); color: #fff; }

/* ===== Rent — individual terms note ===== */
.rent-note {
  background: linear-gradient(135deg, #FFF8EE 0%, #F2E1C3 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border-left: 5px solid var(--brand);
}
.rent-note h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.rent-note p { margin: 0; font-size: 16px; color: var(--gray-700); line-height: 1.6; }

/* ===== Rent — machine cards with 3 variants ===== */
.rent-machines {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.rent-machine {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.rent-machine-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--gray-200);
}
.rent-machine-photo {
  display: block;
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 0.8;
}
.rent-machine-photo img { width: 100%; height: 100%; object-fit: cover; }
.rent-machine-meta h3 {
  font-size: 26px;
  font-weight: 900;
  margin: 10px 0 8px;
  letter-spacing: -0.5px;
}
.rent-machine-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0;
}
.price-eur { font-size: 28px; font-weight: 900; color: var(--ink); }
.price-uah { font-size: 14px; color: var(--gray-500); font-weight: 600; }
.rent-machine-fits {
  font-size: 14px;
  color: var(--gray-700);
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: 8px;
}

.rent-variants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.rent-variant {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.rent-variant.variant-soft { background: #FFF8EE; border-color: #F2D9A8; }
.variant-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.variant-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}
.variant-name { font-size: 16px; font-weight: 800; }
.variant-lead {
  font-size: 14px;
  color: var(--gray-700);
  margin: 0 0 14px;
  line-height: 1.5;
}
.variant-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}
.variant-table th, .variant-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.variant-table th {
  text-align: left;
  font-weight: 600;
  color: var(--gray-500);
  font-size: 12px;
  width: 60%;
}
.variant-table td {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}
.rent-variant .btn { margin-top: auto; }

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.faq-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0;
  transition: background .2s, border-color .2s;
}
.faq-item[open] { background: #fff; border-color: var(--brand); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  padding-right: 50px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p {
  padding: 0 22px 18px;
  margin: 0;
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Rental hero ===== */
.rent-hero {
  background: linear-gradient(120deg, #1A1918 0%, #2E2A24 50%, #EC6B00 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px;
  position: relative;
  overflow: hidden;
  margin: 30px 0;
}
.rent-hero h2 { font-size: 42px; margin: 0 0 14px; font-weight: 900; letter-spacing: -1px; }
.rent-hero p { font-size: 18px; max-width: 720px; opacity: 0.92; margin: 0 0 28px; }

/* ===== Tables ===== */
.spec-table, .calc-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.spec-table th, .spec-table td,
.calc-table th, .calc-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
}
.spec-table th, .calc-table th { background: var(--gray-50); font-weight: 700; }
.calc-table td.highlight { color: var(--brand); font-weight: 800; }

/* ===== Forms ===== */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 700; font-size: 14px; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  font: inherit;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: #fff;
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(236,107,0,0.18);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note { color: var(--gray-500); font-size: 13px; margin-top: 12px; }

/* ===== Banners ===== */
.banner {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: center;
}
.banner h3 { font-size: 32px; margin: 0 0 10px; font-weight: 900; }
.banner p { margin: 0; opacity: 0.85; }
.banner .right { text-align: right; }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #d6d2c8;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.8px; margin: 0 0 16px; }
.footer a { color: #d6d2c8; }
.footer a:hover { color: var(--brand-light); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 5px 0; font-size: 15px; }
.footer .logo img { height: 68px; margin-bottom: 18px; }
.footer .legal {
  border-top: 1px solid #2e2a24;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #908a7a;
}

/* ===== Flash messages ===== */
.flash {
  padding: 14px 22px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-weight: 600;
}
.flash.success { background: #e7f6ec; color: var(--green); border: 1px solid #b7e3c4; }
.flash.error { background: #fceaea; color: var(--red); border: 1px solid #f1bcb9; }

/* ===== Admin ===== */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-aside {
  background: var(--ink);
  color: #fff;
  padding: 24px;
}
.admin-aside .logo { margin-bottom: 30px; }
.admin-aside .logo img { height: 44px; }
.admin-aside a {
  display: block;
  padding: 11px 14px;
  color: #d6d2c8;
  border-radius: 8px;
  margin-bottom: 4px;
  font-weight: 600;
}
.admin-aside a:hover, .admin-aside a.active { background: var(--brand); color: #fff; }
.admin-main { padding: 30px 40px; background: var(--gray-50); }
.admin-main h1 { margin: 0 0 20px; font-size: 28px; }

.stat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 24px; }
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--gray-200);
}
.stat .v { font-size: 28px; font-weight: 900; color: var(--brand); }
.stat .l { font-size: 12px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; }

.leads-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.leads-table th, .leads-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.leads-table th { background: var(--gray-100); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.leads-table tr:hover { background: var(--gray-50); }

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-new { background: #fff3e6; color: #e07a16; }
.status-in_progress { background: #e8f0fe; color: #1666c9; }
.status-contacted { background: #fff7d6; color: #a87b0c; }
.status-waiting_payment { background: #fce7f4; color: #b04e8a; }
.status-done { background: #e7f6ec; color: #1f8a4c; }
.status-cancelled { background: #fceaea; color: #c5352e; }

/* ===== Login ===== */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A1918, #2E2A24);
}
.login-card {
  background: #fff;
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  text-align: center;
}
.login-card img { height: 56px; margin: 0 auto 18px; }

/* ===== Breadcrumbs ===== */
.crumbs {
  font-size: 13px;
  color: var(--gray-500);
  padding: 18px 0 0;
}
.crumbs a { color: var(--gray-500); }
.crumbs a:hover { color: var(--brand); }
.crumbs span.sep { padding: 0 8px; }

/* ===== Page header ===== */
.page-header {
  background: var(--gray-50);
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--gray-200);
}
.page-header h1 { margin: 0 0 10px; font-size: 40px; font-weight: 900; letter-spacing: -1px; }
.page-header p { margin: 0; color: var(--gray-500); font-size: 17px; max-width: 760px; }

/* ===== Two-col content ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .format-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .equipment-grid { grid-template-columns: 1fr 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .banner { grid-template-columns: 1fr; }
  .banner .right { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .segments-grid { grid-template-columns: repeat(3, 1fr); }
  .rent-machine-head { grid-template-columns: 1fr; }
  .rent-machine-photo { max-width: 320px; }
  .rent-variants { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .segments-grid { grid-template-columns: 1fr 1fr; }
  .rent-machine { padding: 20px; }
  .rent-machine-meta h3 { font-size: 22px; }
  section { padding: 50px 0; }
  .hero h1 { font-size: 36px; }
  .hero { padding: 50px 0 60px; }
  .section-title { font-size: 28px; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .header .container { gap: 12px; }
  .nav { display: none; position: absolute; flex-direction: column; top: var(--header-h); left: 0; right: 0; background: #fff; padding: 16px 24px; border-top: 1px solid var(--gray-200); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .header-phone { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--gray-300);
    background: #fff;
    border-radius: 8px;
  }
  .brand img { height: 52px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-aside { position: static; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .left .hide-mobile, .topbar .right .hide-mobile { display: none; }
  .rent-hero { padding: 32px 22px; }
  .rent-hero h2 { font-size: 28px; }
  .page-header h1 { font-size: 28px; }
  .form-card { padding: 22px; }
  .banner { padding: 30px 22px; }
}
