/* ============================================================
   Масла.сайт Marketplace — sections (hero → footer)
   ============================================================ */

/* ---------------- HERO ---------------- */
.hero { padding: 28px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }

.hero-main {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background:
    radial-gradient(120% 120% at 12% 8%, #1B3A55 0%, transparent 55%),
    radial-gradient(130% 130% at 95% 100%, rgba(190,159,99,0.30) 0%, transparent 50%),
    linear-gradient(150deg, #0C141D 0%, #15273A 55%, #0A1119 100%);
  color: #fff; padding: 52px 56px;
  display: flex; flex-direction: column; min-height: 460px;
}
.hero-main::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 78% 26%, rgba(255,255,255,0.05) 1.5px, transparent 2px),
    radial-gradient(circle at 30% 78%, rgba(190,159,99,0.10) 1.5px, transparent 2px);
  background-size: 64px 64px, 48px 48px;
}
.hero-main > * { position: relative; z-index: 2; }
.hero-main .h-eyebrow { color: var(--bronze); }
.hero-main .h-eyebrow::before { background: var(--bronze); }
.hero-main h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 52px; line-height: 1.02; letter-spacing: -0.03em;
  margin: 20px 0 18px; max-width: 660px;
}
.hero-main h1 em { font-style: normal; color: #6FC5E2; }
.hero-main .lede { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,0.74); max-width: 500px; margin-bottom: auto; }
.hero-main .cta-row { display: flex; gap: 12px; margin: 32px 0 22px; flex-wrap: wrap; }
.hero-main .trust { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); }
.hero-main .trust .it { display: flex; align-items: center; gap: 10px; }
.hero-main .trust .it .ic { color: var(--bronze); flex-shrink: 0; }
.hero-main .trust .it b { font-family: var(--font-display); font-weight: 700; font-size: 15px; display: block; line-height: 1.1; }
.hero-main .trust .it span { font-size: 12px; color: rgba(255,255,255,0.55); }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-promo {
  flex: 1; border-radius: var(--r-xl); padding: 28px 30px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 222px;
}
.hero-promo.feat {
  background: linear-gradient(155deg, #fff 0%, #F0F6F9 100%); border: var(--hairline);
}
.hero-promo.feat .eyb { color: var(--cyan-700); }
.hero-promo.serv {
  background: linear-gradient(150deg, #C9AE76 0%, #BE9F63 60%, #A98B4E 100%); color: #fff;
}
.hero-promo .eyb { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px; opacity: 0.85; }
.hero-promo h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.015em; line-height: 1.12; margin-bottom: 8px; }
.hero-promo p { font-size: 13px; line-height: 1.45; opacity: 0.82; margin-bottom: 16px; max-width: 230px; }
.hero-promo .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-promo .price { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.hero-promo .price small { font-size: 12px; font-weight: 500; opacity: 0.6; display: block; }
.hero-promo .drum-mini {
  position: absolute; right: -10px; bottom: -16px; width: 116px; height: 168px;
  background: linear-gradient(180deg, #111 0%, #222 40%, #060606 100%);
  border-radius: 8px; box-shadow: -12px 12px 30px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--bronze); font-family: var(--font-display); font-weight: 800; font-size: 11px; text-align: center;
  transform: rotate(6deg);
}
.hero-promo .drum-mini::before, .hero-promo .drum-mini::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; background: var(--bronze); }
.hero-promo .drum-mini::before { top: 14px; } .hero-promo .drum-mini::after { bottom: 14px; }
.hero-promo.feat .body { max-width: 200px; }

/* ---------------- VALUE PROPS ---------------- */
.vprops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.vprop { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--soft); border-radius: var(--r-md); }
.vprop .ico { width: 46px; height: 46px; border-radius: var(--r-sm); background: #fff; box-shadow: var(--el-1); color: var(--cyan); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vprop .t { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.vprop .d { font-size: 13px; color: var(--neutral-500); line-height: 1.45; }

/* ---------------- CATEGORY GRID ---------------- */
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.catcard {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--soft); border: var(--hairline); padding: 22px 24px;
  min-height: 158px; display: flex; flex-direction: column;
  transition: border-color 180ms, box-shadow 180ms, transform 150ms, background 180ms;
}
.catcard:hover { border-color: transparent; box-shadow: var(--el-3); transform: translateY(-2px); background: #fff; }
.catcard .nm { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.18; color: var(--masla-navy); margin-bottom: 6px; max-width: 72%; letter-spacing: -0.01em; }
.catcard .ct { font-size: 13px; color: var(--neutral-500); margin-top: auto; }
.catcard .ct b { color: var(--masla-navy); font-weight: 700; }
.catcard .go { position: absolute; top: 22px; right: 22px; color: var(--neutral-300); transition: transform 150ms, color 150ms; z-index: 3; }
.catcard:hover .go { color: var(--cyan); transform: translate(2px,-2px); }
/* contextual line-art illustration, bottom-right */
.catcard .cat-ill { position: absolute; right: 14px; bottom: 12px; width: 116px; height: 100px; color: var(--masla-navy); opacity: 0.16; transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out), color 220ms; pointer-events: none; }
.catcard .cat-ill svg { width: 100%; height: 100%; overflow: visible; }
.catcard:hover .cat-ill { opacity: 0.62; color: var(--cyan-700); transform: translateY(-3px) scale(1.04); }
/* peeking product packshot, bottom-right */
.catcard .peek {
  position: absolute; right: -14px; bottom: -22px;
  width: 86px; height: 118px; transform: rotate(7deg);
  filter: drop-shadow(-8px 8px 16px rgba(19,22,29,0.16));
  transition: transform 220ms var(--ease-out);
}
.catcard:hover .peek { transform: rotate(3deg) translate(-2px,-4px); }
.catcard .peek .d {
  width: 100%; height: 100%; border-radius: 7px 7px 9px 9px; position: relative;
  background: linear-gradient(180deg, #181b21 0%, #262b33 42%, #0d0f13 100%);
}
.catcard .peek .d .bnd { position: absolute; left: 0; right: 0; height: 5px; opacity: 0.92; background: var(--masla-bronze); }
.catcard .peek .d .bnd { top: 16px; }
.catcard .peek .d .bnd.b2 { top: auto; bottom: 16px; }

/* ---------------- PRODUCT CARD ---------------- */
.prail-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ptab { padding: 9px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--neutral-500); transition: background 150ms, color 150ms; }
.ptab.on { background: var(--ink); color: #fff; }
.ptab:not(.on):hover { background: var(--soft); color: var(--masla-navy); }

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

.pc {
  position: relative; background: #fff; border: var(--hairline); border-radius: var(--r-md);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 180ms, box-shadow 180ms, transform 150ms;
}
.pc:hover { border-color: transparent; box-shadow: var(--el-3); transform: translateY(-3px); z-index: 2; }
.pc-media { position: relative; height: 168px; border-radius: var(--r-sm); background: linear-gradient(180deg, #fff, var(--soft)); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.pc-media .badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.pc-fav {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--el-1);
  display: flex; align-items: center; justify-content: center; color: var(--neutral-400);
  transition: color 150ms, transform 150ms; opacity: 0; transform: scale(0.9);
}
.pc:hover .pc-fav { opacity: 1; transform: scale(1); }
.pc-fav:hover { color: var(--danger); }
.pc-fav.on { color: var(--danger); opacity: 1; transform: scale(1); }

.pc .stock { align-self: flex-start; }
.pc .sku { font-family: var(--font-mono); font-size: 11px; color: var(--neutral-400); }
.pc .nm { font-size: 13.5px; line-height: 1.38; font-weight: 500; color: var(--masla-navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 56px; }
.pc .nm:hover { color: var(--cyan-700); }
.pc .meta-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pc .tag { font-size: 11px; color: var(--neutral-500); background: var(--soft); padding: 3px 8px; border-radius: 6px; font-weight: 500; }
.pc .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.pc .price { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--masla-navy); }
.pc .nds { font-size: 11px; color: var(--neutral-400); }
.pc .unit { font-size: 11px; color: var(--neutral-400); margin-left: auto; }

.pc-foot { display: flex; gap: 8px; align-items: stretch; }
.pc-add {
  flex: 1; background: var(--cyan); color: #fff; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; padding: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background 150ms;
}
.pc-add:hover { background: var(--cyan-700); }
.pc-add.added { background: var(--success); }
.pc-cmp {
  width: 42px; border-radius: var(--r-sm); border: var(--hairline-strong); color: var(--masla-navy);
  display: flex; align-items: center; justify-content: center; transition: border-color 150ms, color 150ms, background 150ms;
}
.pc-cmp:hover, .pc-cmp.on { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-50); }
.pc-favbtn:hover, .pc-favbtn.on { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }

/* qty stepper appears after adding */
.pc-qty { flex: 1; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--cyan); border-radius: var(--r-sm); overflow: hidden; }
.pc-qty button { width: 40px; align-self: stretch; color: var(--cyan-700); font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background 120ms; }
.pc-qty button:hover { background: var(--cyan-50); }
.pc-qty .v { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--masla-navy); }

