/* ============================================
   Game Styles - Cards, Pages, Gallery
   Game Cards, Game Page, Images+Text,
   Circle Images, Photo Gallery
   ============================================ */

/* ============================================
   Game Cards
   ============================================ */
.game-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    background: white;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.game-card .card-title {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.game-card-image {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.game-card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

.game-card-format { margin-bottom: 0.5rem; }

.game-card-format .badge {
    background: linear-gradient(135deg, var(--color-accent) 0%, #3b82f6 100%) !important;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
}

.game-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.game-meta-item {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.game-meta-item svg {
    color: var(--color-accent);
}

.game-sidebar {
    position: sticky;
    top: 100px;
}

.game-meta-block,
.game-price-block {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.game-meta-block h5,
.game-price-block h5 {
    color: var(--color-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
}

.game-meta-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.game-meta-row:last-child { border-bottom: none; }

.game-meta-icon {
    color: var(--color-accent);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.game-meta-label {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    flex-grow: 1;
}

.game-meta-value {
    color: var(--color-text);
    font-weight: 500;
}

.game-price-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.game-price-item:last-child { border-bottom: none; }

.game-price-title {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.game-price-desc {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.game-price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
}

.related-games-section {
    background: var(--color-bg-light);
}

.related-games-section h2 {
    color: var(--color-primary);
    font-weight: 700;
}

/* ============================================
   Game Page Content Sections
   ============================================ */
.game-content h3 {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
}

.game-content h3:first-child {
    margin-top: 0;
}

.game-content p {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.game-content .lead {
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

/* Feature cards in game context - more compact */
.game-content .feature-card {
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.game-content .feature-card .card-body {
    padding: 1.25rem;
}

.game-content .feature-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.game-content .feature-card .card-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Competency section with different accent */
.competency-section .feature-card {
    border-left-color: #10b981;
}

.competency-section .feature-card .card-title {
    color: #047857;
}

/* Game sidebar improvements */
.game-sidebar-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.game-sidebar-image img {
    border-radius: var(--radius-lg);
}

/* Video embed in game page */
.game-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

.game-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Task/Competency icon numbers */
.feature-card-numbered {
    position: relative;
    padding-left: 1rem;
}

.feature-card-numbered::before {
    content: counter(feature-counter);
    counter-increment: feature-counter;
    position: absolute;
    left: -1.5rem;
    top: 1.25rem;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Counter reset for feature lists */
.feature-list-numbered {
    counter-reset: feature-counter;
}

/* Games Index Page Hero */
.games-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #3b82f6 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.games-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.games-hero .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Images with Text Block
   ============================================ */
.images-with-text-section {
    background: var(--color-bg-light);
}

.images-with-text-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.image-text-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    flex: 1 1 280px;
    max-width: 350px;
    text-align: center;
}

.image-text-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.image-text-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.image-text-image {
    flex-shrink: 0;
}

.image-text-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--color-accent-light);
}

.image-text-content {
    text-align: center;
}

.image-text-content h4 {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.image-text-content p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .images-with-text-list {
        flex-direction: column;
        align-items: center;
    }

    .image-text-item {
        max-width: 100%;
    }
}

/* ============================================
   Circle Images Row Block
   ============================================ */
.circle-images-section {
    background: white;
}

.circle-images-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.circle-image-item {
    text-align: center;
    flex: 0 0 auto;
}

.circle-image-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--color-accent-light);
    transition: all 0.3s ease;
}

.circle-image-item:hover img {
    transform: scale(1.1);
    border-color: var(--color-accent);
}

.circle-image-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    max-width: 130px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .circle-images-row {
        gap: 1.5rem;
    }

    .circle-image-item img {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   Photo Gallery Block
   ============================================ */
.photo-gallery-section {
    background: var(--color-bg-alt);
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.photo-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 576px) {
    .photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Responsive - Games
   ============================================ */
@media (max-width: 991px) {
    .game-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

/* ============================================================
   Страница игры: самодостаточный лендинг
   ============================================================ */

/* --- Герой --- */
.game-hero {
    position: relative;
    background: #0f1b2d;
    color: #fff;
}
.game-hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.game-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15, 27, 45, .94) 0%, rgba(15, 27, 45, .82) 46%, rgba(15, 27, 45, .35) 100%);
}
.game-hero-inner {
    position: relative;
    padding: 4.5rem 0 3.5rem;
}
.game-hero-copy { max-width: 42rem; }
.game-hero-tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #cfe0ff;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    padding: .25rem .85rem;
    margin-bottom: 1.1rem;
}
.game-hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
}
.game-hero-lede {
    font-size: 1.12rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 1.75rem;
}
.game-hero-cta { padding-left: 2rem; padding-right: 2rem; }

/* --- Полоса фактов под героем --- */
.game-facts {
    position: relative;
    background: rgba(255, 255, 255, .07);
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.game-facts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 4rem;
    margin: 0;
    padding: 1.15rem 0;
}
.game-fact dt {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-bottom: .2rem;
}
.game-fact dd {
    font-size: 1.02rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

/* --- Для кого / что получит --- */
.game-fit-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .9rem;
}
.game-fit-body {
    color: #4a5568;
    line-height: 1.7;
}
.game-fit-body ul { padding-left: 1.1rem; }
.game-fit-body li { margin-bottom: .4rem; }

/* --- Финальный призыв --- */
.game-close {
    background: linear-gradient(120deg, #1565d8 0%, #1a73e8 100%);
    color: #fff;
    text-align: center;
    padding: 3.5rem 0;
}
.game-close h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: .75rem;
}
.game-close p {
    max-width: 34rem;
    margin: 0 auto 1.6rem;
    color: rgba(255, 255, 255, .9);
}

/* --- Другие симуляции: компактный список --- */
.game-more {
    background: #f7f9fc;
    padding: 2.75rem 0 3.25rem;
    border-top: 1px solid #e6ebf2;
}
.game-more-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.game-more-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .01em;
    margin: 0;
    color: #1f2933;
}
.game-more-all {
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.game-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
    gap: .5rem 1.5rem;
}
.game-more-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .55rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color .18s ease;
}
.game-more-item:hover { background: #eef3fa; }
.game-more-thumb {
    width: 64px;
    height: 48px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 6px;
}
.game-more-thumb--empty { background: #dde4ee; }
.game-more-text { min-width: 0; }
.game-more-name {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    color: #1f2933;
    line-height: 1.3;
}
.game-more-meta {
    display: block;
    font-size: .8rem;
    color: #7a8699;
    margin-top: .1rem;
}

@media (max-width: 767.98px) {
    .game-hero-inner { padding: 3rem 0 2.5rem; }
    .game-facts-row { gap: 1.25rem 2rem; padding: 1rem 0; }
    .game-hero-cta { width: 100%; }
    .game-more-grid { grid-template-columns: 1fr; }
}

/* --- Ритм и ширина строки в теле страницы игры --- */
:root { --game-measure: 48rem; }
.game-content { padding-top: 2.5rem; }

/* Блок rich_text из StreamField приходит голым HTML, без контейнера:
   центрируем его и держим комфортную длину строки. Медиа-блоки
   (видео, галерея) несут собственный .container и не затрагиваются. */
.game-content > h2,
.game-content > h3,
.game-content > h4,
.game-content > p,
.game-content > ul,
.game-content > ol,
.game-content > blockquote {
    max-width: var(--game-measure);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.game-content > h2,
.game-content > h3 { margin-top: 2.25rem; }
.game-fit-body { max-width: 34rem; }

.game-content section { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.game-content section:first-child { padding-top: 0; }

/* Заголовки rich_text: тот же столбец, что и абзацы.
   Старое правило делает их inline-block, из-за чего auto-маргины не работают. */
.game-content > h2,
.game-content > h3 {
    display: block;
    border-bottom: none;
    padding-bottom: 0;
}
.game-content > h2::after,
.game-content > h3::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    background: var(--color-accent);
    margin-top: .55rem;
}

/* Галерея на странице игры: крупнее, тремя в ряд */
.game-content .photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}
.game-content .photo-gallery-item img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
}
@media (max-width: 575.98px) {
    .game-content .photo-gallery-item img { height: 11rem; }
}

/* --- «Что развивает»: список с линейками вместо сетки карточек ---
   Карточки здесь не несут иерархии: все пункты равны, а коробки только
   дробят страницу и повторяют соседние секции. */
.game-content .features-section { padding: 1.5rem 0 2rem; }
.game-content .features-section > .container > .text-center {
    max-width: var(--game-measure);
    padding: 0 1rem;
    margin: 0 auto 1.5rem;
    text-align: left !important;
}
.game-content .features-section h2 {
    font-size: 1.5rem !important;
    font-weight: 700;
}
.game-content .features-section h2::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    background: var(--color-accent);
    margin-top: .55rem;
}
.game-content .features-section .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 3rem;
    max-width: var(--game-measure);
    margin: 0 auto;
    padding: 0 1rem;
}
.game-content .features-section .row > [class*="col-"] {
    width: 100%;
    max-width: none;
    flex: none;
    margin-bottom: 0;
    padding: 0;
    border-top: 1px solid #e4e9f0;
}
.game-content .features-section .feature-card {
    border: 0;
    background: transparent;
    box-shadow: none;
    height: auto;
}
.game-content .features-section .feature-card .card-body {
    padding: 1.1rem 0;
}
.game-content .features-section .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2933;
    margin-bottom: .3rem;
    /* глобальное .game-content h3 вешает капс и акцентную линию на любой h3;
       в списке это даёт рябь из подчёркиваний */
    text-transform: none;
    letter-spacing: 0;
    border-bottom: none;
    padding-bottom: 0;
    display: block;
}
.game-content .features-section .card-title::after { content: none; }
.game-content .features-section .card-text {
    color: #5a6676;
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 767.98px) {
    .game-content .features-section .row { grid-template-columns: 1fr; gap: 0; }
}

/* --- Доказательства: только цифры, без названий клиентов --- */
.game-proof {
    background: #0f1b2d;
    color: #fff;
    padding: 2.5rem 0;
}
.game-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 4.5rem;
    margin: 0;
    justify-content: center;
}
.game-proof-item { text-align: center; }
.game-proof-item dt {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}
.game-proof-item dd {
    font-size: .85rem;
    color: rgba(255, 255, 255, .62);
    margin: .3rem 0 0;
    max-width: 13rem;
}

