

/* Start:/bitrix/templates/forum/template_styles.css?179206726841757*/
:root {
            --primary-green: #00A859;
            --dark-green: #007a41;
            --light-green: #8BC34A;
            --black: #000000;
            --bg-color: #F8F9FA;
            --white: #FFFFFF;
            --text-grey: #555555;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
        body { background-color: var(--bg-color); color: var(--black); line-height: 1.6; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
        a { text-decoration: none; color: inherit; }
        .btn {
            display: inline-block;
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.3s;
            text-align: center;
        }
        .btn-primary { background-color: var(--primary-green); color: var(--white); }
        .btn-primary:hover { background-color: #008c48; transform: translateY(-2px); }
        .btn-outline { background-color: transparent; border: 2px solid var(--primary-green); color: var(--primary-green); }
        .btn-outline:hover { background-color: var(--primary-green); color: var(--white); }
        .section { padding: 60px 0; }
        .section-title { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 40px; }
        .section-title span { color: var(--primary-green); }

        /* 1. Шапка (Лого + Навигация) */
        /* =========================================
   ШАПКА + АДАПТИВНОЕ МЕНЮ
   ========================================= */
header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    z-index: 102;
}
.logo span { color: var(--black); }

/* --- Обычное меню (десктоп) --- */
.nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}
.nav a {
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}
.nav a:hover { color: var(--primary-green); }
.nav-mobile-cta { display: none; }

/* --- Бургер (скрыт на десктопе) --- */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 102;
    position: relative;
}
.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--black);
    border-radius: 3px;
    margin: 5px 0;
    transition: 0.3s ease;
    transform-origin: center;
}

/* --- Мобильная версия --- */
@media (max-width: 768px) {

    .burger { display: block; }

    /* Затемнение фона через box-shadow (без ::before) */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        padding: 90px 25px 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 101;

        /* Затемнение вокруг панели — эффект «подложки» */
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.3s ease;
        /* Обрезаем тень по краям экрана */
        clip-path: inset(0 -100vmax);
    }

    .nav.active {
        right: 0;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
    }

    /* Ссылки в столбик */
    .nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    .nav ul li {
        border-bottom: 1px solid #f0f0f0;
    }
    .nav ul li:last-child { border-bottom: none; }
    .nav a {
        display: block;
        padding: 16px 0;
        font-size: 1.1rem;
        font-weight: 500;
    }
    .nav a:hover { color: var(--primary-green); padding-left: 8px; }

    /* CTA-кнопка внутри меню */
    .nav-mobile-cta {
        display: block;
        margin-top: 20px;
        border-bottom: none;
    }
    .nav-mobile-cta .btn {
        display: block;
        width: 100%;
        padding: 14px 20px;
    }

    /* Анимация бургера в крестик */
    .burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    body.menu-open { overflow: hidden; }

    .logo { font-size: 1.5rem; }
}

/* --- Очень узкие экраны --- */
@media (max-width: 400px) {
    .nav { width: 100%; max-width: none; }
    .logo { font-size: 1.3rem; }
}
        /* 2. Главный баннер */
        .banner { background: linear-gradient(135deg, #f0f5f0 0%, #e6f5e6 100%); padding: 80px 0; }
        .banner-content { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
        .banner-text { flex: 1; }
        .banner-text h1 { font-size: 3.2rem; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
        .banner-text h1 span { color: var(--primary-green); }
        .banner-text p { font-size: 1.1rem; color: var(--text-grey); margin-bottom: 30px; max-width: 80%; }
        /* =========================================
   БАННЕРНЫЕ CTA-КНОПКИ (обновлённые)
   ========================================= */
.banner-cta {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* Общий вид кнопок в баннере */
.banner-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1;
    min-height: 54px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

/* Главная — залитая зелёная */
.banner-buttons .btn-primary {
    background: var(--primary-green);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 168, 89, 0.28);
}
.banner-buttons .btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 168, 89, 0.38);
}
.banner-buttons .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 168, 89, 0.3);
}
.banner-buttons .btn-primary svg { flex-shrink: 0; }

