:root {
  --navy: #06284a;
  --navy-2: #0b3a68;
  --blue: #0e5dad;
  --yellow: #ffc400;
  --yellow-2: #ffdc55;
  --text: #0a2038;
  --muted: #6c7a89;
  --line: #e4e9ef;
  --bg: #f5f7fa;
  --green: #159447;
  --white: #fff;
  --shadow: 0 12px 30px rgba(5, 38, 72, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

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

.container {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  height: 76px;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 18px;
  align-items: center;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 21px;
  box-shadow: 0 8px 16px rgba(6, 40, 74, .2);
}

.brand-name {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-name span {
  color: var(--yellow);
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.search-wrap {
  display: flex;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.catalog-btn {
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 0 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.search-wrap input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 18px;
  min-width: 100px;
}

.search-field {
  flex: 1;
  position: relative;
  display: flex;
}

.search-field input {
  width: 100%;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
}

.search-suggestions-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border-bottom: 1px solid #eef2f6;
}

.search-suggestion:last-child {
  border-bottom: 0;
}

.search-suggestion:hover {
  background: #f6f9fc;
}

.search-suggestion strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.search-suggestion small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.search-suggestion b {
  color: var(--navy);
  font-size: 13px;
  white-space: nowrap;
}

.search-suggestion.empty {
  color: var(--muted);
  display: block;
}

.search-scope {
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
  color: #33465b;
}

.search-btn {
  border: 0;
  background: var(--yellow);
  padding: 0 24px;
  font-weight: 800;
  color: #12283d;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone strong {
  display: block;
  font-size: 16px;
}

.phone small {
  color: var(--muted);
}

.icon-action {
  position: relative;
  text-align: center;
  font-size: 12px;
  color: #263c52;
  cursor: pointer;
  min-width: 58px;
}

.icon-action .ico {
  font-size: 20px;
  display: block;
  margin-bottom: 3px;
}

.badge {
  position: absolute;
  top: -8px;
  right: 7px;
  min-width: 19px;
  height: 19px;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.breadcrumbs a::after {
  content: "/";
  margin-left: 8px;
  color: #a6b1bc;
}

.main-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
  padding-top: 12px;
}

.sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  height: max-content;
  position: sticky;
  top: 94px;
}

.sidebar-title {
  background: var(--navy);
  color: #fff;
  padding: 16px 18px;
  font-weight: 800;
  letter-spacing: .2px;
}

.category-list {
  padding: 6px 0;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
  overflow-wrap: anywhere;
}

.category-item:hover {
  background: #f6f9fc;
  color: var(--blue);
  padding-left: 19px;
}

.category-item span:first-child {
  width: 22px;
  text-align: center;
}

.category-item b {
  margin-left: auto;
  font-size: 15px;
  color: #8d9aa8;
}

.sidebar-all {
  display: block;
  margin: 10px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.content {
  min-width: 0;
}

.hero {
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 68% 45%, #155b94 0, #0b3964 28%, #06284a 58%, #031b33 100%);
  color: #fff;
  position: relative;
  padding: 42px 38px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to right, #000, transparent);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 15px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
}

.hero h1 {
  font-size: 48px;
  line-height: 1.03;
  margin: 0 0 16px;
  letter-spacing: 0;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: #dbe8f5;
  max-width: 640px;
  margin: 0;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 22px 0 25px;
  color: #e8f2fb;
  font-size: 13px;
}

.hero-feature {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-feature i {
  font-style: normal;
  color: var(--yellow);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  height: 46px;
  border-radius: 8px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.btn-secondary {
  border-color: #7f9ab4;
  background: rgba(255, 255, 255, .04);
  color: #fff;
}

.hero-art {
  position: relative;
  z-index: 2;
  min-height: 300px;
  display: grid;
  place-items: center;
}

.machine {
  width: min(480px, 100%);
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .38));
}

.quick-select {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 220px;
  background: rgba(6, 40, 74, .88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  padding: 18px;
  z-index: 4;
}

.quick-select h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.quick-select p {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 14px;
  color: #d8e4ef;
}

.quick-select .btn {
  height: 40px;
  width: 100%;
  font-size: 13px;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 8px 12px;
  text-align: center;
  transition: .2s;
  cursor: pointer;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #cfd9e4;
}

.cat-art {
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
}

.cat-art svg {
  max-height: 70px;
  max-width: 90px;
}

.cat-card strong {
  font-size: 13px;
  line-height: 1.2;
  display: block;
  overflow-wrap: anywhere;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 18px 0;
  padding: 16px 8px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 16px;
  border-right: 1px solid var(--line);
}

.benefit:last-child {
  border-right: 0;
}

.benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef5fb;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
}

.benefit strong {
  font-size: 13px;
  display: block;
}

.benefit span {
  font-size: 11px;
  color: var(--muted);
}

.section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 21px;
}

.page-section {
  padding: 22px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}

.page-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

.page-head p {
  max-width: 560px;
  margin: 4px 0 0;
  color: #56697b;
  line-height: 1.65;
}

.page-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}

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

.catalog-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-node {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  transition: .2s;
}

.catalog-node:hover {
  border-color: #cfd9e4;
  box-shadow: 0 10px 22px rgba(5, 38, 72, .08);
}

.catalog-node-title {
  display: inline-block;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.catalog-node p {
  margin: 8px 0 0;
  color: #607083;
  font-size: 13px;
  line-height: 1.55;
}

.catalog-node-children {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.catalog-node-children a {
  border-radius: 7px;
  background: #eef5fb;
  color: #24445f;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 700;
}

.description-block {
  color: #41566c;
  line-height: 1.75;
}

.description-block p {
  margin: 0 0 12px;
}

.nested-section-head {
  margin-top: 22px;
}

.brand-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.brand-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: #fff;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: .2s;
}

.brand-card:hover {
  border-color: #cfd9e4;
  box-shadow: 0 10px 22px rgba(5, 38, 72, .08);
}

.brand-card strong {
  color: var(--navy);
  font-size: 18px;
}

.brand-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.brand-detail .description-block {
  margin-bottom: 18px;
}

.brand-official-link {
  width: max-content;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tabs {
  display: flex;
  gap: 6px;
}

.tab {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  color: #607083;
}

.tab.active {
  background: #eaf2f9;
  color: var(--navy);
  font-weight: 800;
}

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

.product-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 335px;
  transition: .2s;
  background: #fff;
}

.product-card:hover {
  box-shadow: 0 12px 25px rgba(5, 38, 72, .1);
  transform: translateY(-2px);
}

.product-card.is-hidden {
  display: none;
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 5px;
  padding: 5px 7px;
  background: #8fd259;
  color: #173d18;
  font-size: 11px;
  font-weight: 800;
}

.tag.sale {
  background: var(--yellow);
  color: #1f2c3a;
}

.product-art {
  height: 145px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  overflow: hidden;
}

.product-art svg {
  max-width: 100%;
  max-height: 135px;
}

.product-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 135px;
  object-fit: contain;
}

.sku {
  font-size: 11px;
  color: #8a96a2;
  margin-bottom: 6px;
}

.product-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  min-height: 56px;
  margin: 0;
}

.product-title a:hover {
  color: var(--blue);
}

.product-meta {
  color: #53677a;
  font-size: 12px;
  margin-top: 6px;
}

.stock {
  color: var(--green);
  font-size: 12px;
  margin-top: 5px;
}

.stock.request {
  color: #8a6a12;
}

.product-delivery {
  color: #66788a;
  font-size: 12px;
  margin-top: 3px;
}

.product-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.price {
  font-size: 20px;
  font-weight: 850;
  line-height: 1.1;
}

.cart-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-size: 19px;
}

