@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-alt: #e8edf3;
  --text: #1b2a3a;
  --muted: #556579;
  --primary: #003b71;
  --primary-strong: #002f5a;
  --accent: #f0b400;
  --line: #c9d3df;
  --ok: #008b5d;
  --radius: 12px;
  --shadow: 0 4px 14px rgba(11, 27, 45, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Rubik', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #d3dbe5;
}

.site-header__top {
  border-bottom: 1px solid #e4ebf2;
  background: #f7f9fb;
}

.site-header__top-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 18px;
}

.site-header__bar {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.site-logo:hover { text-decoration: none; }

.site-logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(130deg, #1d2733 0%, #364555 100%);
}

.site-logo__name {
  font-weight: 700;
  font-size: 14px;
  max-width: 190px;
}

.site-header__contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: max-content;
  flex-wrap: wrap;
}

.site-header__contacts span {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  user-select: text;
}

.site-header__search {
  width: 220px;
  opacity: 1;
  overflow: visible;
  transition: width .28s ease;
}

.site-header.has-scroll .site-header__search {
  width: 220px;
}

.search-shell {
  position: relative;
}

.search-shell input {
  width: 100%;
  border: 1px solid #bec9d6;
  border-radius: 8px;
  padding: 9px 12px 9px 34px;
  font: inherit;
  color: var(--text);
  background: #f7f9fb;
}

.search-shell::before {
  content: '⌕';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.site-nav a {
  color: var(--text);
  font-size: 13px;
  padding: 8px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.site-nav a.is-active,
.site-nav a:hover {
  background: #edf2f8;
  text-decoration: none;
}

.lang-switch,
.footer-lang {
  display: inline-flex;
  gap: 6px;
}

.lang-switch a,
.footer-lang a {
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 10px;
  color: var(--muted);
}

.lang-switch a.is-active,
.footer-lang a.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.cart-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--text);
}

.cart-icon:hover { text-decoration: none; }

.cart-icon__glyph { font-size: 18px; }

.cart-icon__count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-weight: 700;
}

.hero {
  max-width: 1360px;
  margin: 22px auto 0;
  padding: 20px 18px;
}

.hero__inner {
  background: linear-gradient(140deg, #083b6f 0%, #0a4f8e 58%, #0a4f8e 100%);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero__inner h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.hero__inner p {
  max-width: 1180px;
  margin: 0 0 18px;
  line-height: 1.55;
  font-size: 16px;
}

.hero-links {
  margin-top: 8px;
  max-width: 100%;
}

.hero-links__label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.82);
}

.hero-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-link-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.hero-link-chip:hover {
  text-decoration: none;
  background: rgba(255,255,255,.18);
}

.hero__search-wrap {
  max-width: 460px;
}

.catalog-shell {
  max-width: 1360px;
  margin: 18px auto 32px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
}

.seo-home {
  max-width: 1360px;
  margin: 0 auto 34px;
  padding: 0 18px;
}

.seo-home__grid,
.seo-copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

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

.seo-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.seo-panel h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.seo-panel p {
  margin: 0 0 10px;
  line-height: 1.66;
  color: var(--muted);
}

.seo-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f7f9fb;
  color: var(--primary);
  font-size: 14px;
  line-height: 1.25;
}

.seo-chip:hover {
  text-decoration: none;
  background: #edf3f9;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 14px;
  height: fit-content;
  position: sticky;
  top: 78px;
}

.filters label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.filters input,
.filters select,
.order-form input,
.order-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.filters .line {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 9px 12px;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: linear-gradient(180deg, #f8c832 0%, #e4a700 100%);
  color: #1f2b3a;
  border-color: #c59300;
  font-weight: 600;
}

.catalog-toolbar {
  padding: 6px 2px 12px;
  color: var(--muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.product-card {
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto 1fr;
}

.product-card__image-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.product-card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid #d3dbe5;
}

.product-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px 14px 14px;
  color: #fff;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(96, 104, 114, .34) 0%, rgba(88, 95, 104, .44) 38%, rgba(59, 64, 71, .88) 100%);
}

.product-image-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(120, 128, 138, .14) 0%, rgba(114, 122, 132, .22) 52%, rgba(78, 84, 92, .34) 100%);
}

.product-image-overlay::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(42, 47, 54, 0) 0%, rgba(42, 47, 54, .82) 100%);
}

.product-image-overlay > span {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(12, 16, 22, .75);
}

.product-image-overlay__name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.product-image-overlay__article,
.product-image-overlay__brand {
  font-size: 12px;
  line-height: 1.25;
  opacity: .98;
}

.product-card__body {
  padding: 11px 12px 12px;
  display: grid;
  gap: 8px;
}

.product-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.product-card__meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.product-card__price {
  font-weight: 800;
  font-size: 20px;
  color: #00508f;
}

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

.stock-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.stock-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9daec0;
}
.stock-dot.in::before { background: var(--ok); }