/* --- Что входит в проведение --- */
.game-includes { padding: 3rem 0 2.5rem; }
.game-includes h2 {
    font-size: 1.5rem;
    font-weight: 700;
    max-width: var(--game-measure);
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
}
.game-includes h2::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    background: var(--color-accent);
    margin-top: .55rem;
}
.game-includes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 3rem;
    max-width: var(--game-measure);
    margin: 0 auto;
    padding: 0 1rem;
}
.game-includes-grid h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2933;
    margin-bottom: .35rem;
}
.game-includes-grid p {
    font-size: .95rem;
    line-height: 1.6;
    color: #5a6676;
    margin: 0;
}
@media (max-width: 767.98px) {
    .game-proof-row { gap: 1.5rem 2.5rem; }
    .game-proof-item dt { font-size: 1.6rem; }
}

/* --- «Как устроена игра»: шаги вместо сплошного текста --- */
.game-content .steps {
    max-width: var(--game-measure);
    margin: 1.75rem auto 0;
    padding: 0 1rem;
    counter-reset: gamestep;
}
.game-content .step {
    position: relative;
    padding: 0 0 1.4rem 3.25rem;
    color: #4a5568;
    font-size: .97rem;
    line-height: 1.65;
}
.game-content .step::before {
    counter-increment: gamestep;
    content: counter(gamestep);
    position: absolute;
    left: 0;
    top: -.1rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.game-content .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.05rem;
    top: 2.4rem;
    bottom: .35rem;
    width: 1px;
    background: #dde4ee;
}
.game-content .step b {
    display: block;
    color: #1f2933;
    font-size: 1rem;
    margin-bottom: .2rem;
}

