span.error {
    font-size: 12px;
    color: red;
}

#popup-callback {
    padding: unset;
}

/* Красная рамка для label при ошибке */
.personal__policy--block.error-label {
    border: 1px solid #ff0000;
    border-radius: 4px;
    padding: 10px;
    background-color: rgba(255, 0, 0, 0.05);
}

/* Или просто красный текст label */
.personal__policy--block.error-label {
    color: #ff0000;
}

/* Альтернатива - красная звездочка или иконка */
.personal__policy--block.error-label::after {
    content: "⚠️";
    margin-left: 5px;
    color: #ff0000;
}

.modal__popup-fancy .modal__img-fancy {
    position: absolute;
    right: 0;
    bottom: 2rem;
    width: 300px;
    pointer-events: none;
}

.intro__top {
    max-width: unset;
}

.main__description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    padding: 3rem 0;
}

.main__description__text {
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.main__description__text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #F23B24;
    display: inline-block;
}

.main__description__text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.75rem 0 1rem 0;
    padding-left: 0.75rem;
    border-left: 4px solid #F23B24;
}

.main__description__text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 1.25rem;
    text-align: justify;
}

.main__description__text ul {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
    list-style-type: none;
}

.main__description__text ul li {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.5rem;
}

.main__description__text ul li::before {
    content: "•";
    color: #F23B24;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.main__description__text strong {
    color: #0f172a;
    font-weight: 600;
}

.main__description__text a {
    color: #F23B24;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.main__description__text a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.main__description__text a[href^="mailto"] {
    background-color: #eff6ff;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    border-bottom: none;
    font-family: monospace;
}

.main__description__text a[href^="mailto"]:hover {
    background-color: #dbeafe;
    border-bottom: none;
}

.main__description__text p:last-of-type b,
.main__description__text .date-updated {
    display: inline-block;
    background-color: #f1f5f9;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #475569;
    margin-top: 1rem;
}

.main__description__text p:empty,
.main__description__text p:has(br:only-child) {
    display: none;
}

@media (max-width: 768px) {
    .main__description {
        padding: 1.5rem 0;
    }

    .main__description__text {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .main__description__text h2 {
        font-size: 1.5rem;
    }

    .main__description__text h3 {
        font-size: 1.25rem;
    }

    .main__description__text p,
    .main__description__text ul li {
        font-size: 0.95rem;
        text-align: left;
    }
    .container.header__container{
        padding: 10px 16px;
    }
    .container {
        padding: 0 16px;
    }
}

@media (min-width: 1400px) {
    .main__description__text {
        padding: 3rem;
    }

    .main__description__text p {
        font-size: 1.05rem;
    }
}

.main__description__text {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-error {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.3;
    color: #d92d20;
}

.is-invalid {
    border-color: #d92d20 !important;
}

.modal-thanks {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 30px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-sizing: border-box;
}

.modal-thanks__title {
    margin-bottom: 12px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    color: #111;
}

.modal-thanks__text {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.quiz__thanks {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
}

.quiz__thanks-title {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    color: #111;
}

.quiz__thanks-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.quiz__restart-btn {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.quiz__restart-btn:hover {
    opacity: 0.9;
}