/* drum/jerry illustration in card media */
.pdrum {
  width: 56px; height: 116px; margin-bottom: 8px;
  background: linear-gradient(180deg, #0e0e0e, #1d1d1d 35%, #060606);
  border-radius: 5px 5px 7px 7px; position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--bronze); font-family: var(--font-display); font-weight: 800; font-size: 8px; letter-spacing: 0.04em; text-align: center;
}
.pdrum::before, .pdrum::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--bronze); }
.pdrum::before { top: 10px; } .pdrum::after { bottom: 10px; }
.pdrum.blue { background: linear-gradient(180deg, #0b2655, #0E3A77 35%, #06183c); color: #fff; }
.pdrum.blue::before, .pdrum.blue::after { background: #4a82d2; }
.pdrum.green { background: linear-gradient(180deg, #133523, #1F5C3A 35%, #0a2014); color: #d6eecd; }
.pdrum.green::before, .pdrum.green::after { background: #4ea76b; }
.pdrum.bronze { background: linear-gradient(180deg, #5a4423, #8a6531 35%, #3a2a14); color: #f0e2c1; }
.pdrum.bronze::before, .pdrum.bronze::after { background: #e2c98a; }
.pjerry {
  width: 72px; height: 96px; margin-bottom: 8px; background: #0E3A77; border-radius: 4px; position: relative;
  display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 9px;
}
.pjerry::before { content: ""; position: absolute; top: -10px; right: 16%; width: 15px; height: 11px; background: inherit; border-radius: 2px 2px 0 0; }
.pjerry .lbl { background: #fff; color: #0E3A77; padding: 2px 7px; border-radius: 2px; font-size: 8px; }
.pjerry.lukoil { background: #C5101C; } .pjerry.lukoil .lbl { color: #C5101C; }
.pjerry.gpn { background: #14457A; } .pjerry.gpn .lbl { color: #14457A; }

/* ---------------- SERVICE BAND ---------------- */
.svc { border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(125deg, #0C141D 0%, #16273A 55%, #1E4A6B 100%); color: #fff; display: grid; grid-template-columns: 1.05fr 0.95fr; }
.svc-text { padding: 56px 52px; display: flex; flex-direction: column; }
.svc-text .h-eyebrow { color: var(--bronze); }
.svc-text .h-eyebrow::before { background: var(--bronze); }
.svc-text h2 { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -0.025em; line-height: 1.05; margin: 18px 0 16px; }
.svc-text h2 em { font-style: normal; color: #6FC5E2; }
.svc-text p { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.74); max-width: 460px; margin-bottom: 28px; }
.svc-text .steps { display: flex; gap: 12px; margin-bottom: 30px; }
.svc-text .step { flex: 1; }
.svc-text .step .n { width: 34px; height: 34px; border-radius: var(--r-pill); background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.svc-text .step h5 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.svc-text .step p { font-size: 12.5px; color: rgba(255,255,255,0.6); margin: 0; }
.svc-text .ctas { display: flex; gap: 12px; margin-top: auto; }
.svc-vis { position: relative; background: radial-gradient(circle at 65% 35%, rgba(190,159,99,0.3), transparent 55%), linear-gradient(135deg, #16273A, #0A1119); display: flex; align-items: center; justify-content: center; padding: 40px; }
.svc-card { width: 100%; max-width: 380px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.13); border-radius: var(--r-md); backdrop-filter: blur(12px); padding: 24px; }
.svc-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.svc-card .top h5 { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.svc-card .top .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bronze); }
.svc-card .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 9px 0; font-size: 13px; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.svc-card .row:last-child { border-bottom: 0; }
.svc-card .row .u { color: rgba(255,255,255,0.55); font-size: 11px; }
.svc-card .row .q { font-family: var(--font-mono); color: #6FC5E2; }

/* ---------------- BRANDS ---------------- */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand {
  height: 86px; border-radius: var(--r-md); border: var(--hairline); background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 0 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.02em; text-align: center;
  color: var(--neutral-400); filter: grayscale(1); transition: all 180ms;
}
.brand:hover { filter: grayscale(0); color: var(--masla-navy); box-shadow: var(--el-2); border-color: transparent; transform: translateY(-2px); }

/* ---------------- ARTICLES ---------------- */
.arts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.art {
  display: flex; flex-direction: column; background: #fff;
  border: var(--hairline); border-radius: var(--r-md); overflow: hidden;
  transition: box-shadow 180ms, transform 150ms, border-color 180ms;
}
.art:hover { box-shadow: var(--el-3); transform: translateY(-3px); border-color: transparent; }
.art-thumb { position: relative; aspect-ratio: 16/10; }
/* dark photographic placeholders — real photos drop in here; text lives BELOW on white */
.art-thumb.t1 { background: linear-gradient(135deg, #1d242b, #34403c 60%, #5a4a32); }
.art-thumb.t2 { background: linear-gradient(135deg, #0f1620, #1c2e44 60%, #2e4a6b); }
.art-thumb.t3 { background: linear-gradient(135deg, #1f1611, #3a2a1c 60%, #5b3f24); }
.art-thumb.t4 { background: linear-gradient(135deg, #0e1822, #1e3242 60%, #3f5564); }
.art-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.92); color: var(--cyan-900);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  padding: 5px 11px; border-radius: var(--r-pill); backdrop-filter: blur(4px);
}
.art-date {
  position: absolute; top: 12px; right: 12px;
  background: var(--ink); color: #fff; border-radius: var(--r-sm);
  padding: 7px 9px; text-align: center; line-height: 1.05;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.art-date b { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 0; }
.art-date i { font-style: normal; color: rgba(255,255,255,0.55); font-size: 9px; }
.art-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.art-body .ttl { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25; letter-spacing: -0.01em; color: var(--masla-navy); margin-bottom: 8px; }
.art-body .lead { font-size: 13px; color: var(--neutral-500); line-height: 1.5; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--cyan-700); }
.art-more .ar { transition: transform 150ms; }
.art:hover .art-more .ar { transform: translateX(3px); }

/* ---------------- CTA STRIP ---------------- */
.ctastrip { border-radius: var(--r-xl); background: linear-gradient(120deg, var(--cyan-50), #fff 60%, var(--cyan-50)); border: var(--hairline); padding: 48px 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.ctastrip h2 { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; line-height: 1.08; color: var(--masla-navy); margin-bottom: 10px; }
.ctastrip p { font-size: 16px; color: var(--neutral-500); max-width: 540px; }
.ctastrip .acts { display: flex; gap: 12px; }

/* ---------------- FOOTER ---------------- */
.ft { background: var(--ink); color: rgba(255,255,255,0.72); margin-top: 72px; }
.ft-top { padding: 56px 0 40px; }
.ft-top .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; gap: 40px; }
.ft h5 { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 16px; font-weight: 700; }
.ft a { display: block; font-size: 14px; padding: 5px 0; color: rgba(255,255,255,0.72); transition: color 120ms; }
.ft a:hover { color: var(--cyan); }
.ft-brand .logo { background: #fff; padding: 9px 13px; border-radius: var(--r-sm); display: inline-block; margin-bottom: 16px; }
.ft-brand .logo img { height: 30px; }
.ft-brand .desc { font-size: 14px; line-height: 1.6; opacity: 0.7; max-width: 300px; margin-bottom: 18px; }
.ft-contacts { display: flex; flex-direction: column; gap: 9px; }
.ft-contacts .r { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.ft-contacts .r .ic { color: var(--cyan); flex-shrink: 0; }
.ft-phone { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff; }
.ft-base { border-top: 1px solid rgba(255,255,255,0.08); }
.ft-base .wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; font-size: 13px; opacity: 0.5; }
.ft-pays { display: flex; gap: 8px; }
.ft-pays span { background: rgba(255,255,255,0.07); padding: 5px 11px; border-radius: 6px; font-size: 12px; font-weight: 600; opacity: 1; }

/* ---------------- TOAST ---------------- */
.toast-wrap { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff;
  padding: 14px 20px; border-radius: var(--r-pill); box-shadow: var(--el-pop); font-size: 14px; font-weight: 500;
  animation: toastIn 240ms var(--ease-out);
}
.toast .ic { color: #6FE0A8; }
.toast .x { margin-left: 6px; color: rgba(255,255,255,0.5); }
.toast .x:hover { color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* scrollbar polish for in-page lists */
.mk { scrollbar-width: thin; }
