/* =====================================================================
   AI Micromarkets for Business — landing styles
   Block 1: Hero + Audience ("Для кого")
   Tokens from styles/parts/variables.css; reuses .locations-section
   component (styled in styles.css) for the audience block.
   ===================================================================== */

.mmb-page {
    --mmb-max: 1220px;
    --mmb-gap: clamp(1.5rem, 3vw, 4rem);
    color: var(--color-dark);
}

/* ---------- HERO ---------- */
.mmb-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: var(--mmb-gap);
    padding-top: clamp(7rem, 8vw, 9rem); /* more breathing room below the header */
    padding-bottom: clamp(2rem, 6vw, 6rem);
}

/* Title — matches design (Fixel 900 / 76px / lh 86 / ls -2px) with the
   theme's dark gradient text fill (same as .hero h1). */
.mmb-hero__title {
    font-size: clamp(2.5rem, 1rem + 5vw, 4.75rem);
    line-height: 1.13;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: none;
    margin: 0 0 1.25rem;
    color: transparent;
    background: linear-gradient(180deg, #1F1F29 0%, rgba(31, 41, 33, 0.72) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mmb-hero__slogan {
    font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.375rem); /* up to 22px */
    line-height: 1.45;
    font-weight: 500;
    color: #59596E;
    max-width: 36ch;
    margin: 0 0 2rem;
}

.mmb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

/* CTAs — both 60px tall (equal height), radius 20 per design.
   btn1 = theme standard black (.primary-button); btn2 = no background. */
.mmb-cta {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 1.75rem;
    border-radius: 20px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    width: auto;
}

/* .primary-button (theme) already gives dark bg + white text; align radius */
.mmb-cta.primary-button {
    border-radius: 20px;
}

.mmb-cta--ghost {
    background: transparent;
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
    transition: background var(--transition-time), color var(--transition-time);
}

.mmb-cta--ghost:hover {
    background: var(--color-dark);
    color: var(--color-light);
}

/* Hero media — narrower framed card: light gradient bg + blue border,
   with floating two-line badges kept inside the container. */
.mmb-hero__media {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 440px;
    /* extra top padding so the centered top badge sits above the image */
    padding: 54px 12px 12px;
    background: var(--gradient-light);
    border: 1px solid rgba(48, 178, 253, 0.55);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(31, 31, 41, 0.10);
}

.mmb-hero__img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

.mmb-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    background: var(--color-light);
    border: 1px solid rgba(31, 31, 41, 0.10);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(31, 31, 41, 0.12);
}

.mmb-badge__icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
}

.mmb-badge__icon img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
}

.mmb-badge__lines {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mmb-badge__title {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-dark);
}

.mmb-badge__text {
    font-weight: 400;
    font-size: 11px;
    color: #59596E;
}

/* top badge centered horizontally in the top padding (above the image) */
.mmb-badge--1 { top: 11px; left: 50%; transform: translateX(-50%); justify-content: center; }  /* Auto-payment / до 20 сек */
/* bottom badge sits higher and protrudes past the left edge of the block */
.mmb-badge--2 { bottom: 10%; left: -24px; min-width: 140px; }         /* 24/7 / без персонала */

/* fixed width for the top badge on desktop (per design) */
@media (min-width: 1025px) {
    .mmb-badge--1 { width: 266px; }
}

/* ---------- AUDIENCE ("Для кого") ----------
   Layout/behaviour come from .locations-section in styles.css.
   Override the inner grid (default 36px 1fr, no gap, 2 rows) for our
   icon-image + single-line label so the text doesn't overlap the icon. */
.mmb-audience-section .items-list-item > div {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto;
    column-gap: 14px;
    align-items: center;
}

.mmb-audience-section .items-list-item .icon {
    width: 40px;
    height: 40px;
}

.mmb-audience-section .items-list-item .icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.mmb-audience-section .items-list-item strong {
    align-self: center;
}