.cart-add-form {
  flex: 0 0 auto;
}

.cart-btn.disabled,
.cart-btn:disabled {
  background: #d7e0e8;
  color: #697b8c;
  cursor: not-allowed;
}

.category-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-workspace {
  margin-top: 8px;
}

.catalog-filter-form {
  display: block;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.catalog-count {
  color: #35495f;
  font-size: 14px;
  font-weight: 800;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sort-control select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  padding: 9px 10px;
}

.catalog-filter-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}

.catalog-filters-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.filters-head h2 {
  font-size: 18px;
  margin: 0;
}

.filters-close,
.filter-toggle {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.filters-close {
  display: none;
  width: 36px;
  height: 36px;
  font-size: 22px;
}

.filter-toggle {
  display: none;
  padding: 9px 12px;
}

.filter-clear,
.filter-apply {
  width: 100%;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.filter-clear {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--navy);
  margin-bottom: 12px;
  padding: 10px 12px;
}

.filter-apply {
  border: 0;
  background: var(--yellow);
  color: #2d2600;
  cursor: pointer;
  margin-top: 4px;
  padding: 12px 14px;
}

.filter-group {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 14px 0;
}

.filter-group legend {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  padding: 0;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #40556a;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 9px;
}

.filter-option input {
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.range-inputs label {
  color: var(--muted);
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
}

.range-inputs input {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 9px 8px;
}

.catalog-results {
  min-width: 0;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.active-filter {
  align-items: center;
  background: #eef6ff;
  border: 1px solid #cfe4fb;
  border-radius: 8px;
  color: var(--navy);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  padding: 7px 10px;
}

.active-filter.empty {
  background: #f8fafc;
  border-color: var(--line);
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  color: #50657a;
  font-size: 14px;
}

.pagination a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
  font-weight: 800;
  color: var(--navy);
}

.pagination a:hover {
  border-color: #c7d4df;
  color: var(--blue);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 470px) 1fr;
  gap: 28px;
  align-items: start;
}

.product-gallery-main {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fafc;
  aspect-ratio: 1.15 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-placeholder svg {
  width: min(320px, 88%);
  height: auto;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.product-gallery-thumbs img {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  aspect-ratio: 1;
  width: 100%;
  object-fit: contain;
  padding: 4px;
}

.product-summary h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.14;
}

.product-lead {
  margin: 12px 0 0;
  color: #4e6377;
  line-height: 1.65;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.product-facts div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.product-facts dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.product-facts dd {
  margin: 0;
  font-weight: 800;
  color: var(--text);
  overflow-wrap: anywhere;
}

.product-facts a:hover {
  color: var(--blue);
}

.product-offer-box {
  border: 1px solid #f0dfaa;
  border-radius: 10px;
  background: #fff9e5;
  padding: 16px;
  display: grid;
  gap: 8px;
  align-items: start;
}

.product-offer-box strong {
  font-size: 24px;
  color: #132f48;
}

.product-offer-box span {
  color: #5a6774;
  line-height: 1.5;
}

.product-offer-box .btn {
  width: max-content;
}

.product-cart-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-cart-form label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
}

.product-cart-form input[type="number"] {
  border: 1px solid #e0c970;
  border-radius: 8px;
  height: 46px;
  padding: 0 10px;
  width: 96px;
}

.cart-page {
  display: grid;
  gap: 16px;
}

.cart-notices {
  background: #fff8dc;
  border: 1px solid #ecd88f;
  border-radius: 8px;
  color: #604b00;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
}

.cart-notices p {
  margin: 0;
}

.cart-empty {
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.cart-empty h2 {
  margin: 0 0 8px;
}

.cart-empty p {
  color: var(--muted);
  margin: 0 0 16px;
}

.cart-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 230px;
  padding: 14px;
}

.cart-item.unavailable {
  background: #fbfcfd;
  border-color: #e2c3bc;
}

.cart-item-main {
  display: grid;
  gap: 14px;
  grid-template-columns: 90px minmax(0, 1fr);
}

.cart-item-art {
  align-items: center;
  background: #f3f7fb;
  border: 1px solid #e2ebf3;
  border-radius: 8px;
  display: grid;
  min-height: 90px;
  overflow: hidden;
  place-items: center;
}

.cart-item-art svg {
  height: 78px;
  width: 78px;
}

.cart-item h2 {
  font-size: 18px;
  line-height: 1.25;
  margin: 4px 0 8px;
}

.cart-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.cart-item-alerts {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.cart-item-alerts span {
  background: #fff4ed;
  border: 1px solid #f1d1c0;
  border-radius: 8px;
  color: #8a3b1d;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}

.cart-item-controls {
  align-items: stretch;
  display: grid;
  gap: 10px;
}

.cart-item-price {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.cart-item-price span {
  color: var(--muted);
  font-size: 13px;
}

.cart-item-price strong {
  color: var(--navy);
  font-size: 19px;
}

.cart-quantity-form {
  display: grid;
  gap: 8px;
}

.cart-quantity-form label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
}

.cart-quantity-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 40px;
  padding: 0 10px;
}

.cart-remove {
  background: #fff;
  border: 1px solid #e4c8c1;
  border-radius: 8px;
  color: #9b3b25;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 12px;
  width: 100%;
}

.cart-unavailable-qty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cart-summary {
  background: #0b2f54;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.cart-summary h2 {
  margin: 0;
}

.cart-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.cart-summary dl div {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}

.cart-summary dt {
  color: #bcd1e2;
}

.cart-summary dd {
  font-size: 18px;
  font-weight: 900;
  margin: 0;
}

.cart-summary p {
  color: #c7d7e5;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.cart-clear {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
  width: 100%;
}

.attribute-groups {
  display: grid;
  gap: 14px;
}

.attribute-group {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.attribute-group h3 {
  margin: 0;
  padding: 13px 15px;
  background: #f3f7fb;
  color: var(--navy);
  font-size: 16px;
}

.attribute-list {
  margin: 0;
}

.attribute-list div {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) 1fr;
  gap: 16px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
}

.attribute-list dt {
  color: #607083;
}

.attribute-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.document-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
  display: grid;
  gap: 5px;
}

.document-item:hover {
  border-color: #c7d4df;
  box-shadow: 0 10px 22px rgba(5, 38, 72, .08);
}

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

.document-item strong {
  color: var(--navy);
  overflow-wrap: anywhere;
}

.consult {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}

.consult-box {
  border-radius: 12px;
  padding: 22px;
  background: linear-gradient(135deg, #fff8df, #fff);
  border: 1px solid #f2e6bd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.consult-box h3 {
  margin: 0 0 7px;
}

.consult-box p {
  margin: 0 0 14px;
  color: #56697b;
  font-size: 14px;
}

.selection-form-box {
  align-items: stretch;
}

.selection-form {
  display: grid;
  gap: 10px;
}

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

.selection-form input,
.selection-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
  background: #fff;
  color: var(--text);
}

.selection-form textarea {
  resize: vertical;
  min-height: 100px;
}

.selection-form input:focus,
.selection-form textarea:focus {
  border-color: #b6cadb;
  box-shadow: 0 0 0 3px rgba(14, 93, 173, .10);
}

.form-success {
  border: 1px solid #bfe4cc;
  border-radius: 8px;
  background: #eefaf2;
  color: #146c35;
  padding: 10px 12px;
}

.form-error {
  color: #a33b2f;
  margin: 0;
  font-size: 13px;
}

.auth-layout {
  display: grid;
  justify-items: center;
  padding: 48px 0 64px;
}

.auth-card {
  width: min(100%, 500px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(5, 38, 72, .10);
  padding: 32px;
}

.auth-card h1 {
  color: var(--navy);
  font-size: 32px;
  margin: 0 0 10px;
}

.auth-intro {
  color: #56697b;
  line-height: 1.55;
  margin: 0 0 24px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 12px;
  outline: none;
  color: var(--text);
}

.auth-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14, 93, 173, .10);
}

.auth-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.auth-field .errorlist {
  color: #a33b2f;
  font-size: 12px;
  margin: 0;
  padding-left: 18px;
}

.auth-form .btn {
  margin-top: 4px;
  width: 100%;
}

.auth-links {
  border-top: 1px solid var(--line);
  color: #65798c;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
}

.auth-links a {
  color: var(--blue);
  font-weight: 800;
}

.account-page {
  padding-top: 34px;
  padding-bottom: 64px;
}

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

.account-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.account-card h2 {
  color: var(--navy);
  font-size: 20px;
  margin: 0;
}

.account-profile-card {
  grid-row: span 2;
}

.account-profile-card h2 {
  margin-bottom: 18px;
}

.account-card-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.account-card-head a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.account-list {
  display: grid;
}

.account-list-row {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--text);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 13px 0;
}