/* --- Полоса цифр в конце страницы игры --- */
.game-content .stats-section {
    background: #0f1b2d;
    padding: 2.75rem 0;
    margin-top: 2rem;
}
.game-content .stats-section .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.game-content .stats-section .stat-label {
    font-size: .85rem;
    color: rgba(255, 255, 255, .62);
    margin-top: .3rem;
}
.game-content .stats-section .stats-context p {
    color: rgba(255, 255, 255, .5);
    font-size: .85rem;
}

/* Обёртка .game-video-wrapper рассчитана на absolute-позиционированный iframe;
   для <video> нужно то же самое, иначе он рендерится в нулевой высоте и обрезается. */
.game-video-wrapper video,
.game-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
    border: 0;
}


/* Галерея и полосы-баннеры остаются во всю ширину контейнера,
   текстовый столбец на странице един: один левый край сверху донизу. */
/* Галерея — картиночная полоса во всю ширину контейнера:
   сколько фотографий, столько колонок в одном ряду. */
.game-content .photo-gallery-grid {
    max-width: none;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 1rem;
}
.game-content .photo-gallery-item img { height: 15rem; }

@media (max-width: 767.98px) {
    .game-includes-grid { grid-template-columns: 1fr; }
}


@media (max-width: 991.98px) {
    .game-content .photo-gallery-grid {
        grid-auto-columns: 68%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .5rem;
    }
    .game-content .photo-gallery-item { scroll-snap-align: start; }
    .game-content .photo-gallery-item img { height: 12rem; }
}

