/* Вариант C поверх настоящих страниц сайта. Палитра прежняя тёмная, меняется вёрстка. */
@font-face { font-family: "EZ Display"; font-weight: 700; font-display: swap; src: url("/assets/design-b/oswald-700-latin.woff2") format("woff2"); }
@font-face { font-family: "EZ Display"; font-weight: 700; font-display: swap; src: url("/assets/design-b/oswald-700-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

html[data-ez-design="C"] {
  --c-dark: #171310; --c-dark-2: #241d17; --c-line: #484033; --c-sand: #ede2cc; --c-sand-2: #bcb098;
  --c-studio: #eae7e2; --c-orange: #e08a3c;
  --c-display: "EZ Display", "Oswald", system-ui, sans-serif;
  --c-gutter: clamp(16px, 4vw, 56px);
}
html[data-ez-design="C"] body { background: var(--c-dark); color: var(--c-sand); }
html[data-ez-design="C"] main :is(h1, h2) { font-family: var(--c-display); line-height: 1.1; letter-spacing: 0; text-wrap: balance; }
html[data-ez-design="C"] main h1 { font-size: clamp(32px, 4.6vw, 60px); }
html[data-ez-design="C"] main h2 { font-size: clamp(26px, 3.2vw, 42px); }
html[data-ez-design="C"] :is(.blog-card-title, .model-card-name, .adv-title) { font-family: var(--c-display); }

/* Шапка */
html[data-ez-design="C"] .site-header { background: var(--c-dark); border-bottom: 1px solid var(--c-line); }
html[data-ez-design="C"] #main-header { background: var(--c-dark); border-bottom: 1px solid var(--c-line); }
html[data-ez-design="C"] :is(.logo-text, #main-header a[href="/"] span) { font-family: var(--c-display); text-transform: uppercase; letter-spacing: .02em; }

/* Кнопки: прямые углы, крупный оранжевый */
html[data-ez-design="C"] :is(.btn-primary, .btn-secondary, .cta-btn, .nav-cta, .mobile-cta-bar a, .mobile-cta-bar button) { border-radius: 2px; }
html[data-ez-design="C"] :is(.btn-primary, .nav-cta, .cta-btn:not([style*="background"])) { background: var(--c-orange); color: var(--c-dark) !important; }
/* вторичные кнопки со своим тёмным фоном: светлый текст и рамка */
html[data-ez-design="C"] .cta-btn[style*="background"] { color: var(--c-sand) !important; border: 1px solid var(--c-line); }

/* Карточки техники: одно фото в одном стиле, крупная цена */
html[data-ez-design="C"] .catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); margin: 20px 0 40px; }
html[data-ez-design="C"] :is(.catalog-grid .model-card, .model-cards-grid .model-card, .post-models .model-card) { background: var(--c-dark-2); border: 1px solid var(--c-line); border-radius: 0; overflow: hidden; }
html[data-ez-design="C"] .model-card:hover { border-color: var(--c-orange); }
html[data-ez-design="C"] .model-card-img-wrap { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-studio); }
html[data-ez-design="C"] .model-card-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
html[data-ez-design="C"] .catalog-grid .model-card { display: flex !important; flex-direction: column; }
html[data-ez-design="C"] .catalog-grid .model-card-body { display: flex; flex: 1; flex-direction: column; padding: 14px 16px; }
html[data-ez-design="C"] .catalog-grid .model-card-name { font-size: 1.4rem; line-height: 1.18; color: var(--c-sand); overflow-wrap: anywhere; }
html[data-ez-design="C"] .catalog-grid .model-card-price { margin-top: auto; padding-top: 8px; font: 700 1.6rem/1.2 var(--c-display); color: var(--c-orange); }
html[data-ez-design="C"] .catalog-grid .model-card-desc { display: none; }
html[data-ez-design="C"] .catalog-grid .model-card-cta { display: flex; justify-content: space-between; align-items: center; min-height: 46px; margin-top: 10px; border-top: 1px solid var(--c-line); font-weight: 700; font-size: .9rem; }
html[data-ez-design="C"] .catalog-grid .model-card-cta::after { content: "\2197"; color: var(--c-orange); font-size: 1.2rem; }
html[data-ez-design="C"] .catalog-grid > :not(.model-card) { grid-column: 1 / -1; }
html[data-ez-design="C"] .badge-pill { display: none; }