/* this page only: the component blends the active icon with color-burn,
   which muddies our raster icons — force normal blending. */
.mmb-audience-section .common-slider-holder .items-list .activePanel .icon,
.mmb-audience-section .items-list-item .icon,
.mmb-audience-section .items-list-item .icon img {
    mix-blend-mode: normal;
}

/* this page only: don't append ":" to the active tab label
   (overrides the @media(min-width:1024) rule in styles.css). */
.mmb-page .mmb-audience-section .common-slider-holder .activePanel strong::after {
    content: none;
}

/* ---------- BLOCK 3 — "Как это работает для твоего бизнеса" ---------- */
.mmb-biz {
    padding-top: clamp(2rem, 5vw, 5rem);
    padding-bottom: clamp(2rem, 5vw, 5rem);
}

.mmb-biz__title {
    text-align: center;
    font-size: clamp(2rem, 1rem + 3vw, 3.5rem); /* up to ~56px */
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.mmb-biz__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 1.5vw, 1.5rem);
}

.mmb-biz__card {
    background: var(--color-light);
    border: 1px solid rgba(31, 31, 41, 0.06);
    border-radius: 24px;
    padding: clamp(1.5rem, 2vw, 2rem);
    box-shadow: 0 12px 32px rgba(31, 31, 41, 0.05);
}

.mmb-biz__icon {
    display: block;
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
}

.mmb-biz__icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.mmb-biz__card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 0.65rem;
}

.mmb-biz__card p {
    font-size: 16px;
    line-height: 1.5;
    color: #59596E;
    margin: 0;
}

@media (max-width: 1024px) {
    .mmb-biz__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .mmb-biz__grid { grid-template-columns: 1fr; }
}

/* ---------- BLOCK 4 — "С кем мы работаем" ---------- */
.mmb-work {
    margin-bottom: 0;
    scroll-margin-top: 90px;
    background: #F8F8F7;
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
}

.mmb-work__title {
    text-align: center;
    font-size: clamp(2rem, 1rem + 3vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.mmb-work__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 1220px;
    margin: 0 auto;
}

.mmb-work__card {
    background: var(--color-light);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 32px rgba(31, 31, 41, 0.05);
}

.mmb-work__media {
    position: relative;
}

.mmb-work__media img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.mmb-work__label {
    position: absolute;
    left: 24px;
    bottom: 16px;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.mmb-work__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(1.5rem, 2vw, 2rem);
}

.mmb-work__content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 0.6rem;
}

.mmb-work__content p {
    font-size: 16px;
    line-height: 1.5;
    color: #59596E;
    margin: 0 0 1.5rem;
}

.mmb-work__more {
    margin-top: auto;
    align-self: flex-start;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    transition: color var(--transition-time);
}

.mmb-work__more:hover {
    color: #4531ff;
}

@media (max-width: 1024px) {
    .mmb-work__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .mmb-work__grid { grid-template-columns: 1fr; }
}

/* ---------- BLOCK 5 — "Что даёт AI-технология" (dark) ---------- */
.mmb-tech {
    /* dark base + two corner glows (purple upper-right, blue lower-left) */
    background:
        radial-gradient(circle 460px at 90% 12%, rgba(117, 112, 255, 0.25), transparent),
        radial-gradient(circle 360px at 6% 88%, rgba(48, 178, 252, 0.20), transparent),
        var(--color-dark);
    color: var(--color-light);
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
}

.mmb-tech__title {
    text-align: center;
    color: var(--color-light);
    font-size: clamp(2rem, 1rem + 3vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    margin: 0 0 1rem;
}

.mmb-tech__subtitle {
    text-align: center;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem);
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
    max-width: 62ch;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.mmb-tech__cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 1220px;
    margin: 0 auto clamp(2rem, 3vw, 2.5rem);
}

.mmb-tech__col {
    /* glassmorphism: translucent white over the dark section */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-light);
    border-radius: 24px;
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
}