.pager {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-head {
  max-width: 980px;
  margin: 24px auto 0;
  padding: 0 18px;
}

.page-head h1 { margin: 0; }

.text-page,
.cart-page,
.product-page {
  max-width: 1180px;
  margin: 18px auto 34px;
  padding: 0 18px;
}

.text-page p {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 0 0 10px;
  line-height: 1.65;
}

.text-page--rich {
  margin-top: 22px;
}

.text-page--rich p {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 14px;
}

.text-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.82fr);
  gap: 20px;
  align-items: start;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f3f6fa 100%);
  border: 1px solid #d6e0ea;
  box-shadow: 0 12px 28px rgba(11, 27, 45, 0.08);
}

.text-hero-card__main h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.text-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.text-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8eef6;
  color: #28425f;
  font-size: 13px;
  font-weight: 700;
}

.text-lead {
  max-width: 840px;
  color: #2f4258;
  font-size: 18px;
  line-height: 1.72;
}

.text-facts-card {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #0f4f8a 0%, #0b3f72 100%);
  color: #fff;
}

.text-facts-card__label {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.text-facts-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.text-facts-card li {
  position: relative;
  padding-left: 18px;
  line-height: 1.58;
  color: rgba(255,255,255,.96);
}

.text-facts-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.text-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}

.text-section-card {
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid #d6e0ea;
  box-shadow: var(--shadow);
  align-self: start;
}

.text-section-card--accent {
  background:
    radial-gradient(circle at top right, rgba(240, 180, 0, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.text-section-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.15;
}

.text-prose {
  color: #33485f;
  font-size: 16px;
  line-height: 1.72;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.contact-mini-card {
  padding: 14px;
  border-radius: 14px;
  background: #f6f9fc;
  border: 1px solid #d7e2ec;
}

.contact-mini-card__label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #5a6f86;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.contact-mini-card__value {
  color: #203449;
  font-size: 15px;
  line-height: 1.58;
  font-weight: 600;
}

.details-table-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  border: 1px solid #d7e2ec;
}

.details-table-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.15;
}

.details-table {
  display: grid;
  gap: 0;
}

.details-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid #e2eaf1;
}

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

.details-row__label {
  color: #61758a;
  font-size: 14px;
  font-weight: 700;
}

.details-row__value {
  color: #203449;
  font-size: 15px;
  line-height: 1.58;
}

.seo-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.seo-info-card {
  padding: 20px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(240, 180, 0, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid #d6e0ea;
  box-shadow: var(--shadow);
}

.seo-info-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.18;
}

.seo-info-card p {
  margin: 0;
  color: #33485f;
  font-size: 15px;
  line-height: 1.72;
}

.placeholder-map-intro {
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  border: 1px solid #d6e0ea;
  box-shadow: var(--shadow);
}

.placeholder-map-intro h1 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.05;
}

.placeholder-map-intro p {
  margin: 0;
  color: #33485f;
  font-size: 16px;
  line-height: 1.68;
}

.placeholder-map-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef5fb;
  border: 1px solid #d6e2ee;
  color: #26405a;
  font-size: 15px;
  line-height: 1.55;
}

.placeholder-unmatched-card {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid #d6e0ea;
  box-shadow: var(--shadow);
}

.placeholder-unmatched-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.1;
}

.placeholder-unmatched-card p {
  margin: 0 0 14px;
  color: #3c5167;
  font-size: 15px;
  line-height: 1.65;
}

.placeholder-unmatched-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.placeholder-unmatched-item {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6f9fc;
  border: 1px solid #d8e2ec;
  color: #29425d;
}

.placeholder-unmatched-item strong {
  font-size: 14px;
  line-height: 1.2;
}

.placeholder-unmatched-item span {
  font-size: 14px;
  line-height: 1.45;
}

.placeholder-group-grid {
  display: grid;
  gap: 18px;
}

.placeholder-group-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid #d6e0ea;
  box-shadow: var(--shadow);
}

.placeholder-group-card__head h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.1;
}

.placeholder-group-card__head p {
  margin: 0 0 4px;
  color: #4c6076;
}

.placeholder-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 10px;
  margin-top: 12px;
}

.placeholder-preview {
  margin: 0;
  padding: 10px;
  border-radius: 14px;
  background: #f6f9fc;
  border: 1px solid #d8e2ec;
}

.placeholder-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: #e9eef4;
}

.placeholder-preview figcaption {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #24384d;
  word-break: break-word;
}

.placeholder-examples {
  margin-top: 12px;
}

.placeholder-examples__label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #5a6f86;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.placeholder-example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.placeholder-example {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf3f9;
  color: #29425d;
  font-size: 13px;
  font-weight: 700;
}

.landing-gallery {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.landing-image {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: zoom-in;
}

.landing-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(320px, 43%) 1fr;
  gap: 18px;
  align-items: start;
}

.product-media,
.product-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-media { padding: 14px; }
.product-info { padding: 16px; }

