body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            color: #333;
            text-align: center;
            padding-top: 56px; /* Adjust this value based on your navbar's height */
        }
        .container-main {
            background-color: #fff;
            padding: 48px 40px 32px 40px;
            border-radius: 12px;
            box-shadow: 0 4px 24px rgba(0, 86, 179, 0.08);
            max-width: 820px;
            margin: 50px auto; /* Centering with margin */
        }
        h1, .feature-title {
            color: #0056b3;
        }
        .subtitle {
            color: #007bff;
            font-size: 1.2em;
            margin-bottom: 24px;
        }
        .features {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 24px;
            margin: 32px 0 24px 0;
        }
        .feature {
            background: #f0f6ff;
            border-radius: 8px;
            padding: 18px 22px;
            min-width: 220px;
            max-width: 260px;
            box-shadow: 0 2px 8px rgba(0,123,255,0.04);
        }
        p {
            line-height: 1.7;
            margin-bottom: 18px;
        }
        .cta-button {
            background-color: #007bff;
            color: #fff;
            padding: 12px 28px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.1em;
            transition: background-color 0.3s ease, box-shadow 0.3s;
            box-shadow: 0 2px 8px rgba(0,123,255,0.08);
        }
        .cta-button:hover {
            background-color: #0056b3;
            box-shadow: 0 4px 16px rgba(0,86,179,0.12);
        }
        .nav-link-custom { /* Custom class to avoid conflict with Bootstrap's .nav-link */
            display: inline-block;
            margin: 0 10px;
            color: #007bff;
            text-decoration: none;
            font-weight: bold;
        }
        .nav-link-custom:hover {
            text-decoration: underline;
        }
        .footer {
            margin-top: 36px;
            font-size: 0.95em;
            color: #666;
        }
        /* Modal styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        .modal-content {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
            max-width: 400px;
            width: 90%;
            position: relative;
            transform: translateY(-20px);
            transition: transform 0.3s ease;
        }
        .modal-overlay.active .modal-content {
            transform: translateY(0);
        }
        .modal-close-button {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            border: none;
            background: none;
            color: #aaa;
        }
        .modal-close-button:hover {
            color: #777;
        }
        .modal-message {
            font-size: 1.1em;
            margin-bottom: 20px;
            color: #333;
        }
        .modal-button {
            background-color: #007bff;
            color: #fff;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .modal-button:hover {
            background-color: #0056b3;
        }
        /* Message type specific styles */
        .modal-success .modal-content { border-top: 5px solid #28a745; }
        .modal-error .modal-content { border-top: 5px solid #dc3545; }
        .modal-info .modal-content { border-top: 5px solid #17a2b8; }

        @media (max-width: 600px) {
            .container-main { padding: 30px 20px; } /* Уменьшаем горизонтальный padding для очень маленьких экранов */
            .features { flex-direction: column; gap: 12px; }
            .modal-content { padding: 20px; }
            /* Стили для формы на мобильных устройствах */
            form.d-flex {
                flex-direction: column;
                align-items: center;
            }
            form.d-flex .form-control {
                width: 100%; /* Занимает всю ширину */
                max-width: 300px; /* Ограничиваем максимальную ширину */
                margin-right: 0 !important; /* Убираем отступ справа */
                margin-bottom: 15px !important; /* Добавляем отступ снизу */
            }
            form.d-flex .cta-button {
                width: 100%; /* Занимает всю ширину */
                max-width: 300px; /* Ограничиваем максимальную ширину */
            }
            .navbar-brand {
                font-size: 1.1em; /* Уменьшаем размер шрифта логотипа */
            }
            .navbar-brand img {
                height: 25px !important; /* Уменьшаем размер логотипа */
            }
            .navbar-nav .nav-item {
                margin-left: 0;
                margin-top: 10px; /* Отступ между элементами меню */
            }
        } 