/* Общие стили */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Навигация */
.main-nav {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav li {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.main-nav a {
    display: block;
    padding: 20px 15px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.main-nav a.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background-color: #f8f9fa;
}

.main-nav i {
    margin-right: 8px;
}

/* Основной контент */
.main-content {
    margin-bottom: 40px;
}

/* Карточки */
.welcome-card,
.instruction-card,
.info-card,
.completion-card,
.cta-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #3498db;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    flex: 1;
    min-width: 250px;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Кнопки */
.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #3498db;
}

.btn-secondary {
    background-color: #9b59b6;
}

.btn-secondary:hover {
    background-color: #8e44ad;
}

.buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Стили для страницы с видео */
.video-section {
    margin-top: 30px;
}

.video-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.video-card h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.video-placeholder {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px dashed #ddd;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-code-placeholder {
    max-width: 800px;
    width: 100%;
}

.video-code-placeholder code {
    display: block;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    text-align: left;
    font-family: monospace;
    overflow-x: auto;
    white-space: nowrap;
}

.video-code-placeholder .note {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 10px;
}

.video-description {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
}

.video-description h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.description-content {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
}

.description-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.description-content li {
    margin-bottom: 8px;
}

/* Стили для теста */
.test-info {
    margin-bottom: 30px;
}

.test-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.question-counter {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    font-weight: 600;
}

.progress {
    height: 12px;
    background-color: #ecf0f1;
    border-radius: 6px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    width: 0%;
    transition: width 0.5s ease;
}

/* Вопросы */
.question {
    background-color: #f8f9fa;
    border-left: 5px solid #3498db;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}

.question h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.options {
    margin: 20px 0;
}

.option {
    margin-bottom: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.option:hover {
    background-color: #f0f8ff;
    border-color: #3498db;
}

.option input {
    margin-right: 15px;
    cursor: pointer;
    transform: scale(1.3);
}

.option label {
    cursor: pointer;
    font-size: 1.1rem;
    flex: 1;
}

/* Управление тестом */
.controls {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.controls button {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    margin-top: 20px;
    background-color: #27ae60;
}

.btn-submit:hover {
    background-color: #219653;
}

/* Результаты */
.result {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border-radius: 10px;
    margin-top: 40px;
    display: none;
}

.result h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.result p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.summary {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    display: none;
}

.summary h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.summary-question {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

.summary-question:last-child {
    border-bottom: none;
}

.correct-answer {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: bold;
}

.incorrect-answer {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: bold;
}

.explanation {
    background-color: #e8f4fc;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

/* Навигационные ссылки */
.navigation-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Футер */
footer {
    text-align: center;
    padding: 25px;
    color: #7f8c8d;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        min-width: 100%;
    }

    .features {
        flex-direction: column;
    }

    .feature {
        min-width: 100%;
    }

    .controls {
        flex-direction: column;
        gap: 15px;
    }

    .controls button {
        width: 100%;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .video-placeholder {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
        /* Меньшие отступы на мобильных */
        border-radius: 10px;
        /* Меньший радиус */
        margin: 0 10px;
        /* Небольшие отступы по бокам */
    }
}

/* Дополнительные стили для теста */
.question-result {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    display: none;
    font-weight: bold;
    animation: fadeIn 0.5s;
}

.correct-answer {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.incorrect-answer {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.user-answer {
    font-weight: bold;
    margin: 5px 0;
}

.correct-option {
    color: #27ae60;
    font-weight: bold;
}

.result-icon {
    font-size: 20px;
    margin-right: 10px;
}

/* Стили для билетов */
.ticket-header {
    background: linear-gradient(135deg, #f5e6d3, #e6d2b5);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #8b4513;
    text-align: center;
}

.ticket-header h3 {
    color: #2c1810;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.ticket-note {
    font-style: italic;
    color: #8b4513;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
}

.result-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* Адаптивность для билетов */
@media (max-width: 768px) {
    .result-buttons {
        flex-direction: column;
    }

    .result-buttons button {
        width: 100%;
    }
}

/* Стили для пробного режима тестирования */

.ticket-header {
    background: linear-gradient(135deg, #f5e6d3, #e6d2b5);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #8b4513;
    text-align: center;
}

.ticket-header h3 {
    color: #2c1810;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.ticket-note {
    font-style: italic;
    color: #8b4513;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
}

.result-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* Стили для мгновенных результатов в пробном режиме */
.instant-result {
    margin-top: 20px !important;
    padding: 15px !important;
    border-radius: 8px !important;
    animation: fadeIn 0.5s ease-in-out !important;
}

.option.selected-correct {
    background-color: #d4edda !important;
    border-color: #27ae60 !important;
}

.option.selected-incorrect {
    background-color: #f8d7da !important;
    border-color: #e74c3c !important;
}

.email-notification {
    background: linear-gradient(135deg, #f5e6d3, #e6d2b5);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid #8b4513;
    animation: fadeIn 0.5s ease-in-out;
    transition: opacity 0.5s;
}

.mode-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
    border: 3px solid #d4af37;
}

.mode-description {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #8b4513;
}

/* Стили для поля ФИО */
.fio-input-container {
    background-color: #f9f3e9;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #d4af37;
}

.fio-input-container input {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.fio-input-container input:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.2);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.correct-answer {
    animation: pulse 0.5s ease-in-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .test-mode-selector>div {
        flex-direction: column;
    }

    .fio-input-container>div {
        flex-direction: column;
    }

    .result-buttons {
        flex-direction: column;
    }

    .result-buttons button {
        width: 100%;
    }
}

/* Стили для управления информацией о билете */
.ticket-header {
    background: linear-gradient(135deg, #f9f3e9, #f5e6d3);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #d4af37;
}

.ticket-header h3 {
    color: #2c1810;
    margin-bottom: 10px;
}

.ticket-note {
    background-color: rgba(139, 69, 19, 0.1);
    padding: 10px;
    border-radius: 6px;
    font-style: italic;
    margin-top: 15px;
    border-left: 3px solid #8b4513;
}

#ticket-info.hidden {
    display: none !important;
}

#ticket-info.visible {
    display: block !important;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Стили для шапки с логотипом */
.header-container {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-bottom: 2px solid #8b4513;
    margin-bottom: 25px;
}

.logo-container {
    flex-shrink: 0;
}

.site-logo {
    height: 110px;
    width: auto;
    border-radius: 10px;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.header-text {
    flex: 1;
    text-align: center;
}

.header-text h1 {
    margin: 0;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
}

.header-text .subtitle {
    margin: 10px 0 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-style: italic;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 10px 0;
    }

    .site-logo {
        height: 80px;
    }

    .header-text h1 {
        font-size: 1.8rem;
    }

    .header-text .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .site-logo {
        height: 70px;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }

    .header-text .subtitle {
        font-size: 0.9rem;
    }
}

/* Стили из learning.html */
.timeline-links {
    list-style-type: none;
    padding-left: 0;
}

.timeline-links li {
    margin-bottom: 8px;
    border-left: 3px solid #e0e0e0;
    padding-left: 10px;
    transition: border-color 0.3s;
}

.timeline-links li:hover {
    border-left-color: #0066cc;
}

.timeline-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;
    display: block;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.timeline-link:hover {
    background-color: #f0f8ff;
    text-decoration: underline;
}

.timeline-link.active {
    background-color: #e0f7fa;
    border-left-color: #0066cc;
}

.timeline-link strong {
    color: #333;
    font-weight: 600;
}

.video-placeholder {
    position: relative;
    margin-bottom: 20px;
}

video {
    width: 100%;
    max-height: 720px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timestamp-info {
    background-color: #e0f7fa;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
    display: none;
    font-size: 14px;
    border-left: 4px solid #0066cc;
}

.timestamp-info.show {
    display: block;
}

/* Стили для скачивания */
.download-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9f3e9;
    border-radius: 10px;
}

.download-section h3 {
    margin-bottom: 15px;
    color: #2c1810;
}

.download-section p {
    margin-bottom: 20px;
}

/* Общие улучшения для мобильных устройств - test.html */
@media (max-width: 480px) {
    .test-container {
        padding: 15px !important;
        margin: 10px 0 !important;
    }
    
    .question h3 {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
    
    .option {
        padding: 12px 10px !important;
        margin-bottom: 10px !important;
    }
    
    .option label {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
    
    .mode-btn {
        padding: 12px 8px !important;
        font-size: 0.9rem !important;
        min-height: 60px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mode-btn i {
        margin-bottom: 5px !important;
        font-size: 1.2rem !important;
    }
    
    .fio-input-container input {
        font-size: 1rem !important;
        padding: 10px !important;
    }
    
    .controls {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .controls button {
        width: 100% !important;
        padding: 12px !important;
    }
    
    #submit-btn {
        padding: 14px !important;
        font-size: 1rem !important;
        margin-top: 15px !important;
    }
    
    .result-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .result-buttons button {
        width: 100% !important;
        margin: 5px 0 !important;
    }
    
    .navigation-links {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .navigation-links a {
        width: 100% !important;
        text-align: center !important;
        padding: 12px !important;
    }
}

@media (max-width: 768px) {
    .test-mode-selector > div {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .mode-btn {
        width: 100% !important;
    }
    
    .fio-input-container > div {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .fio-input-container button {
        width: 100% !important;
        padding: 12px !important;
    }
    
    .main-nav ul {
        flex-direction: column !important;
    }
    
    .main-nav li {
        width: 100% !important;
    }
    
    .main-nav a {
        padding: 15px !important;
        text-align: center !important;
    }
}

/* Общие улучшения для мобильных устройств - learning.html */
@media (max-width: 480px) {
    .video-card {
        padding: 15px !important;
        margin: 10px 0 !important;
    }
    
    .video-card h2 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    
    video {
        max-height: 250px !important;
    }
    
    .description-content {
        padding: 15px !important;
    }
    
    .timeline-links li {
        padding-left: 8px !important;
        margin-bottom: 6px !important;
        border-left-width: 2px !important;
    }
    
    .timeline-link {
        padding: 8px 6px !important;
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
    
    .download-section {
        padding: 15px !important;
    }
    
    .download-section h3 {
        font-size: 1.1rem !important;
    }
    
    .download-section a {
        width: 100% !important;
        text-align: center !important;
        padding: 12px !important;
        font-size: 0.9rem !important;
    }
    
    .completion-card {
        padding: 20px !important;
    }
    
    .completion-card h3 {
        font-size: 1.2rem !important;
    }
    
    .completion-card a {
        width: 100% !important;
        text-align: center !important;
        padding: 14px !important;
    }
}

@media (max-width: 768px) {
    .video-card h2 {
        font-size: 1.4rem !important;
    }
    
    video {
        max-height: 350px !important;
    }
    
    .timeline-link {
        font-size: 0.95rem !important;
    }
    
    .download-section a {
        padding: 15px 20px !important;
        font-size: 1rem !important;
    }
}

/* Общие улучшения для мобильных устройств - index.html */
@media (max-width: 480px) {
    .welcome-card, .cta-card {
        padding: 20px !important;
    }
    
    .feature {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .feature h3 {
        font-size: 1.1rem !important;
    }
    
    .feature p {
        font-size: 0.9rem !important;
    }
    
    .steps li {
        margin-bottom: 10px !important;
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .buttons a {
        width: 100% !important;
        text-align: center !important;
        padding: 14px !important;
    }
}

@media (max-width: 768px) {
    .features {
        flex-direction: column !important;
    }
    
    .feature {
        width: 100% !important;
    }
}

/* Общие улучшения для мобильных устройств */
@media (max-width: 480px) {
    .container {
        padding: 10px !important;
    }
    
    .header {
        padding: 20px 15px !important;
    }
    
    h1, h2, h3 {
        word-wrap: break-word !important;
    }
    
    .btn {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
    
    .info-card, .instruction-card, .completion-card, .cta-card {
        padding: 20px !important;
    }
    
    footer {
        padding: 15px !important;
        font-size: 0.9rem !important;
    }
}

/* Улучшение скроллинга на мобильных */
@media (hover: none) and (pointer: coarse) {
    .option, .mode-btn, .btn, .timeline-link {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    input, select, textarea {
        font-size: 16px !important; /* Предотвращает автоматическое увеличение в iOS */
    }
}

/* Улучшение видео на мобильных */
video {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
}

@media (max-width: 480px) {
    video {
        max-height: 250px !important;
    }
}

@media (max-width: 768px) {
    video {
        max-height: 350px !important;
    }
}

/* Убираем автоматическую прокрутку к якорю */
html {
    scroll-behavior: auto !important;
}

/* Скрываем билетную информацию по умолчанию */
#ticket-info {
    display: block;
    background-color: #f9f3e9;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #8b4513;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Дополнительные стили для уведомлений */
.fio-notification {
    animation: slideIn 0.3s ease-out;
}

.fio-reminder {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

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

/* Убираем фокусные стили, которые могут вызывать прокрутку */
.mode-btn:focus,
.mode-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Отключаем outline для всех элементов управления */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
}

/* Стиль для обязательного поля */
.fio-input-container input:invalid {
    border-color: #e74c3c;
}

.fio-input-container input:valid {
    border-color: #27ae60;
}

.ticket-header {
    margin-bottom: 10px;
}

.ticket-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}