.product-media__main {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.product-media img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.product-media-seo {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #f5f8fb;
  border: 1px solid #d7e2ec;
}

.product-media-seo__lead {
  margin: 0 0 10px;
  color: #31475d;
  font-size: 14px;
  line-height: 1.55;
}

.product-media-seo__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-media-seo__facts span {
  display: block;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d9e3ec;
  color: #26415a;
  font-size: 14px;
  line-height: 1.4;
}

.map-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.map-card__head h2 {
  margin: 0 0 8px;
}

.map-card__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

.map-card__frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #d7e2ec;
  background: #eef3f8;
  min-height: 420px;
}

.map-card__frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.product-image-overlay--detail {
  padding: 22px 20px 20px;
  gap: 8px;
}

.product-image-overlay--detail .product-image-overlay__name {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  -webkit-line-clamp: 3;
}

.product-image-overlay--detail .product-image-overlay__article,
.product-image-overlay--detail .product-image-overlay__brand {
  font-size: 16px;
  line-height: 1.3;
}

.product-info h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.32;
}

.product-meta {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.product-stock {
  margin-top: 8px;
  font-weight: 600;
}
.product-stock.in { color: var(--ok); }
.product-stock.out { color: #b34a00; }

.product-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-seo {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.product-seo p {
  margin: 0 0 10px;
  line-height: 1.62;
}

.product-links {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.product-links h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

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

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

.cart-main {
  min-width: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 122px 1fr auto;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
}

.cart-item__media {
  position: relative;
  width: 122px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
}

.cart-item img {
  width: 122px;
  height: 92px;
  object-fit: cover;
  display: block;
}

.cart-item__overlay {
  padding: 10px 8px 8px;
  gap: 2px;
}

.cart-item__overlay .product-image-overlay__name {
  font-size: 11px;
  line-height: 1.15;
  -webkit-line-clamp: 2;
}

.cart-item__overlay .product-image-overlay__article,
.cart-item__overlay .product-image-overlay__brand {
  font-size: 10px;
  line-height: 1.15;
}

.cart-item__title {
  margin: 0 0 6px;
  font-weight: 700;
}

.cart-item__meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-item__qty-controls {
  display: flex;
  gap: 8px;
}

.cart-item__controls .btn {
  min-width: 120px;
}

.cart-item__qty-controls .btn {
  min-width: 56px;
  padding-left: 0;
  padding-right: 0;
}

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

.order-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  position: sticky;
  top: 96px;
}

.order-form-wrap__head {
  margin-bottom: 14px;
}

.order-form-wrap__head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.1;
}

.order-form-wrap__head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.order-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.order-form label {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}

.order-form__full,
.order-form__note,
.order-form .btn {
  grid-column: 1 / -1;
}

.order-form__note {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f9fc;
  border: 1px solid #d8e2ec;
  color: #30465c;
  font-size: 13px;
  line-height: 1.5;
}

.order-form .btn {
  width: 100%;
}

.order-status {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  display: none;
}

.order-status.is-show { display: block; }
.order-status.ok { background: #e8f8f1; color: #0b6f4a; border: 1px solid #9dd9c3; }
.order-status.err { background: #fff0eb; color: #9d3f1d; border: 1px solid #f1b8a4; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #f6f8fb;
}

.site-footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pay-logos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-logo {
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
}

.pay-logo--mir { background: #f2fffb; }
.pay-logo--visa { background: #f5f9ff; }
.pay-logo--mc { background: #fff7f1; }
.pay-logo--invoice { background: #f5f5f8; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 18, 30, 0.86);
  display: grid;
  place-items: center;
  padding: 20px;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.42);
}

.lightbox__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.fly-image {
  position: fixed;
  z-index: 99;
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
  pointer-events: none;
  transition: transform 0.95s cubic-bezier(.2,.7,.2,1), left 0.95s cubic-bezier(.2,.7,.2,1), top 0.95s cubic-bezier(.2,.7,.2,1), opacity 0.95s;
}

@media (max-width: 1180px) {
  .catalog-shell { grid-template-columns: 1fr; }
  .filters { position: static; }
  .seo-home__grid,
  .seo-copy,
  .seo-info-grid { grid-template-columns: 1fr; }
  .text-hero-card,
  .text-sections { grid-template-columns: 1fr; }
  .contact-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .site-header__bar {
    flex-wrap: wrap;
  }
  .site-nav {
    order: 5;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .site-footer__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .product-layout { grid-template-columns: 1fr; }
  .text-hero-card { padding: 22px; }
  .text-hero-card__main h1 { font-size: clamp(28px, 8vw, 42px); }
  .text-lead { font-size: 17px; }
  .details-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 640px) {
  .hero__inner { padding: 20px; }
  .hero-links__label { display: block; }
  .site-header__contacts {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .cart-item {
    grid-template-columns: 1fr;
  }
  .cart-item__media,
  .cart-item img { width: 100%; height: 180px; }
}

@media (max-width: 980px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .order-form-wrap {
    position: static;
  }
}

@media (max-width: 700px) {
  .order-form {
    grid-template-columns: 1fr;
  }
}