/* Программа — контурная, но с той же высотой */
.banner-buttons .btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    box-shadow: none;
}
.banner-buttons .btn-outline:hover {
    background: var(--primary-green);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 168, 89, 0.25);
}
.banner-buttons .btn-outline svg { flex-shrink: 0; }

/* Ссылка «Вы докладчик?» */
.banner-speakers-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: 0.25s;
    width: fit-content;
}
.banner-speakers-link svg { flex-shrink: 0; transition: transform 0.3s ease; }
.banner-speakers-link:hover {
    color: var(--dark-green);
    border-bottom-color: var(--dark-green);
}
.banner-speakers-link:hover svg {
    transform: translateY(-2px);
}

/* =========================================
   АДАПТИВ
   ========================================= */
@media (max-width: 768px) {
    .banner-cta { align-items: stretch; width: 100%; }
    .banner-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .banner-buttons .btn {
        width: 100%;
        padding: 15px 24px;
    }
    .banner-speakers-link {
        align-self: center;
        text-align: center;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .banner-buttons .btn {
        font-size: 0.95rem;
        padding: 14px 20px;
    }
    .banner-buttons .btn svg { width: 16px; height: 16px; }
    .banner-speakers-link { font-size: 0.88rem; }
}
        .banner-img { flex: 1; max-width: 550px; }
        .banner-img img { width: 100%; height: auto; }

         .info-section {
            background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
            padding: 80px 0;
            color: var(--white);
            overflow: hidden;
            position: relative;
        }
        .info-section::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
            background-size: 30px 30px;
            pointer-events: none;
        }
        .info-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 60px;
            position: relative;
            z-index: 2;
        }

        /* --- Левая часть: Анимация (усиленная) --- */
        .info-visual {
            flex: 1.1;              /* Чуть шире, чем правая */
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            height: 500px;         /* Выше, чтобы дать пространство */
            min-width: 0;
        }

        /* Вращающееся пунктирное кольцо — новый элемент */
        .rotating-ring {
            position: absolute;
            width: 420px;
            height: 420px;
            border-radius: 50%;
            border: 1px dashed rgba(255, 255, 255, 0.35);
            animation: rotate 30s linear infinite;
        }
        .rotating-ring::before {
            content: '';
            position: absolute;
            top: -4px; left: 50%;
            width: 8px; height: 8px;
            background: var(--white);
            border-radius: 50%;
            transform: translateX(-50%);
            box-shadow: 0 0 12px rgba(255,255,255,0.9);
        }

        /* Пульсирующие круги — теперь 4 */
        .pulse-circle {
            position: absolute;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.45);
            animation: pulse 5s infinite ease-in-out;
        }
        .pulse-circle:nth-child(1) { width: 140px; height: 140px; animation-delay: 0s; }
        .pulse-circle:nth-child(2) { width: 230px; height: 230px; animation-delay: 1.2s; border-color: rgba(255, 255, 255, 0.3); }
        .pulse-circle:nth-child(3) { width: 320px; height: 320px; animation-delay: 2.4s; border-color: rgba(255, 255, 255, 0.2); }
        .pulse-circle:nth-child(4) { width: 400px; height: 400px; animation-delay: 3.6s; border-color: rgba(255, 255, 255, 0.1); }

        /* Ядро — тёмно-зелёное (не чёрное), с белым крестом */
        .core-circle {
            width: 90px;
            height: 90px;
            background: radial-gradient(circle at 30% 30%, #00c46a, var(--deeper-green));
            border-radius: 50%;
            box-shadow:
                0 0 0 8px rgba(255,255,255,0.1),
                0 0 40px rgba(0, 90, 48, 0.8),
                0 0 80px rgba(0, 90, 48, 0.5);
            z-index: 3;
            animation: breathe 3s infinite ease-in-out;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .core-circle::before {
            content: '+';
            color: var(--white);
            font-size: 3rem;
            font-weight: 300;
            line-height: 1;
            text-shadow: 0 0 10px rgba(255,255,255,0.6);
        }

        /* Движущиеся квадраты — теперь 5 */
        .square {
            position: absolute;
            width: 15px;
            height: 15px;
            background-color: var(--white);
            opacity: 0.85;
            border-radius: 3px;
            box-shadow: 0 0 10px rgba(255,255,255,0.4);
        }
        .square-1 { top: 15%; left: 18%; animation: float 6s infinite ease-in-out; }
        .square-2 { bottom: 20%; right: 15%; animation: float 8s infinite ease-in-out reverse; opacity: 0.6; }
        .square-3 { top: 42%; right: 8%; animation: float 7s infinite ease-in-out 1s; width: 11px; height: 11px; opacity: 0.7; }
        .square-4 { bottom: 30%; left: 12%; animation: float 9s infinite ease-in-out 0.5s; width: 9px; height: 9px; opacity: 0.5; }
        .square-5 { top: 8%; right: 30%; animation: float 10s infinite ease-in-out 2s; width: 13px; height: 13px; opacity: 0.6; }

        /* Движущиеся точки — теперь 8 */
        .dot {
            position: absolute;
            width: 7px;
            height: 7px;
            background-color: var(--white);
            border-radius: 50%;
            opacity: 0.85;
            box-shadow: 0 0 8px rgba(255,255,255,0.7);
        }
        .dot-1 { top: 8%;  left: 50%; animation: moveDots 10s infinite linear; }
        .dot-2 { bottom: 8%; left: 28%; animation: moveDots 12s infinite linear reverse; }
        .dot-3 { top: 50%; left: 5%;  animation: moveDots 8s infinite linear 2s; }
        .dot-4 { top: 72%; right: 25%; animation: moveDots 15s infinite linear; }
        .dot-5 { top: 28%; right: 38%; animation: moveDots 9s infinite linear reverse; }
        .dot-6 { top: 20%; left: 30%; animation: moveDots 11s infinite linear 1.5s; opacity: 0.6; width: 5px; height: 5px; }
        .dot-7 { bottom: 15%; right: 45%; animation: moveDots 13s infinite linear 0.8s; opacity: 0.6; width: 5px; height: 5px; }
        .dot-8 { top: 60%; right: 8%; animation: moveDots 14s infinite linear 2.5s; opacity: 0.7; }

        /* Линия пульса — толще и ярче */
        .pulse-line {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0; left: 0;
            pointer-events: none;
            z-index: 1;
        }
        .pulse-line svg {
            width: 100%;
            height: 100%;
            stroke: var(--white);
            stroke-width: 3;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-dasharray: 1400;
            stroke-dashoffset: 1400;
            animation: dash 4s linear infinite;
            opacity: 0.85;
            filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
        }

        /* --- Правая часть --- */
        .info-content {
            flex: 1;
            padding-left: 20px;
            min-width: 0;
        }
        .info-content h2 {
            font-size: 2.5rem;
            margin-bottom: 30px;
            line-height: 1.2;
            color: var(--white);
        }
        .info-list { list-style: none; }
        .info-list li {
            display: flex;
            align-items: flex-start;
            margin-bottom: 22px;
            padding-bottom: 22px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }
        .info-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
        .info-list-icon {
            font-size: 1.5rem;
            margin-right: 20px;
            background: var(--white);
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            flex-shrink: 0;
            color: var(--primary-green);
            box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        }
        .info-list-text h4 {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.85);
            font-weight: 500;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .info-list-text p {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--white);
        }
        .info-list-text p .highlight {
            color: var(--black);
            background: rgba(255,255,255,0.25);
            padding: 2px 8px;
            border-radius: 5px;
        }

        /* Пилюли «При поддержке» */
        .support-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 4px;
        }
        .support-chip {
            display: inline-block;
            background: rgba(255, 255, 255, 0.15);
            color: var(--white);
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 500;
            line-height: 1.3;
            border: 1px solid rgba(255, 255, 255, 0.25);
            transition: 0.3s;
            white-space: nowrap;
        }
        .support-chip:hover {
            background: var(--white);
            color: var(--primary-green);
            border-color: var(--white);
        }
        .support-chip.long { white-space: normal; text-align: left; }

        /* Анимации */
        @keyframes pulse {
            0%   { transform: scale(0.7); opacity: 1; }
            50%  { transform: scale(1.15); opacity: 0.15; }
            100% { transform: scale(0.7); opacity: 1; }
        }
        @keyframes breathe {
            0%   { transform: scale(1);    box-shadow: 0 0 0 8px rgba(255,255,255,0.1), 0 0 40px rgba(0,90,48,0.8), 0 0 80px rgba(0,90,48,0.5); }
            50%  { transform: scale(1.12); box-shadow: 0 0 0 14px rgba(255,255,255,0.08), 0 0 60px rgba(0,90,48,1),   0 0 120px rgba(0,90,48,0.7); }
            100% { transform: scale(1);    box-shadow: 0 0 0 8px rgba(255,255,255,0.1), 0 0 40px rgba(0,90,48,0.8), 0 0 80px rgba(0,90,48,0.5); }
        }
        @keyframes float {
            0%   { transform: translate(0, 0) rotate(0deg); }
            50%  { transform: translate(25px, -25px) rotate(45deg); }
            100% { transform: translate(0, 0) rotate(0deg); }
        }
        @keyframes moveDots {
            0%   { transform: translate(0, 0);     opacity: 0.2; }
            50%  { opacity: 1; }
            100% { transform: translate(40px, -40px); opacity: 0.2; }
        }
        @keyframes dash {
            to { stroke-dashoffset: 0; }
        }
        @keyframes rotate {
            from { transform: rotate(0deg); }
            to   { transform: rotate(360deg); }
        }
        /* ========================================= */


        /* 4-5. Председатели и Почетные гости */
        .speakers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
        .speaker-card { background: var(--white); border-radius: 12px; padding: 25px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: 0.3s; }
        .speaker-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
        .speaker-img { width: 100px; height: 100px; background: #ccc; border-radius: 50%; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white;overflow: hidden; }
        .speaker-img img {
    max-width: 100%;
}
        .speaker-card h4 { font-size: 1.1rem; margin-bottom: 5px; }
        .speaker-card p { font-size: 0.9rem; color: var(--text-grey); }

        /* 6. Темы конференции */
        .topics-block { background: var(--white); border-radius: 12px; padding: 40px; }
        .topics-content { display: flex; gap: 40px; }
        .topics-left, .topics-right { flex: 1; }
        .topics-left ul { list-style: none; margin-top: 15px; }
        .topics-left li { margin-bottom: 10px; padding-left: 20px; position: relative; }
        .topics-left li::before { content: '✔'; color: var(--primary-green); position: absolute; left: 0; font-weight: bold; }
        .topics-list { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 20px; }
        .topic-pill { background: #eef5ee; color: var(--black); padding: 10px 20px; border-radius: 30px; font-weight: 600; border-left: 4px solid var(--primary-green); }
        .btn-container { text-align: center; margin-top: 30px; }

        /* 7. Партнеры и Спонсоры */
        .partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; padding: 20px 0; }
        .partner-box { background: var(--white); width: 250px; height: 80px; display: flex; align-items: center; justify-content: center; border: 1px solid #eee; border-radius: 8px; color: var(--text-grey); font-weight: bold; }
        .partners-col { background: var(--white); padding: 30px; border-radius: 12px; margin-bottom: 20px; }
.partner-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 10px;
}

.partner-box img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}
        /* 8. Предстоящие и прошлые форумы */
        .events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
        .event-col { background: var(--white); padding: 30px; border-radius: 12px; }
        .event-card { border-bottom: 1px solid #eee; padding: 15px 0; display: flex; justify-content: space-between; align-items: center; }
        .event-card:last-child { border-bottom: none; }
        .event-tag { background: var(--light-green); padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; color: var(--white); }
        .past-event .event-tag { background: #ccc; }

        /* Адаптивность */
        @media (max-width: 992px) {
            .banner-content { flex-direction: column-reverse; text-align: center; }
            .banner-text p { max-width: 100%; margin: 0 auto 20px; }
            .banner-buttons { justify-content: center; }
            .speakers-grid { grid-template-columns: repeat(2, 1fr); }
            .events-grid { grid-template-columns: 1fr; }

            .info-wrapper { flex-direction: column; gap: 40px; }
            .info-visual { height: 300px; width: 100%; }
            .info-content { padding-left: 0; text-align: center; }
            .info-list li { flex-direction: column; align-items: center; text-align: center; }
            .info-list-icon { margin-right: 0; margin-bottom: 15px; }
        }
        @media (max-width: 576px) {
            .header-content { flex-direction: column; gap: 15px; }
            .nav ul { flex-wrap: wrap; justify-content: center; }
            .speakers-grid { grid-template-columns: 1fr; }
            .topics-content { flex-direction: column; }
            .pulse-circle:nth-child(3) { width: 250px; height: 250px; }
        }

        .expandable {
    position: relative;
}

/* Скрываем чекбокс */
.expand-toggle {
    display: none;
}

/* Контент: по умолчанию 5 строк */
.expandable-content {
    position: relative;
    max-height: calc(1.6em * 5); /* 5 строк при line-height 1.6 */
    overflow: hidden;
    transition: max-height 0.5s ease;
}

/* Градиентное затухание снизу */
.expandable-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 90%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.expandable-content p {
    line-height: 1.6;
    color: var(--text-grey);
    margin: 0;
}

/* Кнопка «Читать далее» */
.expand-btn {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    position: relative;
    padding-right: 18px;
}
.expand-btn::after {
    content: '↓';
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s ease;
}
.expand-btn:hover {
    color: var(--dark-green);
    text-decoration: underline;
}
.expand-btn::before {
    content: 'Читать далее';
}

/* СОСТОЯНИЕ: РАСКРЫТО */
.expand-toggle:checked ~ .expandable-content {
    max-height: 2000px; /* Достаточно для любого текста */
}
.expand-toggle:checked ~ .expandable-content::after {
    opacity: 0; /* Убираем градиент */
}
.expand-toggle:checked ~ .expand-btn::before {
    content: 'Свернуть';
}
.expand-toggle:checked ~ .expand-btn::after {
    content: '↑';
    transform: translateY(-2px);
}
/* =========================================
   МОДАЛЬНОЕ ОКНО РЕГИСТРАЦИИ
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}
.modal-overlay.active .modal-window {
    transform: translateY(0) scale(1);
}

/* Кнопка закрытия */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #333;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-bottom: 4px;
}
.modal-close:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: rotate(90deg);
}

