/* ==========================================================
   FORESIGHT CASE — все стили обёрнуты в .foresight-page
   чтобы не текли на другие страницы при Barba-переходах
========================================================== */

/* Единственный глобальный стиль — убирает лишний отступ */
body {
    padding-top: 0;
}

/* ==========================================================
   VARIABLES — scoped to .foresight-page
========================================================== */

.foresight-page {

    /* Colors */
    --black: #06070A;
    --dark: #0B1C2A;
    --dark-soft: #0D2535;
    --white: #FFFFFF;
    --gray-bg: #F5F5F5;
    --text-muted: rgba(6,7,10,.55);
    --text-light: rgba(255,255,255,.65);
    --border: rgba(6,7,10,.12);

    /* Container */
    --max-width: 164rem;
    --padding-x: clamp(2rem, 5vw, 8rem);
    --container: min(calc(100vw - (var(--padding-x) * 2)), var(--max-width));

    /* Typography */
    --display: clamp(4.2rem, 5.2vw, 8.4rem);
    --h1: clamp(3rem, 3vw, 3rem);
    --h2: clamp(2.4rem, 2vw, 3rem);
    --h3: clamp(2.4rem, 2vw, 4.2rem);
    --body: clamp(2.4rem, 1.5vw, 2.6rem);
    --small: clamp(1.6rem, 1.2vw, 2.2rem);
    --label: 1.4rem;

    /* Spacing */
    --section-xl: clamp(12rem, 12vw, 22rem);
    --section-lg: clamp(8rem, 8vw, 14rem);
    --section-md: clamp(4rem, 5vw, 8rem);

    /* Radius */
    --radius: 4rem;

    /* Page background colors */
    --page-bg-hero:    #051D2B;
    --page-bg-phones:  #121212;
    --page-bg-dark:    #0B1C2A;
    --page-bg-light:   #F5F5F5;
    --page-bg-frame:   #EDEDED;
    --page-bg-section: #FFFFFF;

    width: 100%;
    min-height: 100vh;
    background: var(--page-bg-section);
    overflow-x: clip;
}

/* ==========================================================
   GSAP INITIAL STATES — scoped
========================================================== */

.foresight-page h1,
.foresight-page h2,
.foresight-page h3,
.foresight-page .hero-label {
    opacity: 0;
}

.foresight-page [data-split="true"] {
    opacity: 1;
}

.foresight-page .reveal-custom {
    opacity: 0;
    transform: translateY(30px);
}

.foresight-page .hero_image img {
    opacity: 0;
    transform: translateY(30px);
}

/* ==========================================================
   PAGE BACKGROUND
========================================================== */

.foresight-page .hero-frame    { background: white; }
.foresight-page .phones-block  { background: var(--page-bg-phones); }
.foresight-page .image-block   { background: var(--page-bg-light); }
.foresight-page .userflow-showcase { background: white; }
.foresight-page .prototype-section { background: var(--page-bg-section); }
.foresight-page .mobile-first-section,
.foresight-page .ui-section    { background: var(--page-bg-section); }
.foresight-page .about-project { background: var(--page-bg-section); }
.foresight-page .prototype-section__frame,
.foresight-page .visual-card   { background: var(--page-bg-frame); }

/* ==========================================================
   IMG / VIDEO
========================================================== */

.foresight-page img,
.foresight-page video {
    max-width: 100%;
    display: block;
}

/* ==========================================================
   GLOBAL CONTAINER
========================================================== */

.foresight-page .container,
.foresight-page .hero,
.foresight-page .about-project-grid,
.foresight-page .prototype-section__inner,
.foresight-page .mobile-first-section__inner,
.foresight-page .ui-section__inner {
    width: var(--container);
    margin-inline: auto;
}

/* ==========================================================
   HERO
========================================================== */

.foresight-page .hero-frame {
    width: 100%;
}

.foresight-page .hero {
    display: flex;
    margin: 0 0 6rem 6rem;
    overflow: hidden;
    padding-top: 15rem;
    max-width: 105rem;
}

.foresight-page .hero-label {
    font-size: var(--h1);
    font-weight: 700;
    margin-bottom: 2rem;
    color: rgb(0, 0, 0);
    letter-spacing: -0.02em;
}

.foresight-page .hero-title {
    font-size: 11rem;
    line-height: 11rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    color: rgb(0, 0, 0);
    max-width: 146rem;
}

/* ==========================================================
   PHONES BLOCK
========================================================== */

.foresight-page .phones-block {
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    overflow: hidden;
    position: relative;
}