/* --- «Какие модели можно разобрать»: определения в две колонки --- */
.game-content .models {
    max-width: var(--game-measure);
    margin: 1.4rem auto 0;
    padding: 0 1rem;
}
.game-content .models dt {
    font-weight: 700;
    color: #1f2933;
    font-size: .97rem;
    margin-top: 1.1rem;
}
.game-content .models dd {
    margin: .15rem 0 0;
    color: #5a6676;
    font-size: .93rem;
    line-height: 1.6;
}
@media (min-width: 768px) {
    .game-content .models {
        display: grid;
        grid-template-columns: 16rem 1fr;
        column-gap: 2.25rem;
        row-gap: .95rem;
        align-items: baseline;
    }
    .game-content .models dt { margin-top: 0; }
    .game-content .models dt:not(:first-of-type),
    .game-content .models dd:not(:first-of-type) {
        border-top: 1px solid #edf1f6;
        padding-top: .95rem;
    }
}


/* --- Каталог игр (/games/): типы секций .gi-* --- */
/* Классы .gi-* живут только в rich_text-блоках страницы каталога:
   на страницах отдельных игр действует scope .game-content. */
.gi-h2 {
    font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.15rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin: 0 0 1rem;
}
.gi-lead {
    font-size: 1.12rem;
    line-height: 1.6;
    color: #334155;
    margin: 0 0 1.75rem;
    max-width: 46rem;
}

/* Проза в две колонки — один абзац на колонку, без разрыва текста. */
.gi-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 3rem;
}
.gi-cols p {
    margin: 0;
    color: #5a6676;
    font-size: .97rem;
    line-height: 1.7;
}

/* Список с линейками: термин слева, пояснение справа. */
.gi-rules { margin: 1.75rem 0 0; }
.gi-rules dt {
    font-weight: 700;
    color: #1f2933;
    font-size: 1rem;
    margin-top: 1.25rem;
}
.gi-rules dd {
    margin: .2rem 0 0;
    color: #5a6676;
    font-size: .95rem;
    line-height: 1.65;
}
@media (min-width: 768px) {
    .gi-rules {
        display: grid;
        grid-template-columns: 17rem 1fr;
        column-gap: 2.5rem;
        row-gap: 1.1rem;
        align-items: baseline;
    }
    .gi-rules dt { margin-top: 0; }
    .gi-rules dt:not(:first-of-type),
    .gi-rules dd:not(:first-of-type) {
        border-top: 1px solid #e2e8f0;
        padding-top: 1.1rem;
    }
}

/* Сплит: текст слева, компактный перечень справа.
   Секция идёт между белой сеткой карточек и светлой полосой шагов,
   поэтому фон даёт не сама секция, а панель — иначе границы не видно. */
.gi-split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 2rem 3.5rem;
    align-items: start;
    background: #f4f7fc;
    border: 1px solid #e2eaf5;
    border-radius: 14px;
    padding: 2.25rem 2.5rem;
}
.gi-split__text p {
    color: #5a6676;
    font-size: .97rem;
    line-height: 1.7;
    margin: 0 0 1rem;
}
.gi-split__text p:last-child { margin-bottom: 0; }
.gi-split__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gi-split__list li {
    padding: .95rem 0;
    border-top: 1px solid #dde5f0;
    color: #5a6676;
    font-size: .93rem;
    line-height: 1.6;
}
.gi-split__list li:first-child { border-top: 0; padding-top: 0; }
.gi-split__list li:last-child { padding-bottom: 0; }
.gi-split__list b {
    display: block;
    color: #1f2933;
    font-size: .98rem;
    margin-bottom: .2rem;
}

@media (max-width: 767.98px) {
    .gi-cols,
    .gi-split {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .gi-split { padding: 1.5rem 1.25rem; }
    .gi-lead { font-size: 1.04rem; }
    /* В одну колонку термины и пояснения слипаются — линейка их разводит. */
    .gi-rules dt:not(:first-of-type) {
        border-top: 1px solid #e2e8f0;
        padding-top: 1.1rem;
    }
}
