<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Title");
?>Text here....<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>/* ============================================================ */
/* CASE PAGE — техно-стиль страницы кейса                        */
/* ============================================================ */

body {
    font-family: 'Montserrat', sans-serif;
}

/* Отступ от фиксированной шапки */
.case_top {
    display: block;
    min-height: 90px;
    padding-top: 0 !important;
}

/* ============================================= */
/* БАННЕР                                        */
/* ============================================= */
.case {
    position: relative;
    overflow: hidden;
}

/* Затемняющий оверлей для читаемости текста */
.case-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(20, 12, 13, .78) 0%, rgba(20, 12, 13, .45) 55%, rgba(20, 12, 13, .15) 100%);
    z-index: 1;
    pointer-events: none;
}

.case-banner-content {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 40px;
}

.case-banner-tag {
    display: inline-block;
    padding: 9px 30px;
    margin-bottom: 26px;
    background: #E11F2B;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 30px;
}

.case_title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.5px;
}

/* Появление баннера при загрузке */
.case-banner-content .reveal-item {
    opacity: 0;
    transform: translateY(30px);
    animation: bannerIn .9s cubic-bezier(.2, .8, .2, 1) forwards;
}

.case-banner-content .reveal-item:nth-child(1) { animation-delay: .15s; }
.case-banner-content .reveal-item:nth-child(2) { animation-delay: .35s; }

@keyframes bannerIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================= */
/* ОБЛАСТЬ КОНТЕНТА + АНИМИРОВАННЫЙ ФОН          */
/* ============================================= */
.case-page {
    position: relative;
    padding: 30px 0 90px;
    background: #FBFBFC;
    overflow: hidden;
}

/* Тонкая техно-сетка на всю область */
.case-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(225, 31, 43, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 31, 43, .04) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
    z-index: 0;
}

/* Световой луч, периодически проходящий по диагонали */
.case-page::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    width: 40%;
    height: 140%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(225, 31, 43, .05) 45%,
        rgba(225, 31, 43, .12) 50%,
        rgba(225, 31, 43, .05) 55%,
        transparent 100%);
    transform: translateX(-120%) skewX(-18deg);
    animation: lightSweep 9s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes lightSweep {
    0%, 15%   { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
    30%       { opacity: 1; }
    60%, 100% { transform: translateX(360%) skewX(-18deg); opacity: 0; }
}

/* Пульсирующие «импульсы» на фоне */
.case-circuit {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.case-pulse {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E11F2B;
    opacity: 0;
    animation: pulseDot 6s ease-in-out infinite;
}

.case-pulse::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(225, 31, 43, .4);
    border-radius: 50%;
    animation: pulseRing 6s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0; transform: scale(.5); }
    10%      { opacity: .9; transform: scale(1); }
    30%      { opacity: .3; transform: scale(1); }
    50%      { opacity: 0; transform: scale(.5); }
}

@keyframes pulseRing {
    0%   { transform: scale(.4); opacity: 0; }
    10%  { opacity: .8; }
    40%  { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}

.case-pulse-1 { top: 14%; left: 8%;  animation-delay: 0s; }
.case-pulse-2 { top: 30%; left: 88%; animation-delay: 1.4s; }
.case-pulse-3 { top: 52%; left: 12%; animation-delay: 2.6s; }
.case-pulse-4 { top: 68%; left: 82%; animation-delay: 3.8s; }
.case-pulse-5 { top: 84%; left: 46%; animation-delay: 5s; }

/* ============================================= */
/* СЕКЦИИ И ПОЯВЛЕНИЕ БЛОКОВ                     */
/* ============================================= */
.case-section {
    position: relative;
    z-index: 2;
    margin-bottom: 70px;
}

.case-section:last-child {
    margin-bottom: 0;
}

/* Базовое состояние скрытых блоков */
.reveal-item {
    opacity: 0;
    transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1);
    will-change: opacity, transform;
}

