/* Основные стили для страницы */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf0 100%);
    min-height: 100vh;
    box-sizing: border-box;
}
/* Для всех родителей, которые могут обрезать */
.form-container,
.form-container * {
    overflow: visible !important;
}
/* Контейнер формы */
.form-container {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    overflow: visible;  /* ← добавляем! */
    position: relative;
}

.form-container:hover {
    transform: translateY(-2px);
}

/* Заголовок */
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 28px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 15px;
}

/* Информационный блок */
.info-box {
    background: #e8f4fd;
    border-left: 4px solid #3498db;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #2c3e50;
}

/* Метки полей */
label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Поля ввода */
input, textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #e0e7ec;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafbfc;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
    background: white;
}

/* Стили для поля телефона (наша маска) */
#phone {
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 1px;
}

#phone.valid {
    border-color: #27ae60;
    background-color: #f0fff4;
}

#phone.invalid {
    border-color: #e74c3c;
}

/* Подсказки под полями */
.field-hint {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: -15px;
    margin-bottom: 15px;
    padding-left: 5px;
    padding-top:10px;
}

/* Поле для комментария */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* Кнопка отправки */
button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(52,152,219,0.3);
}

button:hover {
    background: linear-gradient(135deg, #2980b9, #2c3e50);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(52,152,219,0.4);
}

button:active {
    transform: scale(0.98);
}

/* Предпросмотр (для отладки) */
.preview {
    margin-top: 5px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 10px;
    font-family: monospace;
    border: 1px dashed #bdc3c7;
    color: #2c3e50;
}

#rawValue {
    font-weight: bold;
    color: #27ae60;
    word-break: break-all;
}

/* Примечание */
.note {
    text-align: center;
    color: #95a5a6;
    font-size: 13px;
    margin-top: 20px;
    font-style: italic;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    body {
        margin: 10px auto;
        padding: 10px;
    }
    .form-container {
        padding: 20px;
    }
    h1 {
        font-size: 24px;
    }
}

/* ===== СТИЛИ ДЛЯ FLASH-СООБЩЕНИЙ ===== */
.alert {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    font-weight: 500;
    position: relative;
    animation: slideDown 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Анимация появления */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Успех (зеленый) */
.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-left: 6px solid #28a745;
    color: #155724;
}

/* Предупреждение (желтый) */
.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffe8a1);
    border-left: 6px solid #ffc107;
    color: #856404;
}

/* Ошибка (красный) */
.alert-error {
    background: linear-gradient(135deg, #f8d7da, #f5c2c7);
    border-left: 6px solid #dc3545;
    color: #721c24;
}

/* Информация (синий) - добавим на будущее */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border-left: 6px solid #17a2b8;
    color: #0c5460;
}

/* Иконки для сообщений (можно добавить) */
.alert::before {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
}

.alert-success::before {
    content: "✓";
}

.alert-warning::before {
    content: "⚠";
}

.alert-error::before {
    content: "✗";
}

/* Кнопка закрытия (если захотим добавить) */
.alert .close {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    font-weight: bold;
    color: inherit;
    opacity: 0.5;
}

.alert .close:hover {
    opacity: 1;
}

/* Стили для подсказок DaData - увеличиваем высоту */
.suggestions-nowrap {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;  /* ← увеличиваем высоту (было меньше) */
    overflow-y: auto;
    z-index: 10000;  /* ← высокий z-index, чтобы быть поверх всего */
    
}

/* Стиль для каждого элемента подсказки */
.suggestions-nowrap .suggestions-item {
    padding: 12px 15px;  /* ← увеличиваем внутренние отступы */
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.suggestions-nowrap .suggestions-item:hover {
    background-color: #f0f7ff;
}

.suggestions-nowrap .suggestions-item strong {
    color: #3498db;
}

/* Можно добавить скроллбар */
.suggestions-nowrap::-webkit-scrollbar {
    width: 8px;
}

.suggestions-nowrap::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.suggestions-nowrap::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.suggestions-nowrap::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* ===== Стили для способа доставки ===== */
.delivery-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e7ec;
    transition: all 0.3s;
}

