/* Лендинг «Разработка 3D-конфигураторов» (/lp_stol/): первый экран, живой пример конфигуратора стола,
   возможности, технологии (связи из услуги «3D-конфигуратор на WebGL»), этапы, призыв и реализованные конфигураторы (works_big) */

.lpc {
    --lpc-card: #1f201f;
    --lpc-line: rgba(255, 255, 255, .1);
}

/* Полосы чередуются: тёмный первый экран → светлый пример → тёмные возможности → светлые технологии →
   тёмные этапы → светлый призыв; проекты — на фоне страницы, как на главной */
.lpc-band--dark {
    background: #171817;
    color: var(--color-whte);
}

.lpc-band--light {
    background: #fff;
    color: #1d1f1d;
}

.lpc-band--light .lpc-kicker {
    color: #5c8a3a;
}

.lpc-band--light .lpc-lead {
    color: rgba(29, 31, 29, .7);
}

.lpc-hero.intro {
    margin-bottom: 0;
}

.lpc-section {
    padding: clamp(56px, 7vw, 112px) 0;
}

.lpc-section__head {
    max-width: 760px;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.lpc-kicker {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-alt);
}

.lpc-title {
    margin: 0 0 16px;
    font-size: clamp(30px, 3.6vw, 52px);
    font-weight: 500;
    line-height: 1.08;
    color: inherit;
}

.lpc-lead {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(var(--color-whte--rgb), .75);
}

/* Первый экран */
.lpc-hero {
    padding: 24px 0 clamp(56px, 7vw, 96px);
}

.lpc-hero__grid {
    padding-top: 48px;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: end;
}

.lpc-hero__title {
    margin: 0 0 20px;
    font-size: clamp(40px, 5.6vw, 88px);
    font-weight: 500;
    line-height: 1;
    color: var(--color-whte);
}

.lpc-hero__title em {
    font-style: normal;
    color: var(--color-alt);
}

.lpc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 32px;
}

.lpc-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-whte);
    text-decoration: none;
}

.lpc-link svg {
    width: 20px;
    height: 20px;
    transition: transform .2s;
}

.lpc-link:hover {
    color: var(--color-alt);
}

.lpc-link:hover svg {
    transform: translateY(3px);
}

.lpc-hero__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lpc-fact {
    padding: 20px;
    border-radius: 24px;
    background: var(--lpc-card);
}

.lpc-fact b {
    display: block;
    margin-bottom: 4px;
    font-size: clamp(26px, 2.4vw, 36px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-alt);
}

.lpc-fact span {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(var(--color-whte--rgb), .7);
}

/* Живой пример: карточки со скриншотами конфигуратора, кнопка включает нужный режим */
.lpc-try {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.lpc-try__card {
    display: flex;
    flex-direction: column;
    padding: 10px 10px 20px;
    border-radius: 28px;
    background: #f1f3ee;
    transition: transform .25s, box-shadow .25s;
}

.lpc-try__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(29, 31, 29, .12);
}

.lpc-try__shot {
    position: relative;
    aspect-ratio: 4 / 3;
    margin-bottom: 18px;
    border-radius: 20px;
    overflow: hidden;
    background: #1d1f1d;
}

.lpc-try__shot img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.lpc-try__card:hover .lpc-try__shot img {
    transform: scale(1.05);
}

.lpc-try__shot i {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-alt);
    color: #1d1f1d;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
}

.lpc-try__card h3 {
    margin: 0 10px 8px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    color: #1d1f1d;
}

.lpc-try__card p {
    flex: 1;
    margin: 0 10px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(29, 31, 29, .7);
}

.lpc-try__btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px;
    padding: 10px 16px;
    border: 1px solid #1d1f1d;
    border-radius: 999px;
    background: transparent;
    color: #1d1f1d;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.lpc-try__btn svg {
    width: 16px;
    height: 16px;
}

.lpc-try__btn:hover {
    background: var(--color-alt);
    border-color: var(--color-alt);
}

/* Возможности */
.lpc-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Карточка: иконка и заголовок в одну строку, текст — под ними на всю ширину */
.lpc-feature {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 14px;
    align-content: start;
    padding: 24px;
    border-radius: 24px;
    background: #232523;
    transition: transform .25s, background .25s;
}