.reveal-item.from-left  { transform: translateX(-70px); }
.reveal-item.from-right { transform: translateX(70px); }
.reveal-item.from-up    { transform: translateY(45px); }

.reveal-item.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================= */
/* КАРТОЧКА «ОСОБЕННОСТИ ПРОЕКТА»                */
/* ============================================= */
.case-card {
    position: relative;
    padding: 44px 48px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #F0F0F0;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .05);
    overflow: hidden;
}

/* Красная линия-акцент слева, «вырастающая» при появлении */
.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #E11F2B;
    border-radius: 0 2px 2px 0;
    transition: height 1s cubic-bezier(.2, .8, .2, 1) .3s;
}

.case-card.visible::before,
.reveal-item.visible .case-card::before {
    height: 100%;
}

/* Если сам .case-card и есть .reveal-item */
.case-card.reveal-item.visible::before {
    height: 100%;
}

.case_features {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #E11F2B;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(225, 31, 43, .15);
}

.case_list__square {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.case_list__square li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    font-size: 17px;
    line-height: 26px;
    color: #1F1F1F;
    font-weight: 500;
}

.case_list__square li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    background: #E11F2B;
    border-radius: 2px;
    transform: rotate(45deg);
}

.case_text__black {
    font-size: 17px;
    line-height: 27px;
    color: #1F1F1F;
    font-weight: 500;
    margin-bottom: 0;
}

/* ============================================= */
/* НУМЕРОВАННЫЕ МОДУЛИ                           */
/* ============================================= */
.case-modules {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.case-modules li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 28px;
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 14px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, .04);
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

.case-modules li:hover {
    transform: translateY(-5px);
    border-color: rgba(225, 31, 43, .3);
    box-shadow: 0 16px 34px rgba(225, 31, 43, .1);
}

/* Номер в круге */
.case-modules li span {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #E11F2B;
    background: rgba(225, 31, 43, .08);
    border: 1px solid rgba(225, 31, 43, .2);
    border-radius: 50%;
    transition: all .35s ease;
}

.case-modules li:hover span {
    background: #E11F2B;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(225, 31, 43, .3);
}

/* Текст пункта */
.case-modules li {
    font-size: 16px;
    line-height: 25px;
    color: #333333;
    font-weight: 400;
}

/* Каскадные задержки появления пунктов */
.case-modules li:nth-child(1) { transition-delay: .05s; }
.case-modules li:nth-child(2) { transition-delay: .12s; }
.case-modules li:nth-child(3) { transition-delay: .19s; }
.case-modules li:nth-child(4) { transition-delay: .26s; }
.case-modules li:nth-child(5) { transition-delay: .33s; }
.case-modules li:nth-child(6) { transition-delay: .40s; }
.case-modules li:nth-child(7) { transition-delay: .47s; }

/* ============================================= */
/* ДРУГИЕ ПРИМЕРЫ РАБОТ                          */
/* ============================================= */
.case-section .block_title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1F1F1F;
}

.case-work-card {
    display: flex;
    align-items: stretch;
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 22px rgba(0, 0, 0, .05);
    transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease;
    min-height: 220px;
}

.case-work-card:hover {
    transform: translateY(-7px);
    border-color: rgba(225, 31, 43, .3);
    box-shadow: 0 22px 45px rgba(225, 31, 43, .12);
    text-decoration: none;
}

.case-work-img {
    flex: 0 0 42%;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
}

.case-work-card:hover .case-work-img {
    transform: scale(1.05);
}

.case-work-img-2 {
    background-image: url('/img/example-2.png');
}

.case-work-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 36px;
}

.case-work-tag {
    align-self: flex-start;
    padding: 6px 16px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #E11F2B;
    background: rgba(225, 31, 43, .06);
    border: 1px solid rgba(225, 31, 43, .12);
    border-radius: 6px;
}

.case-work-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 21px;
    line-height: 30px;
    font-weight: 600;
    color: #1F1F1F;
    transition: color .3s ease;
}

