/* CRM-1911: правки оформления карточки поверх шаблона proizvodstvo-sait (styles.css обновляется из шаблона целиком). */

/* блок «Реквизиты»: меньше воздуха между верхней линией блока и заголовком */
#req.sec { padding-top: 36px; }

/* CRM-1916/1918: блок «Типы заявок» — плашки как в каталоге delta.online/task:
   скругление, фото с растворением книзу, заголовок, описание, метки-пилюли, кнопка внизу.
   Отличия от /task: подложка под текстом серая (--c-grey), кнопка бирюзовая (--c-teal).
   CRM-1927: все размеры плашки заданы через масштаб --tk (1 = исходный макет: плашка 395 px, заголовок 20 px).
   На широком экране --tk = .75 и 4 плашки в ряд (было 3) — плашка меньше, пропорции те же; 900–1099 px — 3 в ряд
   в том же уменьшенном размере; 768–899 px — 2 в ряд в исходном размере; телефон — 1 в ряд, как раньше. */
.tgroup { border-top: 1px solid var(--line); }
.ttiles { --tk: .75; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(20px * var(--tk)); padding: 6px 0 28px; }
.ttile { position: relative; display: flex; flex-direction: column; border-radius: calc(20px * var(--tk)); border: 1px solid rgba(0, 0, 0, .08);
  background: var(--c-grey); color: #F7F7F6; overflow: hidden; text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s; }
.ttile:hover { background: #767676; border-color: rgba(0, 0, 0, .18); transform: translateY(-3px); }
.ttile:focus-visible { outline: 2px solid var(--c-teal); outline-offset: -4px; }
/* CRM-1921: фото без серой подливки — само уходит под заголовок и текст и там растворяется маской прозрачности */
.ttile__photo { position: absolute; left: 0; right: 0; top: 0; height: calc(340px * var(--tk)); display: block; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(140px * var(--tk)), rgba(0, 0, 0, .42) calc(196px * var(--tk)), rgba(0, 0, 0, .14) calc(250px * var(--tk)), transparent calc(320px * var(--tk)));
          mask-image: linear-gradient(180deg, #000 0, #000 calc(140px * var(--tk)), rgba(0, 0, 0, .42) calc(196px * var(--tk)), rgba(0, 0, 0, .14) calc(250px * var(--tk)), transparent calc(320px * var(--tk))); }
.ttile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .4s; }
.ttile:hover .ttile__photo img { transform: scale(1.04); }
.ttile__photo--empty { background: radial-gradient(120% 100% at 30% 0%, rgba(128, 169, 165, .35) 0%, rgba(128, 169, 165, 0) 60%); }
.ttile__body { position: relative; flex: 1; display: flex; flex-direction: column; gap: calc(10px * var(--tk)); padding: calc(194px * var(--tk)) calc(22px * var(--tk)) 0; }
.ttile__body > b { font-size: calc(20px * var(--tk)); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: #F7F7F6;
  text-shadow: 0 calc(1px * var(--tk)) calc(4px * var(--tk)) rgba(0, 0, 0, .55), 0 0 1px rgba(0, 0, 0, .4); }
.ttile__text { font-size: calc(15px * var(--tk)); line-height: 1.5; color: rgba(247, 247, 246, .9); text-shadow: 0 calc(1px * var(--tk)) calc(3px * var(--tk)) rgba(0, 0, 0, .5); }
.ttile .row__tags { margin-top: calc(2px * var(--tk)); gap: calc(6px * var(--tk)); }
.ttile .row__tags i { padding: calc(5px * var(--tk)) calc(10px * var(--tk)); border-radius: calc(8px * var(--tk)); border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07);
  font-size: calc(12px * var(--tk)); font-weight: 600; font-style: normal; color: rgba(247, 247, 246, .85); }
.ttile__foot { position: relative; display: flex; align-items: center; gap: calc(14px * var(--tk)); padding: calc(18px * var(--tk)) calc(22px * var(--tk)) calc(20px * var(--tk)); }
.ttile__btn { display: inline-flex; align-items: center; justify-content: center; gap: calc(10px * var(--tk)); height: calc(46px * var(--tk)); padding: 0 calc(20px * var(--tk));
  border-radius: calc(12px * var(--tk)); background: var(--c-teal); color: #121A19; font-weight: 700; font-size: calc(14px * var(--tk)); white-space: nowrap; transition: filter .15s; }
.ttile__btn svg { width: calc(18px * var(--tk)); height: calc(18px * var(--tk)); flex-shrink: 0; }
.ttile:hover .ttile__btn { filter: brightness(1.08); }
@media (max-width: 1099px) { .ttiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .ttiles { --tk: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .ttiles { grid-template-columns: 1fr; gap: 14px; }
  .ttile__photo { height: 330px; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 134px, rgba(0, 0, 0, .42) 188px, rgba(0, 0, 0, .14) 242px, transparent 310px); mask-image: linear-gradient(180deg, #000 0, #000 134px, rgba(0, 0, 0, .42) 188px, rgba(0, 0, 0, .14) 242px, transparent 310px); }
  .ttile__body { padding-top: 186px; }
  .ttile__body > b { font-size: 22px; }
  .ttile__text { font-size: 16px; }
  .ttile__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ttile, .ttile__photo img, .ttile__btn { transition: none; } }

/* CRM-1920: окно с формой заявки поверх карточки (iframe страницы заявки delta.online) */
.omodal { position: fixed; inset: 0; z-index: 1000; background: rgba(18, 18, 18, .64); display: flex; align-items: center; justify-content: center; padding: 20px; }
.omodal__box { position: relative; width: min(780px, 100%); height: min(900px, calc(100vh - 40px)); background: #0c0c0e; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.omodal__frame { width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity .2s; }
.omodal.is-ready .omodal__frame { opacity: 1; }
.omodal__load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #d6d2cb; font-size: 14px; }
.omodal.is-ready .omodal__load { display: none; }
.omodal__x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.omodal__x:hover { background: rgba(255, 255, 255, .26); }
.omodal-open, .omodal-open body { overflow: hidden; }
@media (max-width: 767px) { .omodal { padding: 0; } .omodal__box { width: 100%; height: 100%; border-radius: 0; } }

/* CRM-1924: разметка в строках контактов — жирный внутри текста не наследует размер подписи слева */
.cline span b, .cline span strong { font-size: inherit; font-weight: 700; color: var(--ink); }

/* CRM-1925: логотип в шапке и подвале (company.logo); .logo--only — без названия рядом */
.logo__img { display: block; height: 34px; max-height: 34px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; flex-shrink: 0; }
.logo--only .logo__img { height: 40px; max-height: 40px; max-width: 260px; }
@media (max-width: 767px) {
  .logo { min-width: 0; flex-shrink: 1; }   /* CRM-1948: на телефоне логотип ужимается — кнопки шапки на месте */
  .logo__img { height: 28px; max-height: 28px; max-width: min(140px, 100%); }
  .logo--only .logo__img { height: 32px; max-height: 32px; max-width: 100%; }
}

/* CRM-1931: «Наши товары» и страница каталога. Карточка товара и лента — по дизайну karta-tovara-tovar.html
   (assets/uploads): .pcard в стиле плашки заявки, стрелки ленты — общие .rail из styles.css. */
.sec--goods { padding-bottom: clamp(30px, 4vh, 48px); }
.sec--goods[hidden], .goods-req[hidden], .goods-tools[hidden], .goods-catsel[hidden], .goods-catsel__list[hidden] { display: none !important; }
.sec--goods .rail { margin-top: 4px; }
/* привязка прокрутки к карточкам учитывает поля ленты — первая карточка не уезжает к краю экрана */
.rail--goods .rail__track { scroll-padding-inline: var(--pad-x); }

.pcard {
  position: relative; display: flex; flex-direction: column; flex: 0 0 auto;
  scroll-snap-align: start;
  width: clamp(230px, 17vw, 268px);
  background: transparent;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--ink); }
.pcard--grid { width: auto; }
.pcard.is-hl { border-color: var(--ink); box-shadow: 0 0 0 3px var(--c-teal); }

.pcard__photo {
  position: relative; display: block; flex-shrink: 0;
  aspect-ratio: 1.25 / 1;            /* как у снимка товара: почти квадрат */
  background: var(--c-grey);
}
/* снимок вынут из потока: иначе его высота растягивает плашку */
.pcard__photo img {
  position: absolute; inset: 0; box-sizing: border-box;
  width: 100%; height: 100%; object-fit: contain; padding: 10px 14px 14px;
  mix-blend-mode: multiply;          /* белый фон снимка сливается с плашкой */
}
.pcard__photo:has(img) { background: var(--surface); }
.pcard__photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26%; pointer-events: none;
  background: linear-gradient(180deg, rgba(196,196,196,0) 0%, rgba(196,196,196,.5) 55%, var(--bg) 100%);
}
.pcard__photo--teal { background-color: var(--c-teal); }
.pcard__photo--blue { background-color: var(--c-blue); }
.pcard__photo--sand { background-color: var(--c-sand); }
.pcard__photo--olive { background-color: var(--c-olive); }
.pcard__photo--grey { background-color: var(--c-grey); }
.pcard__photo--yellow { background-color: var(--c-yellow); }
.pcard__nophoto { position: absolute; left: 12px; top: 12px; z-index: 1; font-size: 10.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: rgba(27, 27, 27, .5); }

.pcard__body { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 8px 10px 10px; min-height: 0; }
.pcard__art { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__name { display: block; color: inherit; }
.pcard__name b {
  font-size: 14.5px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
a.pcard__name:hover b { text-decoration: underline; text-underline-offset: 3px; }
.pcard__note {
  font-size: 12px; line-height: 1.3; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__tags { display: flex; flex-wrap: wrap; gap: 4px; overflow: hidden; max-height: 22px; }
.pcard__tags i {
  font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 7px; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box;
}
.pcard__price {
  display: flex; align-items: baseline; gap: 4px;
  margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.pcard__price b { font-size: 21px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pcard__ask { font-size: 13px; font-weight: 700; color: var(--ink); }
.pcard__stk { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.pcard__stk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #406B49; }
.pcard__stk--none::before { background: var(--muted); }
.pcard__btn {
  margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; border: 0; border-radius: var(--radius);
  background: var(--ink); color: #fff;
  font: 700 12px var(--font); cursor: pointer;
  transition: background .15s;
}
.pcard:hover .pcard__btn { background: var(--dark); }
.pcard__btn.is-in, .pcard:hover .pcard__btn.is-in { background: #406B49; }

/* кнопка «i» и характеристики внутри карточки */
.pcard__i {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.pcard__i:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pcard__info {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px 12px; overflow: hidden;
  background: var(--surface); cursor: default;
}
.pcard__info[hidden] { display: none; }
.pcard__info-head { display: flex; align-items: start; gap: 8px; }
.pcard__info-head b { font-size: 13.5px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.pcard__close {
  margin-left: auto; flex-shrink: 0;
  width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent; color: var(--ink-2); font-size: 11px; cursor: pointer;
}
.pcard__close:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pcard__specs { flex: 1; min-height: 0; overflow: auto; margin: 0; }
.pcard__specs dl { margin: 0; }
.pcard__specs dt { margin: 0; font-size: 10.5px; line-height: 1.3; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.pcard__specs dd { margin: 0 0 7px; padding-bottom: 7px; font-size: 12.5px; line-height: 1.3; font-weight: 600; border-bottom: 1px solid var(--line); }
.pcard__desc { margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.pcard__rest { margin: 0; font-size: 11px; color: var(--muted); }
.pcard__supp-note { margin: 0; font-size: 11.5px; color: var(--ink-2); }
.pcard__more { align-self: start; font-size: 12px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--ink); }

/* заготовки, пока товары загружаются */
.pcard--skel { min-height: 380px; cursor: default; border-color: var(--line);
  background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 70%) 0 0 / 200% 100%;
  animation: pcardSkel 1.4s linear infinite; }
.pcard--skel:hover { transform: none; border-color: var(--line); }
@keyframes pcardSkel { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* «В корзине N товаров · перейти к заявке» */
.goods-req { margin: 12px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.goods-req a { text-decoration: underline; text-underline-offset: 3px; }

/* страница каталога */
.goods-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 4px 0 6px; }
.goods-search { flex: 1 1 280px; max-width: 440px; }
/* поле поиска на светлом фоне страницы (.input в шаблоне — для тёмной формы) */
.goods-search .input { width: 100%; height: 48px; color: var(--ink); background: rgba(255, 255, 255, .45); border-color: var(--line-2); }
.goods-search .input:focus { border-color: var(--ink); background: var(--surface); }
.goods-search .input::placeholder { color: var(--muted); }
/* CRM-1932: категории — кнопка и выпадающий список */
.goods-catsel { position: relative; flex: 0 0 auto; display: flex; }
.goods-catsel__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; max-width: 300px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(255, 255, 255, .45); color: var(--ink);
  font: 600 14px var(--font); cursor: pointer; transition: border-color .15s, background .15s; }
.goods-catsel__btn:hover, .goods-catsel.is-open .goods-catsel__btn { border-color: var(--ink); }
.goods-catsel__btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.goods-catsel__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-catsel__btn svg { flex-shrink: 0; transition: transform .15s; }
.goods-catsel.is-open .goods-catsel__btn svg { transform: rotate(180deg); }
.goods-catsel__list { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  width: 340px; max-width: calc(100vw - 2 * var(--pad-x)); max-height: min(420px, 60vh); overflow: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.goods-catsel__opt { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 10px;
  border-radius: var(--radius); font-size: 14px; line-height: 1.3; color: var(--ink); cursor: pointer; outline: none; }
.goods-catsel__opt i { font-style: normal; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.goods-catsel__opt:hover, .goods-catsel__opt:focus { background: var(--panel); }
.goods-catsel__opt[aria-selected="true"] { font-weight: 700; }
.goods-catsel__opt[aria-selected="true"]::after { content: "✓"; margin-left: 6px; order: 3; }
.goods-count { margin: 4px 0 12px; font-size: 13px; color: var(--ink-2); min-height: 18px; }
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.goods-grid .pcard { width: auto; }
.goods-empty { grid-column: 1 / -1; margin: 10px 0; color: var(--ink-2); font-size: 14px; }

@media (max-width: 767px) {
  .pcard { width: 200px; }
  .pcard--grid, .goods-grid .pcard { width: auto; }
  .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard__price { flex-wrap: wrap; }
  .pcard__price b { font-size: 18px; }
  .pcard__tags { display: none; }
  .pcard--skel { min-height: 320px; }
  .goods-search { max-width: none; }
  /* поиск и «Категории» — в одну строку; список прижат к правому краю кнопки */
  .goods-tools { flex-wrap: nowrap; }
  .goods-search { flex: 1 1 0; min-width: 0; }
  .goods-catsel__btn { max-width: 150px; padding: 0 12px; }
  .goods-catsel__list { left: auto; right: 0; width: calc(100vw - 2 * var(--pad-x)); }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .pcard__btn { transition: none; }
  .pcard:hover { transform: none; }
  .pcard--skel { animation: none; }
}

/* CRM-1934: корзина сайта — значок в шапке, сообщение «в корзине», страница корзины (cart.js). Стиль шаблона карточки. */
.hcart {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink);
  transition: border-color .15s;
}
.hcart[hidden], .hcart__n[hidden] { display: none; }
.hcart:hover { border-color: var(--ink); }
.hcart__n {
  position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
}
.pcard__btn.is-in svg { display: none; }

.ctoast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px;
  border-radius: var(--radius); background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.ctoast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ctoast a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* страница корзины */
.sec--cart .sec__head { margin-bottom: 28px; }
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cart__loading, .cart__note { margin: 0; color: var(--ink-2); }
.cart__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cart__list, .cart__sec, .cart__sum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart__list { padding: 4px 20px; }
.cart__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700;
}
.cart__clear {
  border: 0; background: none; padding: 4px 0; cursor: pointer;
  font: 600 13px var(--font); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px;
}
.cart__clear:hover { color: var(--ink); }

.crow {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 112px 32px; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.crow:last-child { border-bottom: 0; }
.crow__ph {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: var(--radius); background: #fff;
}
.crow__ph img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.crow__ph--none { background: var(--c-grey); }
.crow__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.crow__art { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.crow__name { font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
a.crow__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.crow__meta { font-size: 12.5px; color: var(--ink-2); }
.crow__sum { text-align: right; font-size: 16px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.crow__rm {
  width: 32px; height: 32px; border: 1px solid transparent; border-radius: 50%;
  background: none; color: var(--ink-2); font-size: 13px; cursor: pointer;
}
.crow__rm:hover { border-color: var(--line-2); color: var(--ink); }
.crow.is-gone .crow__ph, .crow.is-gone .crow__name, .crow.is-gone .crow__art, .crow.is-gone .crow__sum { opacity: .45; }
.crow.is-gone .crow__meta { color: var(--c-red); font-weight: 600; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; }
.qty button {
  width: 34px; height: 36px; border: 0; background: none; cursor: pointer;
  font: 700 18px var(--font); line-height: 1; color: var(--ink);
}
.qty button:disabled { color: var(--line-2); cursor: default; }
.qty input {
  width: 52px; height: 36px; padding: 0; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  background: transparent; text-align: center; font: 700 15px var(--font); color: var(--ink); outline: none;
}
.qty input:focus { background: var(--panel); }

.cart__sec { padding: 20px 22px 22px; }
.cart__sec h3, .cart__sum h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.cart__sub { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-2); }
.cmode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cmode__card, .cdlv__row {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(255, 255, 255, .55); cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.cmode__card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 14px 44px; }
.cmode__card input, .cdlv__row input { position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.cmode__card b { font-size: 15px; }
.cmode__card > span { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.cmode__card:hover, .cdlv__row:hover { border-color: var(--ink); }
.cmode__card.is-on, .cdlv__row.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.cmode__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.cmode__tags i { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel); color: var(--ink-2); }
.cbuyer { margin-top: 16px; }
.cbuyer[hidden], .caddr[hidden], .cdd[hidden], .csum__err[hidden] { display: none; }

.cform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cfield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cfield--wide { grid-column: 1 / -1; }
.cfield label { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
.cfield label em { font-style: normal; color: var(--c-red); }
.cfield__opt { font-weight: 500; color: var(--muted); }
.cfield__help { font-size: 12px; color: var(--muted); }
.cart .input { height: 48px; color: var(--ink); background: #fff; border-color: var(--line-2); font-size: 15px; }
.cart .input--area { height: auto; min-height: 84px; padding: 12px 16px; }
.cart .input::placeholder { color: var(--muted); }
.cart .input:focus { border-color: var(--ink); background: #fff; }
.cart .input.is-bad { border-color: var(--c-red); box-shadow: inset 0 0 0 1px var(--c-red); }
.cart__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.cdd-wrap { position: relative; }
.cdd {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 300px; overflow: auto;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .35);
}
.cdd__opt { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--panel); cursor: pointer; }
.cdd__opt:last-child { border-bottom: 0; }
.cdd__opt b { font-size: 14px; }
.cdd__opt span { font-size: 12px; color: var(--ink-2); }
.cdd__opt:hover, .cdd__opt:focus { background: var(--panel); outline: none; }
.cparty {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--ink); border-radius: var(--radius); background: #fff;
}
.cparty > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cparty b { font-size: 15px; }
.cparty span { font-size: 12.5px; color: var(--ink-2); }

.cdlv { display: flex; flex-direction: column; gap: 8px; }
.cdlv__row { display: flex; align-items: center; gap: 14px; padding: 13px 16px 13px 44px; }
.cdlv__row input { top: 50%; margin-top: -9px; }
.cdlv__info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cdlv__info b { font-size: 14.5px; }
.cdlv__info span { font-size: 12.5px; color: var(--ink-2); }
.cdlv__price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.caddr { margin-top: 12px; }

.cart__sum { position: sticky; top: 88px; padding: 20px 22px 22px; }
.csum__seller {
  display: flex; align-items: center; gap: 12px; margin: -20px -22px 16px; padding: 14px 22px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .5);
}
.csum__logo {
  width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: var(--radius); background: var(--panel); font-size: 18px; font-weight: 800;
}
.csum__logo img { width: 100%; height: 100%; object-fit: contain; }
.csum__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.csum__who b { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.csum__who > span:last-child:not(.lbl) { font-size: 11.5px; color: var(--ink-2); }
.csum__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.csum__row b { white-space: nowrap; }
.csum__row--m { font-size: 13px; color: var(--ink-2); }
.csum__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 8px 0 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700;
}
.csum__total b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.csum__go { width: 100%; }
.csum__go:disabled { opacity: .55; cursor: default; }
.csum__err { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--c-red); }
.csum__warn { margin: 0 0 12px; font-size: 13px; line-height: 1.4; color: var(--c-red); }
.csum__note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.csum__note a { text-decoration: underline; text-underline-offset: 3px; }

.cart-empty, .cart-done {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 36px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.cart-empty p { margin: 0; font-size: 18px; font-weight: 700; }
.cart-done { outline: none; }
.cart-done h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.cart-done p { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.cart-done p b { color: var(--ink); }
.cart-done__ok {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #406B49; color: #fff; font-size: 24px; font-weight: 800;
}
.cart-done__go { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1099px) {
  .cart { grid-template-columns: minmax(0, 1fr); }
  .cart__sum { position: static; }
}
@media (max-width: 767px) {
  .hcart { width: 40px; height: 40px; }
  .ctoast { bottom: 16px; }
  .cart__list { padding: 2px 14px; }
  .crow {
    grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "ph info rm" "ph qty sum";
    gap: 10px 12px; align-items: center;
  }
  .crow__ph { grid-area: ph; width: 56px; height: 56px; align-self: start; }
  .crow__info { grid-area: info; }
  .crow .qty, .crow__qty { grid-area: qty; justify-self: start; }
  .crow__sum { grid-area: sum; }
  .crow__rm { grid-area: rm; justify-self: end; align-self: start; width: 28px; height: 28px; }
  .cart__sec, .cart__sum { padding: 16px; }
  .csum__seller { margin: -16px -16px 14px; padding: 12px 16px; }
  .cmode, .cform { grid-template-columns: minmax(0, 1fr); }
  .cart .input { height: 52px; font-size: 16px; }
  .cparty .btn { width: auto; height: 38px; font-size: 13px; }
  .cdlv__row { flex-wrap: wrap; row-gap: 4px; }
  .cart-empty, .cart-done { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ctoast { transition: none; }
}

/* CRM-1935: страница товара delta.online/{url}/catalog/{id} — по макету karta-tovara-tovar.html (assets/uploads):
   «хлебные крошки», фото и плашки, цена и «В корзину», «Наличие и доставка» (вместо демо-таблицы поставщиков),
   «Характеристики — полная таблица», «С этим берут». Плашки .tiles/.tile — из styles.css шаблона. */
.crumbs { margin: 0 0 20px; font-size: 12.5px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { margin: 0 6px; }
.crumbs b { color: var(--ink-2); font-weight: 600; }

.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.prod__media { min-width: 0; }
.prod__photo { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); padding: 28px; }
.prod__photo img { display: block; width: 100%; aspect-ratio: 1.25 / 1; object-fit: contain; mix-blend-mode: multiply; }
.prod__photo--plate { min-height: 320px; border: 0; padding: 0; }
.prod__photo--skel { min-height: 320px; border-color: var(--line);
  background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 70%) 0 0 / 200% 100%;
  animation: pcardSkel 1.4s linear infinite; }
.prod__photo--teal { background: var(--c-teal); }
.prod__photo--blue { background: var(--c-blue); }
.prod__photo--sand { background: var(--c-sand); }
.prod__photo--olive { background: var(--c-olive); }
.prod__photo--grey { background: var(--c-grey); }
.prod__photo--yellow { background: var(--c-yellow); }
.prod__plate-note {
  position: absolute; left: 14px; bottom: 14px; padding: 4px 9px; border-radius: 999px;
  background: rgba(244, 243, 241, .8); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.prod__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.prod__thumb {
  width: 64px; height: 64px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); cursor: pointer;
}
.prod__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.prod__thumb:hover { border-color: var(--ink); }
.prod__thumb.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.prod__body { min-width: 0; }
.prod__name { margin: 6px 0 8px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; overflow-wrap: anywhere; }
.prod__body .pcard__note { font-size: 13px; -webkit-line-clamp: 3; }
.prod__tiles { margin: 22px 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prod__tiles .tile, .supp__sum .tile { min-height: 96px; }
.prod__tiles .tile b { font-size: clamp(20px, 1.9vw, 28px); overflow-wrap: anywhere; }
.prod__tiles .tile span { font-size: 12.5px; }
.prod__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.prod__price { margin-right: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.prod__price b { font-size: 38px; font-weight: 800; letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.prod__price .prod__ask { font-size: 24px; letter-spacing: -.03em; }
.prod__cart.is-in, .prod__cart.is-in:hover { background: #406B49; border-color: #406B49; }
.prod__note { margin: 14px 0 0; max-width: 520px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.prod-miss { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px 0 12px; }
.prod-miss .prod__note { margin: 0 0 12px; font-size: 15px; }
.prod__desc { margin: 0 0 22px; max-width: 760px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; }
.prod__table { display: grid; grid-template-columns: 260px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.prod__table dt, .prod__table dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.prod__table dt { color: var(--ink-2); }
.prod__table dd { font-weight: 600; overflow-wrap: anywhere; }

/* «Наличие и доставка» — разметка таблицы поставщиков из макета */
.supp__sum { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.supp__sum .tile b { font-size: clamp(20px, 2vw, 30px); }
.supp__sum .tile span { font-size: 12.5px; }
.supp { border-top: 1px solid var(--line); }
.supp__head, .supp__row {
  display: grid; grid-template-columns: minmax(0, 1.6fr) 200px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.supp__head { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.supp__row.is-best { background: rgba(128, 169, 165, .22); }
.supp__row.is-best .supp__name { padding-left: 10px; }
.supp__name b { display: block; font-size: 15px; font-weight: 700; }
.supp__name i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.supp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.supp__price b { white-space: nowrap; font-size: 21px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.supp__term { font-size: 13px; color: var(--ink-2); }

@media (max-width: 1099px) {
  .prod { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .prod__table { grid-template-columns: 180px minmax(0, 1fr); }
  .supp__head { display: none; }
  .supp__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 14px 0; }
  .supp__row.is-best { padding: 14px 10px; }
  .supp__row.is-best .supp__name { padding-left: 0; }
  .supp__term { grid-column: 1 / -1; font-size: 12.5px; }
}
@media (max-width: 767px) {
  .prod__photo { padding: 16px; }
  .prod__photo--plate, .prod__photo--skel { min-height: 240px; padding: 0; }
  .prod__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod__price b { font-size: 32px; }
  .prod__table { grid-template-columns: minmax(0, 1fr); }
  .prod__table dt { padding-bottom: 0; border: 0; }
  .supp__sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .prod__photo--skel { animation: none; }
}

/* CRM-1936: оплата картой или СБП в корзине */
.csum__alt { width: 100%; margin-top: 8px; }
.cart-pend { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.cart-pend a, .cart-done p a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* CRM-1937: превью страницы товара в карточке товара CRM — щелчок по блоку открывает его правку */
.is-pp [data-edit] { cursor: pointer; outline: 2px dashed transparent; outline-offset: 4px; transition: outline-color .15s; }
.is-pp [data-edit]:hover { outline-color: #1f4ea0; }

/* CRM-1939: правка прямо на превью страницы товара в CRM */
.is-pp [data-inline] { cursor: text; outline: 1px dashed transparent; outline-offset: 3px; border-radius: 3px; transition: outline-color .15s; }
.is-pp [data-inline]:hover { outline-color: rgba(31, 78, 160, .55); }
.is-pp [data-inline]:focus { outline: 2px solid #1f4ea0; outline-offset: 3px; }
.is-pp [data-inline].is-empty::before { content: attr(data-ph); opacity: .55; pointer-events: none; }
.is-pp .prod__tiles .tile[data-tile] { cursor: pointer; }
.is-pp .prod__tiles .tile.is-active { box-shadow: 0 0 0 3px #1f4ea0; }
.is-pp .pcard__note[data-edit] { cursor: pointer; }
.pp-add { min-height: 96px; border: 2px dashed rgba(0, 0, 0, .28); border-radius: var(--radius, 10px); background: transparent;
  font: inherit; font-weight: 700; color: rgba(0, 0, 0, .55); cursor: pointer; }
.pp-add:hover { border-color: #1f4ea0; color: #1f4ea0; }
.pp-tb { position: absolute; z-index: 60; display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: #0f172a;
  border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.pp-tb[hidden] { display: none; }
.pp-tb__c { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); padding: 0; cursor: pointer; }
.pp-tb__c.on { border-color: #fff; box-shadow: 0 0 0 2px #5b8def; }
.pp-tb__sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .25); }
.pp-tb__b { border: 0; background: transparent; color: #fff; font: inherit; font-size: 12.5px; padding: 3px 8px; border-radius: 999px; cursor: pointer; }
.pp-tb__b:hover { background: rgba(255, 255, 255, .14); }
.pp-tb__b[aria-pressed="true"] { background: #fff; color: #0f172a; }
.pp-tb__b:disabled { opacity: .35; cursor: default; }

/* CRM-1940: ловушка для ботов в форме заявки — людям не видна */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* CRM-1941: окно «Заявка отправлена» после формы обратной связи */
.smodal { position: fixed; inset: 0; z-index: 1000; background: rgba(18, 18, 18, .64); display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: smodal-in .18s ease-out; }
.smodal__box { position: relative; width: min(460px, 100%); background: var(--surface, #F4F3F1); color: var(--ink, #1B1B1B);
  border-radius: 8px; padding: 36px 32px 28px; text-align: center; box-shadow: 0 24px 70px rgba(0, 0, 0, .4); animation: smodal-up .22s ease-out; }
.smodal__ic { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--c-teal, #80A9A5); color: #121A19;
  display: flex; align-items: center; justify-content: center; }
.smodal__t { margin: 0 0 10px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.smodal__p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.smodal__n, .smodal__c { margin: 0 0 10px; font-size: 13.5px; color: var(--muted, #7A7A7A); }
.smodal__n b { color: var(--ink, #1B1B1B); }
.smodal__c a { color: var(--ink, #1B1B1B); font-weight: 700; border-bottom: 1px solid rgba(0, 0, 0, .3); }
.smodal__ok { margin-top: 10px; min-width: 170px; }
.smodal__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent;
  color: var(--muted, #7A7A7A); font-size: 26px; line-height: 1; cursor: pointer; }
.smodal__x:hover { background: rgba(0, 0, 0, .06); color: var(--ink, #1B1B1B); }
.smodal-open, .smodal-open body { overflow: hidden; }
@keyframes smodal-in { from { opacity: 0; } }
@keyframes smodal-up { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .smodal, .smodal__box { animation: none; } }
@media (max-width: 767px) { .smodal__box { padding: 32px 20px 22px; } .smodal__t { font-size: 21px; } }

/* CRM-1944: страница заказа покупателя delta.online/{url}/order/{token} — по макету stranica-zakaza.html
   (строки состава — .oitem: имя .cline на сайте занято строками контактов) */
.ohead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 32px; align-items: start; margin-bottom: 26px; }
.ohead__main { display: flex; gap: 18px; min-width: 0; }
.ohead__main > div { min-width: 0; }
.ohead__ok {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #406B49; color: #F2F1EE;
}
.ohead__ok--wait { background: var(--c-teal); color: #121A19; }
.ohead__ok--bad { background: var(--c-red); color: #F6E9E7; }
.ohead__ok--off { background: var(--c-grey); color: #F7F7F6; }
.ohead h1 { font-size: clamp(30px, 4vw, 52px); margin-bottom: 10px; }
.ohead__meta { font-size: 14px; color: var(--ink-2); }
.ohead__meta b { font-weight: 700; color: var(--ink); }
.ohead__lead { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); max-width: 520px; }
.ohead__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ohead__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ohead__tiles .tile b { font-size: clamp(20px, 2vw, 30px); overflow-wrap: anywhere; }
.ohead__tiles .tile span { font-size: 12.5px; }
.osteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.osteps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ostep { background: var(--panel); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.ostep__dot { width: 12px; height: 12px; border-radius: 50%; margin-bottom: 6px; border: 2px solid var(--line-2); background: transparent; }
.ostep b { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.ostep span:not(.ostep__dot) { font-size: 12.5px; color: var(--muted); }
.ostep.is-done .ostep__dot { background: #406B49; border-color: #406B49; }
.ostep.is-now { background: var(--surface); }
.ostep.is-now .ostep__dot { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(27,27,27,.12); }
.ostep.is-now b::after { content: " — сейчас"; color: var(--muted); font-weight: 600; }
.ostep.is-next { opacity: .62; }
.ord { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.ord__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ord__side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.obox { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); }
.obox__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
}
.obox__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px;
  border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink-2);
}
.obox__foot b { font-size: 19px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.obox__note { padding: 0 18px 16px; font-size: 12px; color: var(--muted); }
.oitems { padding: 0 18px; }
.oitem {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 150px 120px; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.oitem:last-child { border-bottom: 0; }
.oitem__pic { display: block; aspect-ratio: 1.25 / 1; border-radius: 3px; overflow: hidden; background: var(--surface); }
.oitem__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.oitem__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.oitem__name { font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
a.oitem__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.oitem__cnt { font-size: 13px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.oitem__sum { text-align: right; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.oitem__sum b { font-size: 19px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.odl { display: grid; grid-template-columns: 180px minmax(0, 1fr); margin: 0; padding: 4px 18px 0; }
.odl dt, .odl dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.odl dt { color: var(--muted); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding-top: 14px; }
.odl dd { font-weight: 600; overflow-wrap: anywhere; }
.odl dd span { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.odl dd:last-of-type, .odl dt:last-of-type { border-bottom: 0; }
.needs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; }
.need--sm { padding: 16px 18px; }
.need--sm h3 { font-size: 15px; margin-bottom: 6px; }
.need--sm p { font-size: 13px; }
.sum__box { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); padding: 18px; }
.sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--ink-2); padding: 5px 0; }
.sum__row b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum__row--total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.sum__row--total span { font-size: 15px; font-weight: 700; color: var(--ink); }
.sum__row--total b { font-size: 27px; font-weight: 800; letter-spacing: -.04em; }
.sum__row--muted { font-size: 12.5px; color: var(--muted); }
.sum__row--muted b { font-weight: 600; color: var(--ink-2); }
.sum__box .btn { width: 100%; }
.sum__fine { margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.oseller { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.oseller > span:last-child { min-width: 0; }
.oseller__mark {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 3px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font: 800 18px var(--font); color: var(--ink-2);
}
.oseller b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.oseller i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.opaid { margin: 10px 0 14px; font-size: 12.5px; color: var(--ink-2); }
.opaid b { color: #2E4F36; }
.opaid i { font-style: normal; font-weight: 700; color: var(--ink); }
.sum__box--sm { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.ohelp { font-size: 13px; color: var(--ink-2); }
@media (max-width: 1200px) {
  .ohead { grid-template-columns: minmax(0, 1fr); }
  .ord { grid-template-columns: minmax(0, 1fr); }
  .ord__side { position: static; }
  .needs--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ohead__main { gap: 14px; }
  .ohead__ok { width: 44px; height: 44px; }
  .osteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .osteps--3 { grid-template-columns: minmax(0, 1fr); }
  .oitem { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; }
  .oitem__pic { grid-row: 1 / span 2; }
  .oitem__body { grid-column: 2 / 4; }
  .oitem__cnt { grid-column: 2; grid-row: 2; text-align: left; align-self: center; }
  .oitem__sum { grid-column: 3; grid-row: 2; }
  .odl { grid-template-columns: minmax(0, 1fr); }
  .odl dt { padding-bottom: 0; border: 0; }
}
@media (max-width: 600px) {
  .ohead__main { flex-direction: column; gap: 12px; }   /* значок над заголовком — кнопкам вся ширина */
}
/* CRM-1945: счёт на странице заказа — номер ссылкой, «Открыть счёт», «Скопировать ссылку на счёт» */
.ohead__meta a, .opaid a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ohead__meta a:hover, .opaid a:hover { text-decoration-color: var(--ink); }
.odocs { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.odocs a, .odocs button {
  padding: 0; border: 0; border-bottom: 1px solid var(--line-2); background: none; cursor: pointer;
  font: 700 12.5px var(--font); color: var(--ink);
}
.odocs a:hover, .odocs button:hover { border-color: var(--ink); }

/* CRM-1943: корзина — пункты выдачи и постаматы */
.cpvz { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.cpvz:empty { display: none; }
.cpvz__modes { display: flex; flex-wrap: wrap; gap: 8px; }
.cpvz__mode {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.cpvz__mode.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cpvz__mode input { accent-color: var(--ink); }
.cpvz__q { height: 44px; }
.cpvz__pts { display: flex; flex-direction: column; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cpvz__pt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
}
.cpvz__pt:last-child { border-bottom: 0; }
.cpvz__pt:hover, .cpvz__pt:focus-visible { background: var(--surface); outline: none; }
.cpvz__pt b { font-size: 14px; }
.cpvz__pt span, .cpvz__sel span { font-size: 13px; color: var(--ink-2); }
.cpvz__meta { font-size: 12px !important; color: var(--muted) !important; }
.cpvz__sel {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; border: 1px solid var(--ink);
  border-radius: var(--radius); background: #fff;
}
.cpvz__badge { font-size: 11px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) !important; }
.cpvz__sel b { font-size: 15px; }
.cpvz__change {
  margin-top: 6px; padding: 0; border: 0; background: none; font: 600 13px var(--font); color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.cpvz__manual a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* CRM-1959: страница товара (delta.online/{артикул} и delta.online/{адрес}/catalog/{id}) — фото и описание вровень,
   по присланному prod-media-align.css. Было: фото прижато к верху, под ним пустота (BTRY-DS22EAB0E-00 при 1440
   и 1920 — 179 px), колонка фото уже описания. Стало (от 1100 px): колонка фото чуть шире описания, колонки одной
   высоты, фотоблок тянется до низа описания, снимок по центру — нижние края сходятся.
   Отличие от присланного файла: снимок остаётся в рамке 1.25:1 (без height: 100% и aspect-ratio: auto) и встаёт
   по центру растянутого блока. Иначе высокое фото своей пропорцией раздувало бы строку, а кадр главного фото
   из админки (CRM-1958, .prod__frame) выглядел бы не так, как в превью «Кадр главного фото».
   Мобильная раскладка (< 1100 px) не меняется. */
@media (min-width: 1100px) {
  .prod { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: stretch; }
  /* колонка тянется на всю высоту строки; миниатюры остаются под фото */
  .prod__media { display: flex; flex-direction: column; }
  /* фотоблок занимает остаток колонки, снимок (или рамка кадра) — по центру */
  .prod__photo { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }
  .prod__photo > img, .prod__photo > .prod__frame { width: 100%; min-width: 0; }
}

/* «фото нет» — по центру плашки, а не в левом нижнем углу; min-height: 320px у плашки — нижняя граница,
   когда описание короткое */
.prod__photo--plate { display: flex; align-items: center; justify-content: center; }
.prod__photo--plate .prod__plate-note { position: static; }
