/* /market/* — block of departmental contacts + CTA + "How we work" + "Pickup tariffs" */

/* ---------- Departmental contact + CTA ---------- */
.mp-contact {
  background: #1f1f23;
  color: #fff;
  padding: 48px 16px;
  margin: 0;
}
.mp-contact-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.mp-contact-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.mp-contact-sub {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin: 0 0 28px;
  max-width: 720px;
  line-height: 1.5;
}
.mp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.mp-contact-col h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  margin: 0 0 14px;
}
.mp-contact-col a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .15s ease;
}
.mp-contact-col a:hover { color: #ff5566; }
.mp-contact-col a.is-todo { color: rgba(255,255,255,.45); font-style: italic; }
.mp-contact-col a.is-todo::after { content: " (скоро)"; font-size: 12px; color: rgba(255,255,255,.35); }

.mp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #d11f2b;
  color: #fff !important;
  padding: 16px 22px !important;
  border-radius: 12px;
  font-size: 16px !important;
  font-weight: 700;
  border: none !important;
  text-align: center;
  transition: background .15s ease;
}
.mp-cta-btn:hover { background: #b21822; color: #fff !important; }
.mp-cta-sub {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .mp-contact { padding: 32px 16px; }
  .mp-contact-title { font-size: 22px; }
  .mp-contact-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- "How we work" with steps + chips ---------- */
.mp-howwework {
  padding: 56px 16px;
  background: #f9f8f5;
}
.mp-howwework-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.mp-howwework-title {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #1f1f23;
}
.mp-howwework-sub {
  font-size: 16px;
  color: #4a4a52;
  margin: 0 0 36px;
  max-width: 800px;
  line-height: 1.55;
}
.mp-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.mp-step {
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px;
  border: 1px solid rgba(0,0,0,.05);
}
.mp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #d11f2b;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.mp-step-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1f1f23;
}
.mp-step-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #5a5a64;
  margin: 0;
}
@media (max-width: 980px) {
  .mp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .mp-steps { grid-template-columns: 1fr; }
}

/* ---------- Resources block (PDF, video, box example, schedule) ---------- */
.mp-resources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.mp-resource {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mp-resource h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f1f23;
}
.mp-resource p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5a5a64;
}
.mp-resource a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #d11f2b;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.mp-resource a:hover { text-decoration: underline; }
.mp-resource img {
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
}
.mp-resource-iframe {
  width: 100%;
  aspect-ratio: 16/10;
  border: 0;
  border-radius: 10px;
  margin-top: 10px;
}
@media (max-width: 760px) {
  .mp-resources { grid-template-columns: 1fr; }
}

/* ---------- Pickup tariffs (Crimea) ---------- */
.mp-pickup {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,.05);
  margin-bottom: 24px;
}
.mp-pickup h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  color: #1f1f23;
}
.mp-pickup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.mp-pickup-card {
  background: #f9f8f5;
  border-radius: 10px;
  padding: 16px 18px;
}
.mp-pickup-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1f1f23;
}
.mp-pickup-card ul {
  margin: 0;
  padding-left: 18px;
}
.mp-pickup-card li {
  font-size: 14px;
  line-height: 1.55;
  color: #4a4a52;
  margin-bottom: 4px;
}
.mp-pickup-discount {
  background: #e6f7e6;
  color: #1d6a1d;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.mp-pickup-discount.is-free {
  background: #dff0d8;
  color: #14591d;
}
@media (max-width: 540px) {
  .mp-pickup-grid { grid-template-columns: 1fr; }
}

/* ---------- Schedule callout ---------- */
.mp-schedule {
  background: #fff5e6;
  border-left: 4px solid #f0a040;
  padding: 18px 22px;
  border-radius: 6px;
  margin-bottom: 24px;
}
.mp-schedule h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #1f1f23;
}
.mp-schedule p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: #4a4a52; }
.mp-schedule a {
  display: inline-block;
  font-weight: 700;
  color: #d11f2b;
  font-size: 14px;
  text-decoration: none;
  margin-top: 4px;
}
.mp-schedule a:hover { text-decoration: underline; }

/* ---------- Disclaimer ---------- */
.mp-disclaimer {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  padding: 14px 18px;
  border: 1px dashed rgba(0,0,0,.12);
  border-radius: 8px;
  margin-top: 18px;
}

/* ============================================================
   ИНТЕРАКТИВ: плавное/красочное появление — только market-зона
   (market.css грузится только на /market/* и последним в <head>)
   ============================================================ */
.reveal { transition: opacity .75s cubic-bezier(.16,.84,.44,1), transform .75s cubic-bezier(.16,.84,.44,1); }
html.js .reveal { opacity: 0; transform: translateY(28px) scale(.985); }
html.js .reveal.show { opacity: 1; transform: none; }

/* Каскад: дочерние карточки появляются волной */
.grid-3 > .reveal:nth-child(2),
.mp-resources > .reveal:nth-child(2) { transition-delay: .10s; }
.grid-3 > .reveal:nth-child(3),
.mp-resources > .reveal:nth-child(3) { transition-delay: .20s; }
.mp-resources > .reveal:nth-child(4) { transition-delay: .30s; }
.mp-steps > .reveal:nth-child(1) { transition-delay: .04s; }
.mp-steps > .reveal:nth-child(2) { transition-delay: .12s; }
.mp-steps > .reveal:nth-child(3) { transition-delay: .20s; }
.mp-steps > .reveal:nth-child(4) { transition-delay: .28s; }
.mp-steps > .reveal:nth-child(5) { transition-delay: .36s; }
.mp-pickup-grid > .reveal:nth-child(2) { transition-delay: .10s; }

/* Карточки: подъём + красочная тень на наведении */
.mp-step, .mp-resource, .mp-pickup-card,
section .reveal[style*="border-radius"] {
  transition: transform .3s cubic-bezier(.16,.84,.44,1), box-shadow .3s ease,
              opacity .75s cubic-bezier(.16,.84,.44,1);
  will-change: transform;
}
.mp-step:hover, .mp-resource:hover, .mp-pickup-card:hover,
section .reveal[style*="border-radius"]:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px -14px rgba(209,31,43,.30);
}
.mp-step { transition-property: transform, box-shadow, opacity; }
.mp-step-num { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.mp-step:hover .mp-step-num { transform: scale(1.14) rotate(-5deg); }

/* Кнопки: цветной блик-проводка на наведении */
.btn-primary, .mp-cta-btn { position: relative; overflow: hidden; }
.btn-primary::after, .mp-cta-btn::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.btn-primary:hover::after, .mp-cta-btn:hover::after { left: 150%; }

/* Hero-акцент: живой градиент-перелив (с фолбэком на сплошной цвет) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero .accent {
    background: linear-gradient(100deg, #d11f2b 0%, #ff5e3a 45%, #d11f2b 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: mpAccentFlow 7s ease-in-out infinite;
  }
}
@keyframes mpAccentFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Подчёркивание у лейбла секции «прорастает» */
.mp-howwework-title, .mp-contact-title { position: relative; }

/* Уважение к настройке «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .accent, .mp-step-num { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .btn-primary::after, .mp-cta-btn::after { display: none; }
}

/* Ровные переносы заголовков market-зоны */
.mp-howwework-title, .mp-contact-title, .mp-step-title, .mp-pickup h3, .mp-resource h3 { text-wrap: balance; }