.foresight-page .phones-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================
   ABOUT PROJECT
========================================================== */

.foresight-page .about-project {
    color: var(--black);
}

.foresight-page .about-project-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    max-width: 140rem;
    margin-top: 12rem;
}

.foresight-page .about-project-grid--second {
    margin-top: 12rem;
}

.foresight-page .about-project-label {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.foresight-page .about-project-content {
    font-size: 2.4rem;
    line-height: 1.4;
    max-width: 111rem;
    font-weight: 400;
}

.foresight-page .about-project-content--body {
    font-size: var(--body);
    line-height: 1.6;
    font-weight: 400;
}

/* ==========================================================
   FULL IMAGE BLOCK
========================================================== */

.foresight-page .image-block {
    width: 100%;
    overflow: hidden;
    margin-bottom: 4rem;
}

.foresight-page .image-block__frame {
    width: 100%;
    aspect-ratio: 16 / 9;
}



.foresight-page .image-block__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-block__2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================
   PROTOTYPE SECTIONS
========================================================== */

.foresight-page .prototype-section {
    color: var(--black);
}

.foresight-page .prototype-section__inner {
    padding: 17rem 0 10rem;
}

.foresight-page .prototype-section__title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    max-width: 110rem;
    margin-bottom: 4.5rem;
}

.foresight-page .prototype-section__divider {
    width: 100%;
    height: 0rem;
    background: var(--border);
    margin-bottom: 2rem;
}

