:root {
  --ink: #17202a;
  --muted: #66717f;
  --navy: #102d4c;
  --blue: #1d5f90;
  --teal: #1f7a75;
  --amber: #d68a2e;
  --line: #d9e0e7;
  --surface: #f5f7f9;
  --white: #ffffff;
  --shadow: 0 16px 42px rgba(18, 42, 66, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
}

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

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  color: var(--white);
  background: rgba(16, 45, 76, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  background: var(--white);
  border-radius: 6px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: #b9c8d7;
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #d9e6ef;
  font-size: 14px;
}

.header-center {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
}

.main-nav a:hover {
  color: var(--white);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 6px;
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

.phone-icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-left-width: 5px;
  border-radius: 5px 5px 7px 7px;
  transform: rotate(-22deg);
}

.cart-button,
.icon-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  min-width: 58px;
  justify-content: center;
  border-radius: 6px;
}

.cart-icon {
  width: 18px;
  height: 16px;
  border: 2px solid currentColor;
  border-top: 0;
  position: relative;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: -7px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(42px, 7vw, 96px) clamp(16px, 5vw, 72px);
  color: var(--white);
  background-image: url("assets/site/hero-kitchen.png");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 28, 46, 0.84), rgba(11, 28, 46, 0.48) 46%, rgba(11, 28, 46, 0.12));
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: #e9f0f6;
  font-size: clamp(18px, 2vw, 24px);
}

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

.primary-action,
.secondary-action,
.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}

.primary-action {
  color: var(--white);
  background: var(--teal);
}

