
        /* TIIF 2025 inspired colors and fonts from previous iteration */
        :root {
            --tiif-blue-dark: #0f4c81; /* Dark blue from the TIIF page background */
            --tiif-blue-light: #2980b9; /* A slightly lighter blue for buttons/accents */
            --tiif-yellow: #fbc02d; /* Yellow from the TIIF logo/accents */
            --tiif-text-dark: #333;
            --tiif-text-light: #fff;
            --tiif-bg-gradient: linear-gradient(135deg, #0f4c81, #1a71b1); /* Simulating the TIIF background */
            --header-height: 70px; /* Define header height for consistent layout */
        }

        body {
            margin: 0;
            font-family: 'Inter', sans-serif;
            background: var(--tiif-bg-gradient);
            display: flex;
            flex-direction: column; /* Changed to column to stack */
            justify-content: center; /* Centered content vertically */
            align-items: center;
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
            padding-top: var(--header-height);
            box-sizing: border-box;
        }
            /* Navigation styles */
        .main-nav {
            margin-left: auto; /* Push nav to the right */
            margin-right: 30px;
        }

        .main-nav ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            gap: 40px; /* Space between nav items */
        }

        .main-nav ul li a {
            color: var(--tiif-text-light);
            text-decoration: none;
            font-size: 1em;
            font-weight: 500;
            transition: color 0.3s ease, transform 0.2s ease;
            position: relative;
            padding: 5px 0;
        }

        .main-nav ul li a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background-color: var(--tiif-yellow);
            transition: width 0.3s ease;
        }

        .main-nav ul li a:hover::after {
            width: 100%;
        }

        .main-nav ul li a:hover {
            color: var(--tiif-yellow);
            transform: translateY(-2px);
        }

        /* Дополнительные медиа-запросы для адаптивности навигации */
        @media (max-width: 768px) {
            .main-nav {
                margin-left: 0;
                margin-right: 0;
                width: 100%;
                margin-top: 10px;
            }
            .main-nav ul {
                flex-direction: column;
                gap: 10px;
                align-items: center;
            }
        }
        #bg-video {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
            opacity: 0.6;
        }

        .header-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: var(--header-height);
            padding: 0 30px;
            background-color: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 1000;
            box-sizing: border-box;
            color: var(--tiif-text-light);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .header-overlay .logo {
            max-width: 65px;
            height: auto;
            margin-right: 20px;
        }

        .header-overlay .header-text {
            font-size: 18px;
            font-weight: 500;
            text-shadow: none;
            flex-grow: 1;
            text-align: left;
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .language-selector {
            margin-left: 30px;
            display: flex;
            align-items: center;
        }

        .language-selector select {
            padding: 8px 12px;
            font-size: 14px;
            border-radius: 6px;
            border: 1px solid var(--tiif-blue-dark);
            background-color: var(--tiif-text-light);
            color: var(--tiif-text-dark);
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            appearance: none;
            background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2C197.973L146.205%2C57.178L5.41%2C197.973H287z%22%2F%3E%3C%2Fsvg%3E');
            background-repeat: no-repeat;
            background-position: right 10px top 50%;
            background-size: 12px auto;
        }

        .main-content-area {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            flex-grow: 1;
            padding: 20px;
            box-sizing: border-box;
            width: 100%;
        }
        .forum-date {
            color: #ffd700; /* Золотой цвет, можно изменить */
            font-weight: bold;
            font-size: 1,5em; /* Увеличить при необходимости */
            text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
        }
        .forum-date-highlight {
        color: #ffd700; /* Выделенный цвет, можно изменить */
        font-weight: bold;
        }
        /* Styling for the introductory text */
        .forum-intro-text {
            color: var(--tiif-text-light);
            text-align: center;
            margin-top: 1px;
            margin-bottom: 1px;
            z-index: 1;
            width: 800px; /* Wider content for intro */
            max-width: 90%;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
        }

        .forum-intro-text h1 {
            font-size: 2.8em;
            color: var(--tiif-text-light);
            margin-bottom: 20px;
            font-weight: 200;
        }

        .forum-intro-text p {
            font-size: 1.2em;
            line-height: 1.8;
            margin-bottom: 1em;
        }

        .register-button-container {
            margin-bottom: 30px;
            text-align: center;
            z-index: 1;
        }

        .register-button-container button {
            padding: 15px 30px;
            font-size: 20px;
            border: none;
            border-radius: 8px;
            background: var(--tiif-yellow);
            color: var(--tiif-blue-dark);
            cursor: pointer;
            transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
            font-weight: 700;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        .register-button-container button:hover {
            background: #e6b01e;
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.4);
        }

        .form-box {
            background: #ffffff;
            padding: 30px 40px;
            border-radius: 10px;
            width: 800px; /* Adjusted width for two columns */
            max-width: 90%;
            box-shadow: 0 15px 40px rgba(0,0,0,0.25);
            position: relative;
            z-index: 1;
            margin-top: 20px;
            margin-bottom: 20px;
            display: none; /* Hidden by default */

            /* CSS Grid for multi-column layout */
            display: grid;
            grid-template-columns: 1fr 1fr; /* Two equal columns */
            gap: 20px 40px; /* Row gap, Column gap */
            align-items: start; /* Align items to the start of their cells */
        }

        /* Span columns for specific elements */
        .form-box h2,
        .form-box button[type="submit"],
        .form-box .toast {
            grid-column: span 2; /* These elements span both columns */
        }

        .form-box .close-btn {
            position: absolute; /* Keep close button positioned absolutely */
            top: 15px;
            right: 15px;
            font-size: 24px;
            color: #888;
            cursor: pointer;
            transition: color 0.3s ease;
            line-height: 1;
            z-index: 10; /* Ensure it's above other elements */
        }

        .close-btn:hover {
            color: #333;
        }

        h2 {
            text-align: center;
            margin-bottom: 25px;
            font-weight: 600;
            color: var(--tiif-text-dark);
        }

        label {
            font-size: 14px;
            margin-bottom: 5px;
            display: block;
            color: var(--tiif-text-dark);
            font-weight: 500;
        }

        input, select {
            width: 100%;
            padding: 12px 15px;
            font-size: 15px;
            border: 1px solid #e0e0e0;
            border-radius: 5px;
            margin-bottom: 0px; /* Remove margin-bottom here to let grid gap handle spacing */
            box-sizing: border-box;
            background-color: #fcfcfc;
            color: var(--tiif-text-dark);
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        input:focus, select:focus {
            border-color: #a0cff7;
            outline: none;
            box-shadow: 0 0 0 3px rgba(160, 207, 247, 0.4);
        }
        
        select {
            appearance: none; /* Remove default arrow */
            background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2C197.973L146.205%2C57.178L5.41%2C197.973H287z%22%2F%3E%3C%2Fsvg%3E');
            background-repeat: no-repeat;
            background-position: right 15px top 50%;
            background-size: 10px auto;
        }

        .form-box button[type="submit"] {
            width: 100%;
            padding: 14px;
            font-size: 17px;
            border: none;
            border-radius: 5px;
            background: #1e70bf;
            color: white;
            cursor: pointer;
            transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
            font-weight: 600;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(30, 112, 191, 0.3);
            margin-top: 10px; /* Add some margin above the button */
        }

        .form-box button[type="submit"]:hover {
            background: #175a96;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(30, 112, 191, 0.4);
        }

        /* Ripple effect CSS */
        .ripple {
            position: absolute;
            border-radius: 50%;
            transform: scale(0);
            opacity: 1;
            background-color: rgba(255, 255, 255, 0.5);
            animation: ripple-effect 0.6s linear;
        }

        @keyframes ripple-effect {
            to {
                transform: scale(2);
                opacity: 0;
            }
        }

        .flag-wrapper {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 0px; /* Adjusted margin */
        }

        .flag-wrapper img {
            width: 35px;
            height: 24px;
            border: 1px solid #ccc;
            border-radius: 4px;
            object-fit: cover;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .toast {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #4CAF50;
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            font-size: 15px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease, bottom 0.4s ease;
            white-space: nowrap;
            min-width: 200px;
            text-align: center;
            z-index: 1001;
        }

        .toast.show {
            opacity: 1;
            bottom: 30px;
            pointer-events: auto;
        }

        /* Error message styling */
        .error-message {
            color: #e74c3c;
            font-size: 12px;
            margin-top: 5px; /* MODIFIED: Changed from -15px to 5px */
            margin-bottom: 10px;
            display: none;
            grid-column: span 1; /* Each error message spans one column */
        }
        .error-message.show {
            display: block;
        }

        /* Style for invalid input fields */
        input.invalid-field, select.invalid-field {
            border-color: #e74c3c; /* Red border for invalid fields */
        }
        input.invalid-field:focus, select.invalid-field:focus {
            border-color: #e74c3c;
            box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.4);
        }

        /* Style for the registration data block (initially hidden) */
        #registration-data {
            background-color: #ffffff;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 30px;
            margin-top: 30px;
            text-align: left;
            width: 400px;
            max-width: 90%;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            display: none;
            z-index: 1;
        }

        #registration-data h3 {
            margin-top: 0;
            margin-bottom: 20px;
            color: var(--tiif-blue-dark);
            text-align: center;
            font-weight: 600;
            font-size: 22px;
        }

        #registration-data p {
            margin-bottom: 10px;
            font-size: 15px;
            color: var(--tiif-text-dark);
            line-height: 1.5;
        }

        #registration-data p strong {
            display: inline-block;
            min-width: 80px;
            color: #555;
        }

        /* Media Queries for Responsiveness */
        @media (max-width: 850px) { /* Adjust breakpoint for grid to single column */
            .form-box {
                grid-template-columns: 1fr; /* Single column layout */
                gap: 15px 0; /* Adjust gap for single column */
            }
            .form-box h2,
            .form-box button[type="submit"],
            .form-box .toast,
            .form-box .error-message {
                grid-column: span 1; /* Revert to single column span */
            }
        }

        @media (max-width: 768px) {
            .header-overlay {
                height: auto;
                flex-direction: column;
                align-items: flex-start;
                padding: 15px 20px;
            }
            .header-overlay .logo {
                margin-bottom: 10px;
                max-width: 80px;
            }
            .header-overlay .header-text {
                font-size: 16px;
                text-align: center;
                width: 100%;
                margin-left: 0;
                margin-bottom: 10px;
                white-space: normal;
                text-overflow: unset;
            }
            .language-selector {
                margin-left: 0;
                margin-top: 10px;
                width: 100%;
                justify-content: center;
            }
            .language-selector select {
                width: 100%;
            }
            body {
                padding-top: calc(var(--header-height) + 20px);
            }
            .forum-intro-text {
                width: 95%;
                padding: 0 10px;
                font-size: 0.9em;
                margin-top: 20px;
            }
            .forum-intro-text h1 {
                font-size: 2em;
            }
            .form-box, #registration-data {
                width: 95%;
                padding: 20px 25px;
                margin-top: 20px;
            }
            h2 {
                font-size: 20px;
            }
            input, select, .form-box button[type="submit"] {
                font-size: 14px;
                padding: 9px 10px;
            }
            .close-btn {
                font-size: 20px;
                top: 10px;
                right: 10px;
            }
            .error-message {
                margin-top: 5px; /* MODIFIED: Adjusted for mobile too */
            }
        }
        /* Dropdown menu styles */
        .dropdown {
            position: relative;
        }

        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: var(--tiif-blue-dark);
            min-width: 160px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
            z-index: 999;
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .dropdown-menu li a {
            display: block;
            padding: 10px 15px;
            color: var(--tiif-text-light);
            text-decoration: none;
            transition: background-color 0.3s ease;
        }

        .dropdown-menu li a:hover {
            background-color: var(--tiif-blue-light);
        }

        .dropdown:hover .dropdown-menu {
            display: block;
        }
        .dropdown-menu {
            display: block;
            position: absolute;
            top: 100%;
            left: 0;
            min-width: 200px;
            margin-top: 10px;
            padding: 5px 0;
            list-style: none;
            border-radius: 8px;
            z-index: 999;

            background-color: rgba(0, 0, 0, 0.4); /* полупрозрачный тёмный фон */
            backdrop-filter: blur(10px); /* блюр для "стеклянного" эффекта */
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);

            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
        }

        .dropdown-menu li a {
            display: block;
            padding: 10px 15px;
            color: var(--tiif-text-light);
            text-decoration: none;
            white-space: nowrap;
            text-align: left;
            transition: background-color 0.3s ease;
        }

        .dropdown-menu li a:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: var(--tiif-yellow);
        }
        /* Стили для отчета о начале форума (таймер обратного отсчета) */
.countdown-report-container {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.countdown-report-container h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.countdown-timer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    min-width: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timer-box span:first-child {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.timer-label {
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .countdown-timer {
        flex-wrap: wrap;
        gap: 10px;
    }
    .timer-box {
        min-width: 45%;
    }
    .timer-box span:first-child {
        font-size: 32px;
    }
}
    .site-header {
    background-color: #004080;
    color: white;
    padding: 20px 10px;
    }

    .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    }

    .nav-left, .nav-right {
    display: flex;
    gap: 15px;
    }

    .nav-left a,
    .nav-right a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    }

    .header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    }

    .header-center h1 {
    margin: 0;
    font-size: 24px;
    }