.mmb-tech__col h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 1.25rem;
    width: fit-content;
    background: linear-gradient(90deg, #30B2FC 0%, #7570FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.mmb-tech__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mmb-tech__col li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 18px;
    line-height: 1.35;
}

/* right column uses a purple→pink gradient (left is blue→purple) */
.mmb-tech__col:last-child h3 {
    background: linear-gradient(90deg, #7570FF 0%, #FF80B2 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.mmb-tech__col:last-child .mmb-tech__check {
    background: linear-gradient(135deg, #7570FF 0%, #FF80B2 100%);
}

/* gradient circle with a white checkmark, per design */
.mmb-tech__check {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #30B2FC 0%, #7570FF 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.mmb-tech__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 380px;
    max-width: 100%;
    height: 60px;
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(90deg, #30B2FC 0%, #7570FF 100%);
    color: var(--color-light);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition-time);
}

.mmb-tech__cta:hover { opacity: 0.92; }

@media (max-width: 768px) {
    .mmb-tech__cols { grid-template-columns: 1fr; }
}

/* ---------- BLOCK 7 — "Самые популярные сомнения" ---------- */
.mmb-doubts {
    background: #F8F8F7;
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
}

.mmb-doubts__title {
    text-align: center;
    font-size: clamp(2rem, 1rem + 3vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.mmb-doubts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 1220px;
    margin: 0 auto clamp(2.5rem, 5vw, 5rem); /* 80px gap to banner, per design */
}

.mmb-doubts__card {
    background: var(--color-light);
    border-radius: 16px;
    padding: clamp(1.5rem, 2vw, 2rem);
    display: flex;
    flex-direction: column;
}

.mmb-doubts__num-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mmb-doubts__num {
    color: #30B2FC;
    font-weight: 600;
    font-size: 20px;
}

.mmb-doubts__line {
    width: 48px;
    height: 2px;
    border-radius: 2px;
    background: #30B2FC;
}

.mmb-doubts__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(48, 178, 252, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 1.25rem;
}

.mmb-doubts__icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.mmb-doubts__card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 0.6rem;
}

.mmb-doubts__card p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-dark);
    margin: 0;
}

.mmb-doubts__more {
    margin-top: auto;
    align-self: flex-start;
    color: #30B2FC;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

/* dark gradient CTA banner with a white pill (gradient text) */
.mmb-doubts__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1220px;
    margin: 0 auto;
    /* dark gradient + corner glows (purple upper-right, blue lower-left) per design */
    background:
        radial-gradient(circle 190px at 93% 19%, rgba(117, 112, 255, 0.55), transparent),
        radial-gradient(circle 160px at 5% 130%, rgba(48, 178, 252, 0.45), transparent),
        linear-gradient(90deg, #1F1F29 0%, #2E2166 100%);
    border-radius: 32px;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 3rem);
}

.mmb-doubts__cta-text h3 {
    color: var(--color-light);
    font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.mmb-doubts__cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.45;
    margin: 0;
    max-width: 60ch;
}

.mmb-doubts__pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 1.75rem;
    border-radius: 20px;
    background: var(--color-light);
    cursor: pointer;
}

.mmb-doubts__pill span {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(90deg, #30B2FC 0%, #7570FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 900px) {
    .mmb-doubts__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mmb-doubts__cta { flex-direction: column; align-items: flex-start; }
    .mmb-doubts__pill { width: 100%; }
}

/* ---------- Responsive ---------- */
/* <= 1024px: single column, everything centered; clear the (absolute) header
   since main.mt-0 removes the margin-top that normally offsets it. */
@media (max-width: 1024px) {
    .mmb-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 110px;
    }
    .mmb-hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .mmb-hero__slogan {
        max-width: 48ch;
        margin-left: auto;
        margin-right: auto;
    }
    .mmb-hero__actions { justify-content: center; }
    .mmb-hero__media {
        justify-self: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .mmb-hero__actions { width: 100%; }
    .mmb-hero__actions > * { flex: 1 1 auto; }
}