.secondary-action {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.secondary-action.dark {
  background: var(--navy);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1280px;
  margin: -44px auto 0;
  position: relative;
  z-index: 2;
  padding: 0 16px;
}

.quick-stats div {
  background: var(--white);
  min-height: 92px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  font-size: 22px;
}

.quick-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.section-shell {
  max-width: 1280px;
  margin: 68px auto 0;
  padding: 0 16px;
}

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

.section-heading h2,
.company-copy h2,
.contacts h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

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

.primary-catalog {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.primary-catalog-card {
  display: grid;
  gap: 7px;
  min-height: 122px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.primary-catalog-card.active {
  border-color: var(--navy);
  background: #eef5f8;
  box-shadow: 0 0 0 3px rgba(16, 45, 76, 0.12);
}

.primary-catalog-card strong {
  font-size: 17px;
  line-height: 1.18;
}

.primary-catalog-card span {
  color: var(--teal);
  font-weight: 800;
  font-size: 13px;
}

.primary-catalog-card small {
  color: var(--muted);
  font-size: 12px;
}

.structure-panel {
  margin-bottom: 18px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(18, 42, 66, 0.06);
}

.structure-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}

.structure-panel h3 {
  margin: 0;
  font-size: 24px;
}

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

.structure-panel.compact .structure-navigator {
  grid-template-columns: 1fr;
}

.structure-panel.compact .structure-card {
  min-height: 0;
}

.structure-panel.compact .structure-card > button {
  grid-template-columns: minmax(180px, auto) 1fr;
  align-items: center;
  gap: 12px;
}

.structure-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  min-height: 156px;
  text-align: left;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.structure-card.active {
  border-color: var(--teal);
  background: #f0f8f7;
  box-shadow: 0 0 0 3px rgba(31, 122, 117, 0.13);
}

.structure-card > button {
  display: grid;
  gap: 4px;
  padding: 0;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.structure-card strong,
.structure-card small {
  display: block;
}

.structure-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.structure-card small,
.structure-hint {
  color: var(--muted);
  font-size: 13px;
}

.structure-children {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.structure-chip {
  min-height: 30px;
  max-width: 100%;
  padding: 0 9px;
  border: 1px solid #c7d7df;
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.structure-chip.active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.structure-hint {
  margin: 12px 0 0;
}

.catalog-search {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  background: #f6faf9;
  border: 1px solid #cfe0de;
  border-radius: 8px;
}

.catalog-search label {
  color: var(--navy);
  font-weight: 800;
}

.catalog-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.catalog-search input {
  min-height: 48px;
  font-size: 16px;
}

.catalog-search .mini-action {
  min-width: 104px;
}

.header-search {
  width: min(720px, 100%);
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.header-search .catalog-search-box {
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
}

.header-search input {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.96);
  font-size: 14px;
}

.header-search .mini-action {
  min-width: 0;
  min-height: 38px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.filters,
.lead-form,
.cart-drawer,
.product-dialog,
.callback-dialog {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters {
  position: sticky;
  top: 88px;
  padding: 18px;
}

.filter-head,
.toolbar,
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: currentColor;
  font-size: 22px;
}

.field,
.lead-form label,
.order-form label {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.field span,
.lead-form span,
.order-form span,
.filter-group legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(31, 122, 117, 0.32);
  outline-offset: 2px;
}

.filter-group {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.check-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  margin-top: 10px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--ink);
}

.toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.catalog-main {
  min-width: 0;
  scroll-margin-top: 124px;
}

.toolbar {
  min-height: 58px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toolbar span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

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

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.segmented button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  padding: 0 12px;
  background: transparent;
}

.segmented button.active {
  background: var(--white);
  box-shadow: 0 1px 6px rgba(18, 42, 66, 0.12);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.category-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 14px;
  text-align: left;
}

.category-card.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 122, 117, 0.14);
}

.category-card strong,
.category-card span {
  display: block;
}

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

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

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

.product-card {
  display: grid;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-media {
  display: grid;
  place-items: center;
  min-height: 168px;
  background:
    linear-gradient(135deg, rgba(16, 45, 76, 0.08), rgba(31, 122, 117, 0.13)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.55), rgba(255,255,255,0.55) 1px, transparent 1px, transparent 12px);
  color: var(--navy);
  position: relative;
}

.product-media img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: contain;
  padding: 14px;
  background: var(--white);
}

.equipment-glyph {
  width: 82px;
  height: 62px;
  border: 4px solid currentColor;
  border-radius: 5px;
  position: relative;
}

.equipment-glyph::before,
.equipment-glyph::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.equipment-glyph::before {
  left: 12px;
  right: 12px;
  top: 19px;
  height: 4px;
}

.equipment-glyph::after {
  left: 17px;
  right: 17px;
  bottom: -14px;
  height: 4px;
  box-shadow: -18px 0 0 currentColor, 18px 0 0 currentColor;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf3f3;
  color: #2e6260;
  font-size: 12px;
  font-weight: 700;
}

.product-card h3 {
  min-height: 58px;
  margin: 0;
  font-size: 16px;
  line-height: 1.22;
}

.sku {
  color: var(--muted);
  font-size: 12px;
}

.price-line {
  font-weight: 800;
  color: var(--blue);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.product-qty-control {
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(31, 122, 117, 0.38);
  border-radius: 6px;
  background: #f6faf9;
}

.product-qty-control span {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
}

.product-qty-control button {
  color: var(--teal);
  border-color: #b9d7d3;
  font-weight: 800;
}

.mini-action {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}

.products-grid.list-view .product-card {
  grid-template-columns: 220px 1fr;
}

.products-grid.list-view .product-media {
  min-height: 100%;
}

.products-grid.list-view .product-card h3 {
  min-height: auto;
}

.load-more {
  width: 100%;
  margin-top: 16px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
}

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

.service-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.service-grid h3 {
  margin: 14px 0 8px;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  position: relative;
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  border-color: var(--white);
}

.service-icon.install::before {
  width: 24px;
  height: 17px;
  border: 3px solid var(--white);
  border-top: 0;
}

.service-icon.install::after {
  width: 18px;
  height: 12px;
  border: 3px solid var(--white);
  transform: translateY(-8px) rotate(45deg);
  border-right: 0;
  border-bottom: 0;
}

.service-icon.supply::before {
  width: 24px;
  height: 18px;
  border: 3px solid var(--white);
  border-radius: 3px;
}

.service-icon.supply::after {
  width: 23px;
  height: 3px;
  background: var(--white);
  transform: translateY(-4px);
}

.service-icon.service::before {
  width: 24px;
  height: 24px;
  border: 4px solid var(--white);
  border-radius: 50%;
}

.service-icon.service::after {
  width: 5px;
  height: 18px;
  background: var(--white);
  border-radius: 4px;
  transform: rotate(35deg);
}

.company {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
  padding: 42px 16px;
  max-width: 1280px;
}

.company-copy p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.capability-list span {
  padding: 8px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  color: var(--navy);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.portfolio-grid article,
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.portfolio-card {
  cursor: pointer;
}

.portfolio-card.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 122, 117, 0.14);
}

.portfolio-grid h3,
.portfolio-grid p {
  margin-left: 18px;
  margin-right: 18px;
}

.portfolio-grid p {
  color: var(--muted);
  margin-bottom: 18px;
}

.portfolio-media {
  min-height: 170px;
  background: linear-gradient(135deg, rgba(16,45,76,.12), rgba(31,122,117,.18)), url("assets/site/hero-kitchen.png");
  background-size: cover;
  background-position: center;
}

.portfolio-media.kitchen {
  background-image: linear-gradient(90deg, rgba(16,45,76,.64), rgba(16,45,76,.12)), url("assets/site/bakery-1.jpg");
}

.portfolio-media.retail {
  background-position: center right;
}

.portfolio-media.metal {
  background-position: center left;
}

.portfolio-projects {
  margin-top: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.portfolio-projects h3 {
  margin: 0;
}

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

.portfolio-projects .icon-button {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-card {
  display: grid;
  gap: 10px;
  text-align: left;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0 14px;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card strong,
.project-card span {
  margin: 0 14px;
}

.project-card span {
  color: var(--muted);
}

.portfolio-post {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
}

.portfolio-post img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.portfolio-post-content {
  padding: 28px;
}

.portfolio-post-content h2 {
  margin: 0 0 12px;
}

.portfolio-post-content ul {
  padding-left: 20px;
}

.review-card {
  padding: clamp(20px, 4vw, 34px);
}

.review-card p {
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--ink);
}

.review-card span {
  display: block;
  color: var(--muted);
}

.lead-form,
.order-form {
  padding: 20px;
}

.lead-form h3 {
  margin: 0;
}

.policy span {
  color: var(--muted);
  font-weight: 400;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--teal);
  font-weight: 700;
}

.contacts {
  max-width: 1280px;
  margin: 34px auto;
  padding: 34px 16px 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.contacts p:last-child {
  max-width: 680px;
  color: var(--muted);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  color: var(--navy);
}

.map-box {
  display: grid;
  gap: 10px;
  width: min(720px, 100%);
  margin-top: 16px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.yandex-map {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
  background: #e9eef3;
}

.map-fallback {
  display: grid;
  place-content: center;
  gap: 6px;
  height: 320px;
  padding: 20px;
  text-align: center;
}

.map-box span,
.map-link {
  color: var(--muted);
}

.map-link {
  display: inline-flex;
  width: fit-content;
  margin: 0 14px 14px;
  font-weight: 800;
  color: var(--navy);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 28, 46, 0.44);
}

.cart-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  width: min(460px, 100vw);
  height: 100vh;
  padding: 18px;
  overflow: auto;
  transform: translateX(105%);
  transition: transform 180ms ease;
  box-shadow: var(--shadow);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-items {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.cart-empty {
  padding: 18px;
  background: var(--surface);
  border-radius: 8px;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 7px;
}

.qty-control button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}

.qty-control .remove-item {
  margin-left: 4px;
  color: #9b2f2f;
  border-color: #efd0d0;
  background: #fff7f7;
  font-size: 18px;
}

.qty-control .remove-item:hover {
  color: var(--white);
  background: #9b2f2f;
  border-color: #9b2f2f;
}

.cart-summary {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  background: #f6faf9;
  border: 1px solid #cfe0de;
  border-radius: 8px;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.cart-summary-line strong {
  color: var(--ink);
  text-align: right;
}

.cart-summary-line.total {
  padding-top: 8px;
  border-top: 1px solid #cfe0de;
  color: var(--ink);
  font-weight: 800;
}

.cart-summary-line.total strong {
  color: var(--blue);
}

.cart-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.checkout-action {
  width: 100%;
}

.checkout-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkout-form h3 {
  margin: 0;
}

.product-dialog,
.callback-dialog {
  width: min(920px, calc(100vw - 24px));
  padding: 0;
  box-shadow: var(--shadow);
}

.callback-dialog {
  width: min(420px, calc(100vw - 24px));
}

dialog::backdrop {
  background: rgba(11, 28, 46, 0.52);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.dialog-product {
  display: grid;
  grid-template-columns: 340px 1fr;
}

.dialog-product .product-media {
  min-height: 420px;
}

.dialog-product .product-media img {
  min-height: 420px;
}

.dialog-info {
  padding: 28px;
}

.dialog-info h2 {
  margin: 0 0 10px;
}

.spec-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 42%;
  color: var(--muted);
  font-weight: 700;
}

.ai-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--amber);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.ai-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ai-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-panel p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .header-center {
    grid-column: 1 / -1;
    width: 100%;
  }

  .main-nav {
    display: none;
  }

  .quick-stats,
  .primary-catalog,
  .structure-navigator,
  .category-strip,
  .products-grid,
  .service-grid,
  .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-layout,
  .company,
  .dialog-product,
  .portfolio-post {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .products-grid.list-view .product-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 560px;
    align-items: end;
  }

  .quick-stats,
  .primary-catalog,
  .structure-navigator,
  .category-strip,
  .products-grid,
  .service-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .structure-panel-head,
  .catalog-search-box,
  .toolbar,
  .contacts {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-search-box {
    display: flex;
  }

  .header-search .catalog-search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .toolbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .segmented,
  .hero-actions {
    width: 100%;
  }

  .segmented button,
  .primary-action,
  .secondary-action {
    flex: 1;
  }
}