.case-work-card:hover .case-work-title {
    color: #E11F2B;
}

.case-work-arrow {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #E11F2B;
    opacity: .75;
    transition: gap .35s ease, opacity .35s ease;
}

.case-work-arrow svg {
    transition: transform .35s ease;
}

.case-work-card:hover .case-work-arrow {
    opacity: 1;
    gap: 16px;
}

.case-work-card:hover .case-work-arrow svg {
    transform: translateX(4px);
}

/* ============================================= */
/* ФОРМА ЗАЯВКИ                                  */
/* ============================================= */
.case-form-wrapper {
    padding: 52px 56px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #F0F0F0;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .06);
}

.case-form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    line-height: 42px;
    font-weight: 600;
    color: #E11F2B;
    margin-bottom: 18px;
}

.case-form-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 25px;
    color: #777777;
    margin: 0;
}

/* ============================================= */
/* АДАПТИВНОСТЬ                                  */
/* ============================================= */
@media (max-width: 991.98px) {
    .case_top { min-height: 80px; }

    .case-card { padding: 34px 32px; }

    .case-modules { grid-template-columns: 1fr; }

    .case-form-wrapper { padding: 36px 30px; }

    .case-form-title { font-size: 28px; line-height: 36px; }
}

@media (max-width: 575.98px) {
    .case_top { min-height: 70px; }

    .case-banner-tag { padding: 7px 22px; font-size: 11px; }

    .case-card { padding: 28px 22px; }

    .case_features { font-size: 20px; }

    .case_list__square li,
    .case_text__black { font-size: 15px; line-height: 24px; }

    .case-modules li { padding: 20px 18px; }

    .case-modules li span { width: 38px; height: 38px; font-size: 15px; }

    .case-modules li { font-size: 14px; line-height: 22px; }

    .case-work-card { flex-direction: column; }

    .case-work-img { flex: 0 0 200px; }

    .case-work-body { padding: 24px 22px; }

    .case-form-wrapper { padding: 28px 20px; }

    .case-form-title { font-size: 24px; line-height: 32px; }
}

/* ============================================================ */
/* CASE-2 — вложенные модули с маркированными списками          */
/* ============================================================ */

/* Крупные модули в одну колонку */
.case-modules.case-modules-nested {
    grid-template-columns: 1fr;
}

/* Контент модуля (заголовок + вложенный список) */
.case-module-content {
    flex: 1;
}

.case-module-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    color: #1F1F1F;
    margin-bottom: 16px;
}

/* Вложенный маркированный список */
.case-modules .case_list__circle {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.case-modules .case_list__circle li {
    position: relative;
    display: block;
    padding: 7px 0 7px 24px;
    margin-bottom: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    gap: 0;
    font-size: 15px;
    line-height: 23px;
    color: #444444;
    transition: color .3s ease;
}

.case-modules .case_list__circle li:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
    color: #E11F2B;
}

/* Красная точка-маркер */
.case-modules .case_list__circle li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 8px;
    height: 8px;
    background: #E11F2B;
    border-radius: 50%;
}

/* Убираем номер-круг для вложенных списков на случай наследования */
.case-modules .case_list__circle li span {
    display: none;
}

/* Каскадные задержки для крупных модулей */
.case-modules.case-modules-nested li:nth-child(1) { transition-delay: .05s; }
.case-modules.case-modules-nested li:nth-child(2) { transition-delay: .15s; }
.case-modules.case-modules-nested li:nth-child(3) { transition-delay: .25s; }
.case-modules.case-modules-nested li:nth-child(4) { transition-delay: .35s; }

@media (max-width: 575.98px) {
    .case-module-title {
        font-size: 16px;
        line-height: 24px;
    }

    .case-modules .case_list__circle li {
        font-size: 14px;
        line-height: 21px;
        padding: 6px 0 6px 20px;
    }
}