.radio-label:hover {
    background: #e8f4fd;
    border-color: #3498db;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/* Активная опция */
.radio-label:has(input:checked) {
    background: #e8f4fd;
    border-color: #3498db;
    color: #3498db;
    font-weight: 500;
}

/* Подсказка о способе доставки */
.delivery-hint {
    background: #f0f7ff;
    border-left: 4px solid #3498db;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.3s;
}

.delivery-hint.cdek {
    background: #f0f4e8;
    border-left-color: #6c5ce7;
}

.delivery-hint.pochta {
    background: #f0f7ff;
    border-left-color: #3498db;
}
/* ===== Блок получателя ===== */
.recipient-block {
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 15px;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

/* Контейнер для полей получателя */
#recipient_fields {
    transition: all 0.2s ease;
    margin-top: 10px;
}

/* Поля получателя в неактивном состоянии (заблокированы) */
#recipient_fields[style*="pointer-events: none"] input,
#recipient_fields[style*="opacity: 0.6"] input {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Активные поля получателя */
#recipient_fields input:not([disabled]) {
    background-color: white;
}

/* Дополнительная гарантия: поля с disabled */
#recipient_name:disabled,
#recipient_phone:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

/* Поля без disabled (активные) */
#recipient_name:not(:disabled),
#recipient_phone:not(:disabled) {
    background-color: white;
    border-color: #ced4da;
}
/* ===== Стили для валидации полей телефона ===== */

/* Обычное состояние */
#phone, #recipient_phone {
    transition: all 0.3s ease;
}

/* Правильно заполненное поле */
#phone.valid, #recipient_phone.valid {
    border-color: #4CAF50;
    background-color: #f0fff4;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Неправильно заполненное поле (неполный номер) */
#phone.invalid, #recipient_phone.invalid {
    border-color: #ff9800;
    background-color: #fff8e7;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

/* Поле с ошибкой (отправка без заполнения) */
#phone.error, #recipient_phone.error {
    border-color: #f44336;
    background-color: #ffebee;
    animation: shake 0.3s ease-in-out;
}

/* Анимация встряхивания при ошибке */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Подсказка об ошибке под полем */
.field-error {
    color: #f44336;
    font-size: 12px;
    margin-top: -15px;
    margin-bottom: 15px;
    padding-left: 5px;
    display: none;
}

.field-error.show {
    display: block;
}

/* ===== БЛОК С КОЛИЧЕСТВОМ ===== */
.quantity-block {
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.quantity-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.quantity-field {
    flex: 1;
    min-width: 150px;
}

.quantity-field label {
    margin-bottom: 8px;
}

.quantity-field input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #e0e7ec;
    border-radius: 8px;
    transition: all 0.3s;
}

.quantity-field input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.quantity-field input:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

/* ===== БЛОК С РАБОЧИМИ ТЕТРАДЯМИ ===== */
.workbook-block {
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.workbook-block .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 5px;
}

.workbook-block input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

/* ===== БЛОК С НАЗВАНИЕМ УЧЕБНОГО ЗАВЕДЕНИЯ ===== */
.school-block {
    margin-top: 20px;
}

.school-block input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e0e7ec;
    border-radius: 10px;
    transition: all 0.3s;
    background: #fafbfc;
}

.school-block input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
    background: white;
}

/* ===== КНОПКА РАСЧЁТА ===== */
.calculation-button-block {
    margin: 20px 0;
    text-align: center;
}

.calculate-btn {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    overflow: hidden;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Эффект свечения */
.calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    pointer-events: none;  /* ← добавляем — псевдоэлемент не перехватывает события мыши */
}

.calculate-btn:hover::before {
    left: 100%;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a6fd6, #663a8c);
}

.calculate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.calculate-btn:disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.calculate-btn:disabled::before {
    display: none;
}

/* Иконка внутри кнопки */
.calculate-btn .btn-icon {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.calculate-btn:hover .btn-icon {
    transform: scale(1.1);
}

/* Состояние загрузки */
.calculate-btn.loading {
    pointer-events: none;
}

.calculate-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== БЛОК РЕЗУЛЬТАТА РАСЧЁТА ===== */
.calculation-result {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
    font-size: 14px;
}

.calculation-result h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    padding-bottom: 5px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e9ecef;
}

.result-row.highlight {
    background: #e8f4fd;
    margin: 10px -10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
}

.result-row.highlight strong {
    color: #27ae60;
    font-size: 18px;
}

.result-row.error {
    color: #e74c3c;
    background: #ffebee;
    margin: 10px -10px;
    padding: 12px 20px;
    border-radius: 8px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}
/* ===== БЛОК ВЫБОРА ВРЕМЕНИ ОПЛАТЫ ===== */
.payment-timing-block {
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.payment-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e7ec;
}