/* Заголовок модалки */
.modal-header {
    margin-bottom: 25px;
    text-align: left;
}
.modal-header h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}
.modal-header h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
    margin-top: 10px;
}
.modal-header p {
    font-size: 0.95rem;
    color: var(--text-grey);
    margin-top: 12px;
}

/* Группы полей */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
}
.form-group .required {
    color: #e53935;
}
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--black);
    background: #fafafa;
    transition: 0.25s;
    outline: none;
}
.form-group input:hover {
    border-color: #ccc;
}
.form-group input:focus {
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.12);
}
.form-group input::placeholder {
    color: #aaa;
}

/* Чекбокс согласия */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 25px;
    font-size: 0.9rem;
    color: var(--text-grey);
}
.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-green);
    cursor: pointer;
    flex-shrink: 0;
}
.form-checkbox label {
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

/* Кнопка на всю ширину */
.btn-full {
    width: 100%;
    border: none;
    font-size: 1rem;
    padding: 15px 30px;
}

/* Адаптив */
@media (max-width: 576px) {
    .modal-window {
        padding: 30px 20px;
        border-radius: 16px;
    }
    .modal-header h3 {
        font-size: 1.4rem;
    }
}

/* Блокировка скролла body при открытой модалке */
body.modal-open {
    overflow: hidden;
}
#registrationModal {
    display: none;
}