/* Плитки разделов */
.c-ride { padding: 8px 0 32px; }
.c-ride.c-full { padding: 32px var(--c-gutter) 40px; }
.c-ride-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
html[data-ez-design="C"] .c-ride-head h2 { margin: 0; text-transform: uppercase; font-size: clamp(32px, 4.3vw, 60px); }
.c-ride-head a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: .9rem; text-decoration: underline; text-decoration-color: var(--c-orange); text-underline-offset: 5px; }
.c-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.c-kind { position: relative; display: flex; flex-direction: column; min-width: 0; padding-bottom: 14px; background: var(--c-dark-2); border: 1px solid var(--c-line); color: var(--c-sand); text-decoration: none; }
.c-kind:hover { border-color: var(--c-orange); }
.c-kind-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.c-kind-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.c-kind:hover img { transform: scale(1.03); }
.c-kind b { padding: 12px 14px 0; font: 700 clamp(20px, 2.2vw, 32px)/1.1 var(--c-display); text-transform: uppercase; overflow-wrap: anywhere; }
.c-kind small { padding: 7px 14px 0; font-size: .82rem; line-height: 1.4; color: var(--c-sand-2); }
.c-kind em { margin-top: auto; padding: 10px 40px 0 14px; color: var(--c-orange); font-style: normal; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.c-kind i { position: absolute; right: 12px; bottom: 12px; color: var(--c-orange); font-style: normal; font-size: 1.25rem; line-height: 1; }
.c-kind.c-help { justify-content: flex-end; border-color: var(--c-orange); }
button.c-kind { font: inherit; text-align: left; cursor: pointer; }

.c-chips { display: flex; gap: 6px; margin: 16px 0 0; overflow-x: auto; }
.c-chips a { display: flex; flex: 0 0 auto; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--c-line); font-size: .9rem; color: var(--c-sand); }
.c-chips a[aria-current] { background: var(--c-orange); border-color: var(--c-orange); color: var(--c-dark); font-weight: 700; }

/* Главная */
.c-banner { padding-top: 69px; overflow: hidden; }
.c-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 32px; align-items: center; padding: 20px var(--c-gutter); }
html[data-ez-design="C"] .c-banner h1 { grid-column: 1; margin: 0; text-transform: uppercase; font-size: clamp(34px, 4.2vw, 62px); line-height: 1.02; }
.c-copy p { grid-column: 1; max-width: 52ch; margin: 0; color: var(--c-sand-2); }
.c-actions { display: flex; grid-column: 2; grid-row: 1 / span 2; flex-wrap: wrap; gap: 10px; }
.c-row { --cut: 70px; display: flex; height: clamp(420px, calc(100vh - 322px), 760px); }
.c-row a { position: relative; flex: 1; min-width: 0; margin-left: calc(8px - var(--cut)); overflow: hidden;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); animation: c-down .9s cubic-bezier(.16, 1, .3, 1) both; transition: flex-grow .45s ease; }
.c-row a:first-child { margin-left: 0; clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
.c-row a:nth-child(2) { animation-name: c-up; animation-delay: .35s; }
.c-row a:last-child { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); animation-delay: .7s; }
.c-row a:hover, .c-row a:focus-visible { flex-grow: 1.35; }
.c-row img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.c-row a:first-child img { object-position: 50% 6%; }
.c-row span { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; padding: 60px 16px 20px;
  background: linear-gradient(transparent, rgba(10, 7, 5, .88)); color: #fff; }
.c-row b { font-size: clamp(20px, 2vw, 30px); text-transform: uppercase; }
.c-row em { font-style: normal; color: var(--c-sand-2); }
@keyframes c-down { from { opacity: 0; transform: translate(60px, -100%); } to { opacity: 1; transform: none; } }
@keyframes c-up { from { opacity: 0; transform: translate(-60px, 100%); } to { opacity: 1; transform: none; } }
.c-more { padding: 40px var(--c-gutter); display: flex; flex-direction: column; align-items: center; text-align: center; }
.c-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--c-studio); color: #1d1814; }
.c-split video { width: 100%; height: 100%; max-height: 560px; object-fit: contain; background: var(--c-dark-2); }
.c-split div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: 40px var(--c-gutter); }
html[data-ez-design="C"] .c-split h2 { margin: 0; color: #1d1814; }
.c-split p { max-width: 52ch; margin: 0; }
.c-split a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; background: #1d1814; color: #fbfaf8; font-weight: 700; }

/* Страница модели */
html[data-ez-design="C"] .product-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 48px); }
html[data-ez-design="C"] .product-grid > div:first-child { position: sticky; top: 90px; min-width: 0; }
html[data-ez-design="C"] .gallery-main img { border-radius: 0; background: var(--c-studio); object-fit: contain; height: auto; }
html[data-ez-design="C"] .thumb { border-radius: 0; }
html[data-ez-design="C"] .product-grid .price { font: 700 clamp(38px, 4.6vw, 58px)/1.1 var(--c-display); }
html[data-ez-design="C"] :is(.spec, .adv-card, .cta-box, .facts, .dost) { border-radius: 0; }
html[data-ez-design="C"] .spec { background: var(--c-dark-2); border: 1px solid var(--c-line); }
.c-thumbs-note { margin: 8px 0 0; font-size: .8rem; color: var(--c-sand-2); }