.foresight-page .prototype-section__label {
    font-size: var(--label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(6,7,10,.45);
    line-height: 1.5;
}

.foresight-page .prototype-section__body {
    font-size: 2.4rem;
    line-height: 1.4;
    letter-spacing: -0.02em;
    max-width: 80rem;
}

.foresight-page .prototype-section__body p {
    margin-bottom: 2.4rem;
}

.foresight-page .prototype-section__body p:last-child {
    margin-bottom: 0;
}

.foresight-page .truco-text-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

/* ==========================================================
   LARGE IMAGE FRAME
========================================================== */

.foresight-page .prototype-section__frame,
.foresight-page .prototype-section__userflow {
    width: var(--container);
    margin-inline: auto;
    height: clamp(42rem, 65vw, 108rem);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foresight-page .prototype-section__frame-img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

/* ==========================================================
   VISUAL DIRECTION GRID
========================================================== */

.foresight-page .visual-grid {
    width: var(--container);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
}

.foresight-page .visual-card {
    overflow: hidden;
}

.foresight-page .visual-card--small {
    height: auto;
    aspect-ratio: 3/4;
}

.foresight-page .visual-card--wide {
    grid-column: span 2;
    height: auto;
    aspect-ratio: 4/3;
}

.foresight-page .visual-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
}

/* ==========================================================
   CONCEPT CARDS
========================================================== */

.foresight-page .concept-grid {
    width: var(--container);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.foresight-page .concept-card {
    overflow: hidden;
    border-radius: var(--radius);
}

.foresight-page .concept-card--top    { min-height: 80rem; }
.foresight-page .concept-card--bottom { grid-column: span 2; min-height: 90rem; }
.foresight-page .concept-card--dark   { background: #0B1C2A; }

.foresight-page .concept-card--text {
    background: #C9935D;
    padding: clamp(4rem, 5vw, 10rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.foresight-page .concept-card__title {
    font-size: clamp(4.2rem, 5vw, 8rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: white;
    margin-bottom: 4rem;
}

.foresight-page .concept-card__body {
    font-size: clamp(1.8rem, 2vw, 3.2rem);
    line-height: 1.5;
    color: white;
    max-width: 70rem;
}

.foresight-page .concept-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================
   MOBILE FIRST SECTION
========================================================== */

.foresight-page .mobile-first-section__inner {
    padding: var(--section-xl) 0 var(--section-lg);
}

.foresight-page .mobile-first-section__title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 4.5rem;
}

.foresight-page .mobile-first-section__grid {
    display: grid;
    grid-template-columns: minmax(110rem, 42rem) 1fr;
    gap: 6rem;
}

.foresight-page .mobile-first-section__body {
    font-size: var(--body);
    line-height: 1.65;
    letter-spacing: -0.02em;
}

/* ==========================================================
   VIDEO SHOWCASE
========================================================== */

.foresight-page .video-showcase {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: clamp(4rem, 8vw, 12rem);
    margin-left: calc((100vw - var(--container)) / 2);
    padding-left: 1.6rem;
    overflow-x: clip;
}

.foresight-page .video-mob,
.foresight-page .video-desk {
    background: #000;
    border-radius: 3.2rem;
    box-shadow: 0 0 0 1.2rem rgba(0,0,0,.3);
    position: relative;
}

.foresight-page .video-mob {
    flex: 0 0 auto;
    width: clamp(28rem, 22vw, 37.1rem);
    height: clamp(56rem, 50vw, 80.8rem);
}

.foresight-page .video-desk {
    flex: 0 0 auto;
    width: clamp(70rem, 65vw, 118.3rem);
    height: clamp(40rem, 45vw, 80.8rem);
    margin-top: 12rem;
}

.foresight-page .video-mob video,
.foresight-page .video-desk video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3.2rem;
    overflow: hidden;
}

/* ==========================================================
   UI SECTION
========================================================== */

.foresight-page .ui-section {
    color: var(--black);
    background: #0B1C2A;
}

.foresight-page .ui-section__inner {
    padding: var(--section-md) 0 var(--section-md);
}

.foresight-page .ui-section__title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 4.5rem;
    color: #fff;
}

.foresight-page .ui-section__divider {
    width: 100%;
    height: 0.1rem;
    margin-bottom: 5rem;
}

.foresight-page .ui-section__grid {
    display: grid;
    grid-template-columns: minmax(22rem, 42rem) 1fr;
    gap: 6rem;
}

.foresight-page .ui-section__label {
    font-size: var(--label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(6,7,10,.45);
}

.foresight-page .ui-section__body {
    font-size: var(--body);
    line-height: 1.65;
    max-width: 110rem;
    letter-spacing: -0.02em;
}

.foresight-page .ui-section__showcase {
    width: 100vw;
    overflow: hidden;
}

.foresight-page .ui-section__img {
    width: 100%;
    height: auto;
}

/* ==========================================================
   CONCEPT SECTION — sticky scroll
========================================================== */

.foresight-page .ui-section--concept {
    background: #0B1C2A;
    color: #fff;
    width: 100vw;
    margin-top: var(--section-xl);
}

.foresight-page .ui-section--concept .ui-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: var(--container);
    margin-inline: auto;
    align-items: start;
}

.foresight-page .ui-section--concept .ui-section__content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 16rem;
}

.foresight-page .ui-section__content-sticky {
    display: flex;
    flex-direction: column;
}

.foresight-page .ui-section--concept .ui-section__title { color: #fff; }

.foresight-page .ui-section--concept .ui-section__body {
    color: #fff;
    max-width: 80%;
    letter-spacing: -0.02em;
}

.foresight-page .ui-section--concept .ui-section__showcase {
    width: 100%;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    margin-top: 10rem;
}

.foresight-page .ui-section__img--concept {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================
   TASKS
========================================================== */

.foresight-page .tasks-container {
    background-color: #0d0e12;
    border-radius: 32px;
    padding: 5rem 4rem 8rem 4rem;
    font-family: var(--font-title);
    max-width: 1800px;
    margin: 0 auto;
    margin-top: 4rem;
}

.foresight-page .tasks-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.foresight-page .tasks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.foresight-page .task-card {
    background-color: #eef1f5;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
}

.foresight-page .task-number {
    font-weight: 500;
    font-size: 2rem;
    color: #000000;
    margin-right: 8px;
    white-space: nowrap;
}

.foresight-page .task-text {
    font-size: 2rem;
    line-height: 1.4;
    color: #000000;
    margin: 0;
}

/* ==========================================================
   CARDS GRID
========================================================== */

.foresight-page .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 164rem;
    margin: 0 auto;
    padding: 8rem 0 16rem 0;
    font-family: var(--font-title);
    box-sizing: border-box;
}

.foresight-page .info-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 5rem 5rem 22rem 3rem;
    background-color: #f0f0f2;
    border-radius: 16px;
    box-sizing: border-box;
}

.foresight-page .card-tag {
    margin-bottom: 3rem;
    color: #8a8a8f;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.foresight-page .card-text {
    margin: 0;
    color: #000000;
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.3;
}

.foresight-page .card-text strong,
.foresight-page .reveal-custom strong {
    font-weight: 700;
}

.foresight-page .card-text2 {
    margin: 0;
    color: #000000;
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.3;
}

.foresight-page .card-btn {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    padding-bottom: 4px;
    background-color: #0a0a0c;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 26px;
    font-weight: 300;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.foresight-page .card-btn:hover { opacity: 0.85; }

/* ==========================================================
   FEATURE GRID
========================================================== */

.foresight-page .feature-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    /* stretch гарантирует, что левая и правая колонки будут строго ОДНОЙ высоты */
    align-items: stretch;
    gap: 48px 72px;
    max-width: 2000px;
    margin: 0 auto;
    padding-top: 16rem;
    font-family: var(--font-title);
    box-sizing: border-box;
}

/* Отдельный стиль ТОЛЬКО для первого заголовка */
.foresight-page .grid-title--first {
    color: #000000;        /* Например, меняем цвет на акцентный */
    font-weight: 700;     /* Делаем жирнее */
    letter-spacing: -0.03em; /* Добавляем межбуквенный интервал */
    /* Здесь могут быть любые ваши свойства */
    font-size: 5rem !important;
    line-height: 1.05 !important;
}

/* Левая колонка */
.foresight-page .grid-left-column {
    display: flex;
    align-items: start; /* Картинка начнется сверху */
}

.foresight-page .grid-img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Позволяет картинке красиво заполнять пространство */
}

/* Правая колонка с 4 блоками */
.foresight-page .grid-right-column {
    display: flex;
    flex-direction: column;
    /* space-between равномерно распределит 4 блока сверху донизу, */
    /* чтобы первый блок был на уровне верха картинки, а четвертый — на уровне низа */
    justify-content: space-start; 
    gap: 4rem; /* Минимальный отступ между блоками, если экран сожмется */
    margin-top: 2rem;
}

.foresight-page .grid-media {
    grid-row: span 3;
    position: sticky;
    top: 40px;
}

.foresight-page .grid-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

.foresight-page .grid-info-block {
    display: flex;
    flex-direction: column;
}

.foresight-page .grid-tag {
    margin-bottom: 8px;
    color: #8a8a8f;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.foresight-page .grid-title {
    margin-top: 0;
    margin-bottom: 12px;
    color: #000000;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
}

.foresight-page .grid-text {
    margin: 0;
    color: #4a4a4a;
    font-size: 2rem;
    line-height: 1.3;
}

/* ==========================================================
   ACCESSIBILITY
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .foresight-page *,
    .foresight-page *::before,
    .foresight-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
   RESPONSIVE — TABLET (max-width: 96rem)
========================================================== */

@media (max-width: 96rem) {

    .foresight-page { --padding-x: 2.4rem; }

    .foresight-page .hero {
        height: auto;
        min-height: 50rem;
        padding: 8rem 0;
    }

    .foresight-page .hero-title { max-width: 100%; }

    .foresight-page .ui-section--concept .ui-section__inner {
        grid-template-columns: 1fr;
        height: auto;
        padding: var(--section-xl) var(--section-lg);
    }

    .foresight-page .ui-section--concept .ui-section__content {
        position: relative;
        height: auto;
        top: auto;
    }

    .foresight-page .ui-section--concept .ui-section__showcase {
        overflow: visible;
    }

    .foresight-page .about-project-grid,
    .foresight-page .prototype-section__grid,
    .foresight-page .mobile-first-section__grid,
    .foresight-page .ui-section__grid {
        grid-template-columns: 1fr;
        gap: 3.2rem;
    }

    .foresight-page .about-project-grid--second { margin-top: 8rem; }

    .foresight-page .prototype-section__title,
    .foresight-page .mobile-first-section__title,
    .foresight-page .ui-section__title { margin-bottom: 4rem; }

    .foresight-page .prototype-section__frame,
    .foresight-page .prototype-section__userflow { border-radius: 2.4rem; }

    .foresight-page .visual-grid { grid-template-columns: 1fr; gap: 2.4rem; }
    .foresight-page .visual-card--wide { grid-column: auto; }
    .foresight-page .concept-grid { grid-template-columns: 1fr; }
    .foresight-page .concept-card--bottom { grid-column: auto; }

    .foresight-page .video-showcase {
        margin-left: 0;
        width: 100%;
        flex-direction: column;
        padding-inline: var(--padding-x);
    }

    .foresight-page .video-mob,
    .foresight-page .video-desk {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        margin-top: 0;
    }

    .foresight-page .video-mob {
        aspect-ratio: 9/16;
        max-width: 37rem;
    }

    .foresight-page .tasks-grid { grid-template-columns: 1fr; }
    .foresight-page .tasks-container { padding: 20px; }

    .foresight-page .cards-grid { grid-template-columns: repeat(2, 1fr); }

    .foresight-page .feature-grid-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .foresight-page .grid-media {
        grid-row: auto;
        position: static;
    }

    .foresight-page .truco-text-columns {
        grid-template-columns: 1fr;
        gap: 3.2rem;
    }
}

/* ==========================================================
   RESPONSIVE — MOBILE (max-width: 60rem)
========================================================== */

@media (max-width: 60rem) {

    .foresight-page { --padding-x: 1.6rem; }

    .foresight-page .hero {
        min-height: 42rem;
        padding: 6rem 0;
    }

    .foresight-page .hero-label { margin-bottom: 2rem; }

    .foresight-page .hero-title {
        font-size: clamp(4rem, 11vw, 5.6rem);
    }

    .foresight-page .about-project { padding: 8rem 0; }
    .foresight-page .about-project-content { font-size: 2rem; }

    .foresight-page .prototype-section__inner,
    .foresight-page .mobile-first-section__inner,
    .foresight-page .ui-section__inner {
        padding-top: 8rem;
        padding-bottom: 6rem;
    }

    .foresight-page .prototype-section__title,
    .foresight-page .mobile-first-section__title,
    .foresight-page .ui-section__title {
        font-size: clamp(3.8rem, 10vw, 5.2rem);
    }

    .foresight-page .prototype-section__body,
    .foresight-page .mobile-first-section__body,
    .foresight-page .ui-section__body { font-size: 1.8rem; }

    .foresight-page .prototype-section__frame,
    .foresight-page .prototype-section__userflow {
        height: auto;
        aspect-ratio: 4/5;
        border-radius: 2rem;
    }

    .foresight-page .visual-card--small {
        height: auto;
        aspect-ratio: 3/4;
        border-radius: 2rem;
    }

    .foresight-page .visual-card--wide {
        height: auto;
        aspect-ratio: 4/3;
        border-radius: 2rem;
    }

    .foresight-page .concept-card { border-radius: 2.4rem; }
    .foresight-page .concept-card--top { min-height: 50rem; }
    .foresight-page .concept-card--bottom { min-height: 50rem; }
    .foresight-page .concept-card__title { font-size: 4.2rem; }
    .foresight-page .concept-card__body { font-size: 2rem; }

    .foresight-page .ui-section__showcase {
        width: 100%;
        margin-left: 0;
    }

    .foresight-page .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .foresight-page .info-card {
        min-height: 240px;
        padding: 24px;
    }

    .foresight-page .card-btn {
        right: 20px;
        bottom: 20px;
    }
}


/* Общий контейнер для карточек */
.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Две одинаковые колонки */
  gap: 1.5rem; /* Отступ между карточками */
  max-width: 165rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0rem 0rem 1.5rem 0rem;
  box-sizing: border-box;
  background-color: #ffffff; /* Белый фон вокруг карточек, как на макете */
}

