/* ============================================================
   Креатор — Лендинг «Инфографика для маркетплейсов»
   Дизайн-система: teal #09B6A2 → #079383, Inter, full-width секции.
   Все стили заскоуплены под .ig-landing, чтобы не конфликтовать
   с Bootstrap и общим _Layout (навбар/футер берутся из layout).
   ============================================================ */

.ig-landing {
    --primary: #09B6A2;
    --primary-dark: #079383;
    --primary-darker: #06846B;
    --ink: #2C3E50;
    --ink-soft: #64748b;
    --bg-soft: #f8f9fa;
    --primary-rgb: 9, 182, 162;
}

.ig-landing * { box-sizing: border-box; }

.ig-landing a { text-decoration: none; }
.ig-landing .ig-btn { text-decoration: none; }

.ig-landing img { display: block; max-width: 100%; }

.ig-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.ig-landing .section-full-width {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ---------- Типографика заголовков ---------- */
.ig-landing .ig-sec-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 0 20px;
}

.ig-landing .h-title {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.4rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.ig-landing .h-sub {
    display: block;
    font-size: .46em;
    margin-top: .55rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0;
}

/* ---------- Кнопки ---------- */
.ig-landing .ig-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 2rem;
    border-radius: 50px;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
    border: 3px solid var(--primary);
    text-align: center;
    line-height: 1.2;
}

.ig-landing .ig-btn-primary {
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), .28);
}
.ig-landing .ig-btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    opacity: 0; transition: opacity .3s ease; z-index: 0;
}
.ig-landing .ig-btn-primary:hover::before { opacity: 1; }
.ig-landing .ig-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--primary-rgb), .36); }
.ig-landing .ig-btn-primary > * { position: relative; z-index: 1; }
.ig-landing .ig-btn-primary span { position: relative; z-index: 1; }

.ig-landing .ig-btn-light {
    background: #fff;
    color: var(--primary-dark) !important;
    border-color: #fff;
}
.ig-landing .ig-btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }

/* ============================================================
   HERO A — стена из 20 карточек
   ============================================================ */