.account-list-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.account-list-row span {
  display: grid;
  gap: 4px;
}

.account-list-row small,
.account-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.account-list-row b {
  color: var(--navy);
  white-space: nowrap;
}

.account-empty {
  margin: 0;
}

.seo-block {
  line-height: 1.7;
}

.consult-icon {
  font-size: 64px;
}

.advantages {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.advantages h3 {
  margin: 0 0 10px;
}

.advantages ul {
  margin: 0;
  padding-left: 18px;
  color: #41566c;
  line-height: 1.8;
  font-size: 14px;
}

.brands {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 26px;
  overflow: hidden;
}

.brands strong {
  white-space: nowrap;
}

.brand-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 34px;
  flex: 1;
  flex-wrap: wrap;
}

.brand-logo {
  font-weight: 900;
  font-size: 20px;
  color: #1d568c;
  letter-spacing: 0;
}

.brand-logo:nth-child(2n) {
  color: #de4437;
}

.brand-logo:nth-child(3n) {
  color: #2d9a52;
}

footer {
  background: var(--navy);
  color: #dbe7f2;
  margin-top: 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
  padding: 38px 0;
}

.footer-grid h4 {
  color: #fff;
  margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a {
  font-size: 13px;
  line-height: 1.8;
  color: #bfd0df;
}

.footer-brand {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 16px 0;
  font-size: 12px;
  color: #9eb4c8;
}

.mobile-menu {
  display: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #0b2f54;
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: .25s;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1250px) {
  .topbar-inner {
    grid-template-columns: 220px 1fr;
  }

  .header-actions {
    display: none;
  }

  .main-grid {
    grid-template-columns: 220px 1fr;
  }

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

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

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

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

  .benefit:nth-child(3) {
    border-right: 0;
  }

  .benefit:nth-child(n+4) {
    margin-top: 12px;
  }

  .quick-select {
    display: none;
  }

  .hero {
    grid-template-columns: 1.15fr .85fr;
  }

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

@media (max-width: 860px) {
  .container {
    width: min(100% - 20px, 1500px);
  }

  .topbar-inner {
    grid-template-columns: 1fr auto;
    height: 66px;
  }

  .search-wrap {
    display: none;
  }

  .mobile-menu {
    display: block;
    border: 0;
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
    position: relative;
    top: 0;
  }

  .sidebar.open {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    min-height: 520px;
  }

  .hero-art {
    order: -1;
    min-height: 210px;
  }

  .machine {
    max-width: 330px;
  }

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

  .hero p {
    font-size: 16px;
  }

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

  .benefits {
    grid-template-columns: 1fr;
  }

  .benefit {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
  }

  .benefit:last-child {
    border-bottom: 0;
  }

  .benefit:nth-child(n+4) {
    margin-top: 0;
  }

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

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-profile-card {
    grid-row: auto;
  }

  .consult {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-head {
    display: block;
  }

  .page-head h1 {
    font-size: 30px;
  }

  .catalog-list,
  .catalog-list.compact {
    grid-template-columns: 1fr;
  }

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

  .catalog-toolbar {
    align-items: stretch;
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .catalog-count {
    align-self: center;
  }

  .sort-control {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .sort-control select {
    min-width: 190px;
  }

  .catalog-filter-layout {
    display: block;
  }

  .catalog-filters-panel {
    border-radius: 0;
    bottom: 0;
    box-shadow: var(--shadow);
    left: 0;
    max-width: 360px;
    overflow: auto;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform .2s ease;
    width: min(88vw, 360px);
    z-index: 130;
  }

  .catalog-filters-panel.is-open {
    transform: translateX(0);
  }

  body.filters-open::after {
    background: rgba(11, 34, 54, .38);
    content: "";
    inset: 0;
    position: fixed;
    z-index: 120;
  }

  .filters-close {
    display: inline-grid;
    place-items: center;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    order: -1;
  }

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

  .brand-sub {
    display: none;
  }
}

@media (max-width: 540px) {
  .brand-name {
    font-size: 20px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 310px;
  }

  .product-summary h1 {
    font-size: 27px;
  }

  .product-facts {
    grid-template-columns: 1fr;
  }

  .product-cart-form {
    align-items: stretch;
    display: grid;
  }

  .product-cart-form input[type="number"],
  .product-cart-form .btn {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-main {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-item-art {
    min-height: 72px;
  }

  .cart-item-art svg {
    height: 62px;
    width: 62px;
  }

  .cart-item-price {
    justify-items: start;
  }

  .attribute-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

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

  .document-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 12px;
  }

  .tabs {
    overflow: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .consult-box {
    align-items: flex-start;
  }

  .consult-icon {
    font-size: 46px;
  }

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

  .brand-row {
    justify-content: flex-start;
  }

  .page-section {
    padding: 14px;
  }

  .page-head h1 {
    font-size: 27px;
  }

  .brand-card-grid {
    grid-template-columns: 1fr;
  }
}