/* поверх старых правил первого экрана и карточек */
html[data-ez-design="C"] .c-split .payment-receipt { max-width: 52ch; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; color: #3d352c; font-size: 1rem; }
.c-more { gap: 18px; }
.c-more > * { margin-block: 0; }
html[data-ez-design="C"] .c-more .dust-seals { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 10px; width: 100%; max-width: 900px; margin: 0; }
html[data-ez-design="C"] .c-more .dust-seal { display: flex; flex: 1 1 220px; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--c-line); }
html[data-ez-design="C"] .catalog-grid .model-card-cta { padding: 0; background: none; border-width: 1px 0 0; border-radius: 0; color: var(--c-sand); font-family: inherit; letter-spacing: 0; text-transform: none; }
html[data-ez-design="C"] main > h1 { max-width: 22ch; font-size: clamp(30px, 4vw, 52px); }
html[data-ez-design="C"] main > .c-ride { padding-top: 24px; }
html[data-ez-design="C"] .cta-btn { box-sizing: border-box; max-width: 100%; white-space: normal; }

/* лента отгрузок: фильтры переносятся, широкая таблица листается внутри себя */
html[data-ez-design="C"] .all-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
html[data-ez-design="C"] .all-filters > * { flex: 1 1 140px; min-width: 0; max-width: 100%; }
html[data-ez-design="C"] .shipments-archive > div { max-width: 100%; }
html[data-ez-design="C"] .status-badge { font-size: .75rem; }

@media (max-width: 900px) {
  .c-split, html[data-ez-design="C"] .product-grid { grid-template-columns: minmax(0, 1fr); }
  .c-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .c-actions { flex-wrap: wrap; }
  .c-row { --cut: 34px; flex-direction: column; height: auto; }
  .c-row a, .c-row a:first-child, .c-row a:last-child { flex: none; height: 400px; margin: calc(6px - var(--cut)) 0 0; clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
  .c-row a:first-child { margin-top: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
  .c-row a:last-child { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
  .c-row span { padding-bottom: calc(var(--cut) + 8px); }
  .c-row a:last-child span { padding-bottom: 20px; }
  html[data-ez-design="C"] .product-grid > div:first-child { position: static; }
  .c-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html[data-ez-design="C"] .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  /* таблицы на телефоне: характеристики помещаются целиком, сравнения компактнее */
  html[data-ez-design="C"] main :is(table td, table th) { padding-inline: 8px; font-size: .84rem; }
  html[data-ez-design="C"] .section table { width: 100%; }
  html[data-ez-design="C"] table.compare { min-width: 0; width: 100%; }
  html[data-ez-design="C"] table.compare tr > :is(:nth-child(2), :nth-child(5)) { display: none; }
  html[data-ez-design="C"] .section table :is(td, th) { white-space: normal; overflow-wrap: anywhere; }
  html[data-ez-design="C"] .catalog-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .c-ride.c-full { padding-block: 24px 28px; }
  .c-kind b { padding-inline: 10px; font-size: clamp(17px, 4.6vw, 24px); }
  .c-kind small { padding-inline: 10px; font-size: .76rem; }
  .c-kind em { padding-inline: 10px 30px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .c-kind-photo img { transition: none; } .c-row a { animation: none; transition: none; } }
