/* /infografika-dlya-marketplejsov. Базовые блоки из generator.css (gk-*). */

/* hero: веер из трёх слайдов */
.ig-hero-stack{ position: relative; height: 470px; margin-top: 30px; }
.ig-hero-stack img{ position: absolute; top: 50%; left: 50%; width: 46%; max-width: 270px; height: auto; border-radius: 18px; box-shadow: 0 30px 70px rgba(0, 10, 60, .35); background: #fff; }
.ig-hero-stack img:nth-child(1){ transform: translate(-112%, -50%) rotate(-8deg) scale(.9); }
.ig-hero-stack img:nth-child(2){ transform: translate(-50%, -54%); z-index: 2; }
.ig-hero-stack img:nth-child(3){ transform: translate(12%, -50%) rotate(8deg) scale(.9); }

/* типы слайдов */
.ig-tabs{ margin-top: 24px; }
.ig-types{ list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ig-types li{ background: #f8f8f8; border-radius: 20px; padding: 12px 12px 16px; }
.ig-types img{ width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; display: block; }
.ig-types b{ display: block; margin-top: 12px; font-size: 17px; }
.ig-types span{ display: block; font-size: 15px; color: #5a5a66; margin-top: 2px; }

/* способы */
.ig-ways{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.ig-ways > div{ background: #f8f8f8; border-radius: 22px; padding: 24px; }
.ig-ways b{ display: block; font-size: 21px; margin-top: 12px; }
.ig-ways dl{ display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 18px 0 0; font-size: 16px; }
.ig-ways dt{ color: #5a5a66; font-weight: 400; }
.ig-ways dd{ margin: 0; font-weight: 600; }
.ig-ways p{ margin: 16px 0 0; font-size: 15px; color: #5a5a66; }
.ig-way-tag{ display: inline-block; background: #e6ecff; color: #0a3bb0; border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.ig-ways .ig-way-ours{ background: #0067f4; color: #fff; }
.ig-way-ours .ig-way-tag{ background: #f91158; color: #fff; }
.ig-way-ours dt, .ig-way-ours p{ color: rgba(255, 255, 255, .8); }

/* как работает */
.ig-how{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; margin-top: 28px; align-items: center; }
.ig-steps{ list-style: none; counter-reset: ig; margin: 0; padding: 0; display: grid; gap: 12px; }
.ig-steps li{ counter-increment: ig; position: relative; background: #f8f8f8; border-radius: 18px; padding: 16px 18px 16px 64px; font-size: 16px; }
.ig-steps li::before{ content: counter(ig); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 12px; background: #0067f4; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ig-steps b{ display: block; font-size: 18px; margin-bottom: 2px; }
.ig-ba{ display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); gap: 12px; align-items: center; }
.ig-ba figure{ margin: 0; }
.ig-ba img{ width: 100%; height: auto; border-radius: 16px; display: block; background: #f8f8f8; }
.ig-ba figcaption{ margin-top: 8px; font-size: 14px; color: #5a5a66; text-align: center; }
.ig-ba .rz-arrow{ font-size: 32px; color: #f91158; font-weight: 800; }

/* что нельзя */
.ig-rules{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.ig-rules > div{ background: #f8f8f8; border-radius: 22px; padding: 24px; }
.ig-rules b{ font-size: 21px; }
.ig-rules ul{ list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 16px; }
.ig-rules li{ position: relative; padding-left: 26px; }
.ig-rules li::before{ content: "×"; position: absolute; left: 0; top: -1px; color: #f91158; font-weight: 800; font-size: 19px; }
.ig-rules-size{ background: #e3f7ec !important; }
.ig-rules-size p{ margin: 12px 0 16px; font-size: 16px; }

.ig-final-form{ margin-top: 0; min-width: 360px; }

@media (max-width: 991px){
    .ig-types{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ig-ways, .ig-rules, .ig-how{ grid-template-columns: minmax(0, 1fr); }
    .ig-hero-stack{ height: 380px; }
    .ig-final-form{ min-width: 0; }
}
@media (max-width: 620px){
    .ig-hero-stack{ height: 300px; }
    .ig-types{ gap: 10px; }
    .ig-types b{ font-size: 15px; }
    .ig-types span{ font-size: 13px; }
}