.ig-landing .heroA {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding-top: 76px;
    align-items: center;
    overflow: hidden;
    background: #0b1f1d;
}
.ig-landing .heroA-wall {
    position: absolute; inset: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding: 14px;
    transform: scale(1.08) rotate(-3deg);
    transform-origin: center;
    z-index: 0;
}
.ig-landing .heroA-col { display: flex; flex-direction: column; gap: 14px; }
.ig-landing .heroA-col img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.ig-landing .heroA-col:nth-child(odd) { transform: translateY(-46px); }
.ig-landing .heroA-col:nth-child(even) { transform: translateY(20px); }
.ig-landing .heroA-scrim {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(75% 65% at 50% 46%, rgba(3, 18, 16, .9) 0%, rgba(3, 18, 16, .72) 45%, rgba(4, 20, 18, .55) 75%, rgba(4, 20, 18, .5) 100%),
        linear-gradient(180deg, rgba(4,22,20,.55) 0%, rgba(3,16,14,.78) 100%);
}
.ig-landing .heroA-content {
    position: relative; z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 1.5rem;
    color: #fff;
}
.ig-landing .heroA-content::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 50%; left: 50%;
    width: 150%; height: 135%;
    transform: translate(-50%, -50%);
    background: radial-gradient(50% 50% at 50% 50%, rgba(3, 16, 14, .78) 0%, rgba(3, 16, 14, .45) 50%, transparent 78%);
    filter: blur(26px);
    pointer-events: none;
}
.ig-landing .hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem 1rem;
    border-radius: 100px;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .02em;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: #d8fff7;
    backdrop-filter: blur(6px);
    margin-bottom: 1.75rem;
}
.ig-landing .heroA-title {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -.015em;
    margin: 0 0 1.25rem;
    text-shadow: 0 4px 40px rgba(0,0,0,.4);
    text-wrap: balance;
}
.ig-landing .heroA-title .accent {
    background: linear-gradient(120deg, #5ff0dc, #18c6b1);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ig-landing .heroA-lead {
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    color: rgba(255,255,255,.94);
    max-width: 640px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.ig-landing .heroA-actions { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.ig-landing .heroA-trust {
    margin-top: 2.25rem;
    display: flex; gap: 1.75rem; justify-content: center; flex-wrap: wrap;
    color: rgba(255,255,255,.85);
    font-size: .95rem; font-weight: 500;
    text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.ig-landing .heroA-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.ig-landing .heroA-trust i { color: #5ff0dc; }

/* Стрелка скролла поверх тёмного hero — делаем светлой (на главной она серая для белого фона) */
.ig-landing .scroll-hint { color: rgba(255, 255, 255, .85); opacity: .75; }

@media (max-width: 768px) {
    .ig-landing .heroA-wall { grid-template-columns: repeat(4, 1fr); transform: scale(1.15) rotate(-4deg); }
    .ig-landing .heroA { min-height: 92vh; }
}

/* ============================================================
   ПЛАТФОРМЫ
   ============================================================ */
.ig-landing .platforms { background: #fff; padding: 3rem 0; border-bottom: 1px solid rgba(0,0,0,.05); }
.ig-landing .ig-platforms-label { text-align: center; color: var(--ink-soft); font-weight: 600; margin: 0 0 1.75rem; font-size: 1.05rem; }
.ig-landing .ig-platforms-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem 3.5rem; }
.ig-landing .ig-platform-item { display: inline-flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); opacity: .85; transition: opacity .2s, transform .2s; }
.ig-landing .ig-platform-item:hover { opacity: 1; transform: translateY(-2px); }
.ig-landing .platform-ico { width: 40px; height: 40px; display: grid; place-items: center; }

/* ============================================================
   КАК ЭТО РАБОТАЕТ
   ============================================================ */
.ig-landing .how { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 50%, var(--bg-soft) 100%); padding: 5.5rem 0; }
.ig-landing .how-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto 5rem;
}
.ig-landing .how-step:last-child { margin-bottom: 0; }
.ig-landing .how-step .frame {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 60, 55, .14);
    background: #fff;
    transition: transform .4s ease;
    border: 1px solid rgba(0,0,0,.04);
}
.ig-landing .how-step .frame:hover { transform: translateY(-8px); }
.ig-landing .how-step .frame img { width: 100%; height: auto; }
.ig-landing .how-num {
    font-size: 4.5rem; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark) 50%, var(--primary-darker));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    opacity: .42; margin-bottom: .75rem; letter-spacing: -.02em;
}
.ig-landing .how-step h3 { font-size: 1.7rem; font-weight: 700; margin: 0 0 .85rem; color: var(--ink); }
.ig-landing .how-step p { font-size: 1.0625rem; color: var(--ink-soft); line-height: 1.7; margin: 0; }
.ig-landing .how-tags { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.ig-landing .how-tags span { background: rgba(var(--primary-rgb), .08); color: var(--primary-dark); font-weight: 600; font-size: .85rem; padding: .35rem .8rem; border-radius: 50px; }

@media (max-width: 900px) {
    .ig-landing .how-step { grid-template-columns: 1fr; gap: 1.75rem; margin-bottom: 3.5rem; }
    /* единый порядок на мобиле: картинка всегда сверху, текст под ней
       (иначе у шага 2 без .order-img получается «зигзаг») */
    .ig-landing .how-step .frame { order: -1; }
}

/* ============================================================
   ВОЗМОЖНОСТИ
   ============================================================ */
.ig-landing .features { background: #fff; padding: 5.5rem 0; }
.ig-landing .ig-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1080px; margin: 0 auto; }
.ig-landing .ig-feature-card {
    background: var(--bg-soft);
    border: 1px solid rgba(0,0,0,.04);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ig-landing .ig-feature-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,60,55,.1); border-color: rgba(var(--primary-rgb), .35); }
.ig-landing .feature-ico {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .14), rgba(var(--primary-rgb), .06));
    color: var(--primary-dark); font-size: 1.5rem; margin-bottom: 1.1rem;
}
.ig-landing .ig-feature-card h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .55rem; color: var(--ink); }
.ig-landing .ig-feature-card p { font-size: .98rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }

@media (max-width: 900px) { .ig-landing .ig-features-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ГАЛЕРЕЯ ПРИМЕРОВ (тёмная)
   ============================================================ */
.ig-landing .gallery { background: linear-gradient(135deg, #232826 0%, #2c3331 50%, #232826 100%); padding: 5.5rem 0; overflow: hidden; }
.ig-landing .gallery .ig-sec-header .h-title { color: #fff; }
.ig-landing .gallery-scroll { display: flex; gap: 1.25rem; overflow-x: auto; padding: 0 1.25rem 1rem; cursor: grab; scrollbar-width: none; }
.ig-landing .gallery-scroll::-webkit-scrollbar { display: none; }
.ig-landing .gallery-item {
    flex: 0 0 auto;
    width: 280px;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    transition: transform .35s ease, box-shadow .35s ease;
}
.ig-landing .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.ig-landing .gallery-item:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 44px rgba(0, 0, 0, .35); }

/* Блок «Тарифные планы» берётся 1:1 с главной — стили в home.css
   (.pricing-section / .pricing-card / .pricing-carousel и т.д.).
   Задаём только фон-градиент: сверху белый — отделяет от секции
   «Почему выбирают» (светло-серая), снизу серый — отделяет от CTA (белый). */
.ig-landing .pricing-section { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); padding: 5.5rem 0; margin-top: 0; }

/* ============================================================
   ФИНАЛЬНЫЙ CTA
   ============================================================ */
.ig-landing .cta {
    background:
        radial-gradient(circle at 15% 20%, rgba(var(--primary-rgb), .1) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(var(--primary-rgb), .1) 0%, transparent 45%),
        #fff;
    padding: 5.5rem 0;
    text-align: center;
}
.ig-landing .cta-inner { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.ig-landing .cta p { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 2rem; line-height: 1.65; }
.ig-landing .cta-feats { display: flex; gap: 1.75rem; justify-content: center; flex-wrap: wrap; margin: 0 0 2.25rem; }
.ig-landing .cta-feats span { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 600; }
.ig-landing .cta-feats i { color: var(--primary); }

/* reveal-on-scroll (анимация появления; по умолчанию контент виден) */
.ig-landing .reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.ig-landing .reveal.from { opacity: 0; transform: translateY(24px); }

/* ============================================================
   МОБИЛЬНАЯ ОПТИМИЗАЦИЯ
   ============================================================ */

/* Планшеты и узкие экраны: уменьшаем большие вертикальные отступы секций */
@media (max-width: 768px) {
    .ig-landing .how,
    .ig-landing .features,
    .ig-landing .gallery,
    .ig-landing .pricing-section,
    .ig-landing .cta { padding: 3.25rem 0; }

    .ig-landing .platforms { padding: 2.25rem 0; }

    .ig-landing .ig-sec-header { margin-bottom: 2.25rem; }
    .ig-landing .h-title { margin-bottom: 1rem; }
    .ig-landing .ig-platforms-row { gap: 1.1rem 1.75rem; }
}

/* Телефоны */
@media (max-width: 576px) {
    /* Hero */
    .ig-landing .heroA-content { padding: 2.25rem 1.25rem; }
    .ig-landing .hero-eyebrow { font-size: .8rem; padding: .4rem .85rem; margin-bottom: 1.25rem; }
    .ig-landing .heroA-title { font-size: clamp(1.95rem, 8.5vw, 2.6rem); margin-bottom: 1rem; }
    .ig-landing .heroA-lead { font-size: 1.02rem; margin-bottom: 1.6rem; }
    .ig-landing .heroA-actions { flex-direction: column; gap: .7rem; width: 100%; max-width: 340px; margin: 0 auto; }
    .ig-landing .heroA-actions .ig-btn { width: 100%; padding: .8rem 1.5rem; }
    .ig-landing .heroA-trust { gap: .55rem 1.25rem; margin-top: 1.6rem; font-size: .85rem; }

    /* Платформы — компактнее, иконки мельче */
    .ig-landing .ig-platforms-label { font-size: .96rem; margin-bottom: 1.25rem; }
    .ig-landing .ig-platforms-row { gap: .9rem 1.4rem; }
    .ig-landing .ig-platform-item { font-size: 1rem; gap: .5rem; }
    .ig-landing .platform-ico { width: 32px; height: 32px; }
    .ig-landing .platform-ico svg,
    .ig-landing .platform-ico img { width: 30px; height: 30px; }

    /* Как это работает */
    .ig-landing .how-step { gap: 1.25rem; margin-bottom: 2.75rem; }
    .ig-landing .how-num { font-size: 3rem; margin-bottom: .4rem; }
    .ig-landing .how-step h3 { font-size: 1.35rem; }
    .ig-landing .how-step p { font-size: 1rem; }
    .ig-landing .how-step .frame { border-radius: 16px; }
    .ig-landing .how-tags span { font-size: .8rem; }

    /* Возможности */
    .ig-landing .ig-feature-card { padding: 1.5rem 1.4rem; }
    .ig-landing .feature-ico { width: 46px; height: 46px; font-size: 1.3rem; margin-bottom: .9rem; }

    /* Галерея — карточки уже, виден «подгляд» следующей */
    .ig-landing .gallery-item { width: 210px; }
    .ig-landing .gallery-scroll { gap: 1rem; padding: 0 1.25rem .75rem; }

    /* Финальный CTA */
    .ig-landing .cta-inner { padding: 0 1.25rem; }
    .ig-landing .cta p { font-size: 1rem; margin-bottom: 1.5rem; }
    .ig-landing .cta-feats { gap: .55rem 1.25rem; margin-bottom: 1.6rem; font-size: .92rem; }
    .ig-landing .cta .ig-btn { width: 100%; max-width: 340px; }
}