#registrationModal.active {
    display: flex;
}

#registrationMessage {
    margin: 12px 0;
    font-size: 14px;
}

.form-message-success {
    color: #16803c;
}

.form-message-error {
    color: #c62828;
}

#registrationSubmit:disabled {
    opacity: 0.6;
    cursor: wait;
}
 /* Карточка формы */
        .form-wrapper {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 50px 20px;
        }
        .form-card {
            background: var(--white);
            border-radius: 20px;
            padding: 45px;
            width: 100%;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
        }
        .form-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--primary-green), var(--light-green));
        }

        /* Заголовок */
        .form-header {
            text-align: center;
            margin-bottom: 35px;
        }
        .form-header .icon-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 64px;
            height: 64px;
            background: linear-gradient(135deg, var(--primary-green), var(--light-green));
            border-radius: 18px;
            font-size: 1.8rem;
            color: var(--white);
            margin-bottom: 18px;
            box-shadow: 0 10px 25px rgba(0, 168, 89, 0.3);
        }
        .form-header h1 {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--black);
            margin-bottom: 8px;
        }
        .form-header p {
            color: var(--text-grey);
            font-size: 0.95rem;
        }

        /* Группы полей */
        .form-group { margin-bottom: 22px; }
        .form-group label {
            display: block;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--black);
            margin-bottom: 8px;
        }
        .form-group .required { color: #e53935; }
        .form-group .hint {
            display: block;
            font-size: 0.8rem;
            color: var(--text-grey);
            font-weight: 400;
            margin-top: 4px;
            font-style: italic;
        }
        .form-group input[type="text"],
        .form-group input[type="email"] {
            width: 100%;
            padding: 13px 16px;
            border: 2px solid #e5e5e5;
            border-radius: 10px;
            font-size: 1rem;
            font-family: inherit;
            color: var(--black);
            background: #fafafa;
            transition: 0.25s;
            outline: none;
        }
        .form-group input[type="text"]:hover,
        .form-group input[type="email"]:hover { border-color: #ccc; }
        .form-group input[type="text"]:focus,
        .form-group input[type="email"]:focus {
            border-color: var(--primary-green);
            background: var(--white);
            box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.12);
        }
        .form-group input::placeholder { color: #aaa; }

        /* Drop-zone для файла */
        .file-upload {
            position: relative;
            border: 2px dashed #ccc;
            border-radius: 14px;
            padding: 35px 20px;
            text-align: center;
            background: #fafafa;
            cursor: pointer;
            transition: 0.3s;
        }
        .file-upload:hover {
            border-color: var(--primary-green);
            background: #f3fbf6;
        }
        .file-upload.dragover {
            border-color: var(--primary-green);
            background: #e8f7ee;
            transform: scale(1.01);
        }
        .file-upload.has-file {
            border-color: var(--primary-green);
            border-style: solid;
            background: #f3fbf6;
            padding: 20px;
        }
        .file-upload input[type="file"] {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
        }
        .file-upload-icon {
            font-size: 2.5rem;
            color: var(--primary-green);
            margin-bottom: 10px;
            display: block;
        }
        .file-upload-text {
            font-size: 1rem;
            color: var(--black);
            font-weight: 600;
            margin-bottom: 5px;
        }
        .file-upload-subtext {
            font-size: 0.85rem;
            color: var(--text-grey);
        }
        .file-upload-formats {
            display: inline-block;
            margin-top: 12px;
            font-size: 0.75rem;
            color: var(--primary-green);
            background: rgba(0, 168, 89, 0.1);
            padding: 4px 12px;
            border-radius: 30px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        /* Отображение выбранного файла */
        .file-info {
            display: none;
            align-items: center;
            gap: 15px;
            text-align: left;
        }
        .file-upload.has-file .file-info { display: flex; }
        .file-upload.has-file .file-upload-icon,
        .file-upload.has-file .file-upload-text,
        .file-upload.has-file .file-upload-subtext,
        .file-upload.has-file .file-upload-formats { display: none; }

        .file-icon-box {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            background: var(--primary-green);
            color: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            font-weight: 700;
            flex-shrink: 0;
        }
        .file-meta { flex: 1; min-width: 0; }
        .file-meta .file-name {
            font-weight: 600;
            color: var(--black);
            font-size: 0.95rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .file-meta .file-size {
            font-size: 0.85rem;
            color: var(--text-grey);
            margin-top: 2px;
        }
        .file-remove {
            background: none;
            border: none;
            color: #999;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 5px;
            line-height: 1;
            transition: 0.3s;
        }
        .file-remove:hover { color: #e53935; }

        /* Чекбокс */
        .form-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 16px;
            background: #f9f9f9;
            border-radius: 10px;
            border: 2px solid transparent;
            transition: 0.3s;
            cursor: pointer;
            margin-bottom: 25px;
        }
        .form-checkbox:hover {
            background: #f3fbf6;
            border-color: rgba(0, 168, 89, 0.3);
        }
        .form-checkbox input[type="checkbox"] {
            width: 20px;
            height: 20px;
            margin-top: 2px;
            accent-color: var(--primary-green);
            cursor: pointer;
            flex-shrink: 0;
        }
        .form-checkbox label {
            cursor: pointer;
            user-select: none;
            font-size: 0.95rem;
            color: var(--black);
            font-weight: 500;
            line-height: 1.4;
        }
        .form-checkbox label small {
            display: block;
            font-weight: 400;
            color: var(--text-grey);
            font-size: 0.82rem;
            margin-top: 3px;
        }

        /* Кнопка */
        .btn {
            display: inline-block;
            padding: 15px 30px;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.3s;
            text-align: center;
            border: none;
            font-size: 1rem;
            font-family: inherit;
        }
        .btn-primary {
            background: var(--primary-green);
            color: var(--white);

            box-shadow: 0 8px 20px rgba(0, 168, 89, 0.3);
        }
        .btn-primary:hover:not(:disabled) {
            background: var(--dark-green);
            transform: translateY(-2px);
            box-shadow: 0 12px 25px rgba(0, 168, 89, 0.4);
        }
        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Прогресс-бар */
        .progress-wrapper {
            display: none;
            margin-top: 20px;
        }
        .progress-wrapper.active { display: block; }
        .progress-bar {
            height: 8px;
            background: #e5e5e5;
            border-radius: 10px;
            overflow: hidden;
        }
        .progress-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--primary-green), var(--light-green));
            border-radius: 10px;
            transition: width 0.3s ease;
        }
        .progress-text {
            text-align: center;
            font-size: 0.85rem;
            color: var(--text-grey);
            margin-top: 8px;
        }

        /* Сообщение об успехе */
        .success-message {
            display: none;
            text-align: center;
            padding: 40px 20px;
        }
        .success-message.active { display: block; }
        .success-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--primary-green), var(--light-green));
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: var(--white);
            margin-bottom: 20px;
            animation: popIn 0.5s ease;
        }
        .success-message h2 {
            font-size: 1.6rem;
            margin-bottom: 10px;
            color: var(--black);
        }
        .success-message p {
            color: var(--text-grey);
            font-size: 0.95rem;
        }
        .success-message .conf-id {
            display: inline-block;
            margin-top: 15px;
            padding: 6px 16px;
            background: #f0f5f0;
            color: var(--primary-green);
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.85rem;
            font-family: monospace;
        }

        /* Анимация */
        @keyframes popIn {
            0% { transform: scale(0); opacity: 0; }
            70% { transform: scale(1.1); }
            100% { transform: scale(1); opacity: 1; }
        }

        /* Адаптив */
        @media (max-width: 576px) {
            .form-card { padding: 30px 22px; border-radius: 16px; }
            .form-header h1 { font-size: 1.4rem; }
            .form-wrapper { padding: 30px 15px; }
            .file-upload { padding: 25px 15px; }
        }
/* End */
/* /bitrix/templates/forum/template_styles.css?179206726841757 */