/* Стили самой карточки */
.stats-card {
  background-color: #1a1a1a; /* Темный фон карточки */
  border-radius: 32px; /* Скругление углов */
  padding: 5rem 5rem 5rem 5rem; /* Внутренние отступы */
  color: #ffffff; /* Белый цвет текста по умолчанию */
  font-family: var(--font-title);
  box-sizing: border-box;
  
  display: flex;
  flex-direction: column;
  gap: 32px; /* Расстояние между огромной цифрой и блоком текста */
}

/* Огромные цифры */
.stats-number {
  font-size: 6rem; /* Очень крупный размер */
  font-weight: 700;
  line-height: 1; /* Чтобы не было лишних отступов сверху и снизу цифры */
  letter-spacing: -0.05em;
}

/* Контейнер для текстов */
.stats-content {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Отступ между заголовком и описанием */
}

/* Подзаголовок (Пользовательских сценариев / Макетов) */
.stats-title {
  font-size: 2.5rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

/* Мелкое описание */
.stats-text {
  font-size: 2rem;
  font-weight: 400;
  color: #808080; /* Серый приглушенный цвет текста */
  margin: 0;
  line-height: 1.5;
}

/* --- Адаптивность под мобильные экраны --- */
@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: 1fr; /* На смартфонах карточки встанут друг под друга */
    gap: 16px;
  }
  
  .stats-card {
    padding: 32px; /* Чуть уменьшаем отступы на мобильных */
    gap: 24px;
  }
  
  .stats-number {
    font-size: 4rem; /* Немного уменьшаем цифры на мобильных */
  }
}

.foresight-page .image-block_ds {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.foresight-page .image-block_ds img {
    width: 165rem;
    height: auto;
    display: block;
}