.lpc-feature:hover {
    transform: translateY(-4px);
    background: #2b2d2b;
}

.lpc-feature__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(var(--color-alt--rgb), .14);
    color: var(--color-alt);
}

.lpc-feature__icon svg {
    width: 26px;
    height: 26px;
}

.lpc-feature h3 {
    align-self: center;
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    color: inherit;
}

.lpc-feature p {
    grid-column: 1 / -1;
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(var(--color-whte--rgb), .7);
}

/* Технологии: заголовок слева, логотипы (news.list/tech, как в услуге) справа */
.lpc-tech__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: center;
}

.lpc-tech .lpc-section__head {
    margin-bottom: 0;
}

.lpc-tech__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.lpc-tech__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    background: #f1f3ee;
    color: inherit;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}

.lpc-tech__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(29, 31, 29, .12);
}

.lpc-tech__item img {
    width: 56px;
    height: 56px;
    flex: none;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(29, 31, 29, .08);
    padding: 6px;
}

.lpc-tech__item b {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    color: #1d1f1d;
}

.lpc-tech__item small {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(29, 31, 29, .65);
}

/* Этапы */
.lpc-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lpc-step;
}

.lpc-step {
    position: relative;
    padding: 24px 20px;
    border-top: 2px solid var(--color-alt);
    counter-increment: lpc-step;
}

.lpc-step::before {
    content: "0" counter(lpc-step);
    display: block;
    margin-bottom: 14px;
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    color: rgba(var(--color-alt--rgb), .45);
}

.lpc-step h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: inherit;
}

.lpc-step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(var(--color-whte--rgb), .7);
}

/* Призыв */
.lpc-cta {
    color: var(--color-whte);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
    padding: clamp(32px, 4vw, 56px);
    border-radius: 32px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(var(--color-alt--rgb), .22), transparent 55%),
        var(--lpc-card);
}

.lpc-band--light .lpc-cta .lpc-lead {
    color: rgba(var(--color-whte--rgb), .75);
}

.lpc-band--light .lpc-cta {
    color: var(--color-whte);
}

.lpc-cta__list {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.lpc-cta__list li {
    position: relative;
    padding-left: 30px;
    font-size: 17px;
    line-height: 1.45;
    color: rgba(var(--color-whte--rgb), .85);
}

.lpc-cta__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1f1d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.lpc-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.lpc-cta__contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 18px;
    font-weight: 500;
}

.lpc-cta__contacts a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(var(--color-alt--rgb), .7);
    text-underline-offset: 5px;
}

.lpc-cta__contacts a:hover {
    color: var(--color-alt);
}

.lpc-works {
    padding-top: clamp(24px, 3vw, 48px);
}

.lpc-section + .lpc-works {
    padding-top: 0;
}

@media (max-width: 1199.98px) {
    .lpc-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .lpc-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .lpc-try {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Планшеты и узкий десктоп: «попробуйте» — по 3 карточки в строке, остальные листаются по горизонтали
   (на телефоне — своя лента ниже). Отступы сверху/снизу — чтобы подъём и тень карточки при наведении не обрезались */
@media (min-width: 768px) and (max-width: 1365.98px) {
    .lpc-try {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 32px) / 3);
        margin-top: -8px;
        padding: 8px 0 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: rgba(29, 31, 29, .25) transparent;
    }

    .lpc-try__card {
        scroll-snap-align: start;
    }
}

@media (max-width: 991.98px) {
    .lpc-hero__grid,
    .lpc-tech__grid,
    .lpc-cta {
        grid-template-columns: 1fr;
    }

    .lpc-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .lpc-features,
    .lpc-steps,
    .lpc-tech__list {
        grid-template-columns: 1fr;
    }

    .lpc-hero__facts {
        grid-template-columns: 1fr 1fr;
    }

    .lpc-fact {
        padding: 16px;
    }
}

/* Телефон и узкий планшет: карточки «попробуйте» — лента с прокруткой пальцем (на телефоне видна следующая карточка) */
@media (max-width: 767.98px) {
    .lpc-try {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 78%;
        gap: 12px;
        margin-right: -16px;
        padding-right: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .lpc-try::-webkit-scrollbar {
        display: none;
    }

    .lpc-try__card {
        scroll-snap-align: start;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .lpc-try {
        grid-auto-columns: 46%;
    }
}