.radio-option:hover {
    background: #e8f4fd;
    border-color: #3498db;
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.radio-option:has(input:checked) {
    background: #e8f4fd;
    border-color: #3498db;
    color: #3498db;
}

.select-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.select-field {
    flex: 1;
    min-width: 150px;
}

.select-field select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #e0e7ec;
    border-radius: 8px;
    background: white;
    transition: all 0.3s;
}

.select-field select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

/* ===== БЛОК СОГЛАСИЯ ===== */
.consent-block {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.4;
}

.consent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.consent-checkbox a {
    color: #3498db;
    text-decoration: none;
}

.consent-checkbox a:hover {
    text-decoration: underline;
}

.consent-block .field-hint {
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 28px;
}
/* ===== РАДИО-ГРУППА ДЛЯ ТЕТРАДЕЙ ===== */
.workbook-block {
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e7ec;
    transition: all 0.3s;
}

.radio-option:hover {
    background: #e8f4fd;
    border-color: #3498db;
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.radio-option:has(input:checked) {
    background: #e8f4fd;
    border-color: #3498db;
    color: #3498db;
    font-weight: 500;
}
/* ============================================ */
/* НОВЫЕ СТИЛИ ДЛЯ БЛОКОВ ФОРМЫ */
/* ============================================ */

/* Общие стили для секций */
.form-section {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.section-inner {
    padding: 20px;
}

/* Блок 1: Контактная информация (светло-голубой) */
.section-contacts {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4fa 100%);
    border: 1px solid #e0e8f0;
}

.section-contacts .section-inner {
    background: rgba(255, 255, 255, 0.1);
}

/* Блок 2: Параметры заказа (светло-зелёный) */
.section-order {
    background: linear-gradient(135deg, #f5faf5 0%, #eef4ea 100%);
    border: 1px solid #d8e5d8;
}

.section-order .section-inner {
    background: rgba(255, 255, 255, 0.1);
}

/* Блок 3: Доставка (светло-персиковый) */
.section-delivery {
    background: linear-gradient(135deg, #fef8f0 0%, #fcf3e8 100%);
    border: 1px solid #f0e4d8;
}

.section-delivery .section-inner {
    background: rgba(255, 255, 255, 0.1);
}

/* Блок комментария (нейтральный) */
.section-comment {
    background: #f9fafb;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    margin-bottom: 30px;
}

.section-comment .section-inner {
    padding: 20px;
}

/* ============================================ */
/* ШАПКА С НАЗВАНИЕМ ПРОДУКТА И ФОТО */
/* ============================================ */

.product-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #fef9e6 0%, #fff5e0 100%);
    border-radius: 20px;
    border: 1px solid #ffe0b5;
}

.product-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    flex: 1;
}

.product-title h1 {
    text-align: left;
    margin: 0 0 5px 0;
    font-size: 28px;
    border: none;
    padding: 0;
    color: #2c3e50;
}

.author-lastname {
    font-size: 16px;
    color: #5f7f9e;
    line-height: 1.4;
}

.author-name {
    font-size: 20px;
    font-weight: 600;
    color: #3498db;
    letter-spacing: 0.5px;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    .product-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .product-title h1 {
        text-align: center;
    }
    
    .section-inner {
        padding: 15px;
    }
    
    .form-section {
        margin-bottom: 20px;
    }
}
/* ===== БЛОК СВЯЗИ ЧЕРЕЗ MAX ===== */
.max-contact-block {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #e8f4fd, #d4e8f5);
    border-radius: 12px;
    border: 1px solid #c0e0f0;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.max-contact-info {
    flex: 1;
}

.max-contact-info p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #2c3e50;
}

.max-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.max-contact-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.max-contact-link .max-icon {
    font-size: 18px;
}

.max-contact-qr {
    flex-shrink: 0;
    text-align: center;
}

.max-contact-qr img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: white;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.max-contact-qr .qr-label {
    font-size: 11px;
    color: #5f7f9e;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .max-contact-block {
        flex-direction: column;
        text-align: center;
    }
    .max-contact-qr img {
        width: 100px;
        height: 100px;
    }
}
/* ===== СПИННЕР ДЛЯ КНОПКИ ОТПРАВКИ ===== */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Стиль для кнопки в состоянии загрузки */
button.loading {
    opacity: 0.8;
    cursor: wait;
}