/* Общие стили для всех страниц */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    background: transparent;
    color: #333;
    line-height: 1.5;
}

/* Контейнеры Tilda */
.t-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки */
h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Форма поиска */
.search-form {
    margin-bottom: 30px;
    text-align: center;
}

.search-form input {
    border: 1px solid #d6d6d6;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    width: 300px;
    max-width: 100%;
    font-family: inherit;
}

.search-form input:focus {
    border-color: #ffd700;
    outline: none;
}

.search-form button {
    background-color: #ffd700;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    margin-left: 10px;
    font-family: inherit;
    transition: background 0.3s;
}

.search-form button:hover {
    background-color: #e6c200;
}

/* Карточка заказа */
.order-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #ffd700;
}

.order-item strong {
    font-weight: 600;
}

.status-paid {
    color: #28a745;
    font-weight: 500;
}

.status-unpaid {
    color: #dc3545;
    font-weight: 500;
}

.order-item a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
}

.order-item a:hover {
    text-decoration: underline;
}

/* Общий стиль для кнопок в карточке */
.order-item button {
    display: inline-flex;    /* Включает режим выравнивания */
    align-items: center;     /* Центрирует иконку и текст по вертикали */
    justify-content: center; /* Центрирует всё по горизонтали */
    gap: 10px;               /* Делает аккуратный отступ между иконкой и текстом */
    
    background-color: #ffd700;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;      /* Немного увеличим отступы для солидности */
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s;
    line-height: 1;          /* Убираем лишние высоты строк */
}

/* Убираем инлайновый margin, если он мешает */
.order-item button:last-child {
    margin-left: 0;
    margin-top: 10px;
}

/* Свидетельства */
.certificate {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #ffd700;
}

.certificate strong {
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
}

.certificate a {
    background-color: #ffd700;
    color: #333;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

.certificate a:hover {
    background-color: #e6c200;
}

/* Загрузка */
#loading {
    text-align: center;
    padding: 40px;
    color: #ffd700;
    font-size: 18px;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    h1 {
        font-size: 24px;
    }
    .search-form input {
        width: 100%;
        margin-bottom: 10px;
    }
    .search-form button {
        margin-left: 0;
        width: 100%;
    }
    .order-item {
        padding: 15px;
    }
    .certificate a {
        display: block;
        text-align: center;
    }
}

.btn {
    background-color: #ffd700;
    border: none;
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: background 0.3s;
    display: inline-block;
    text-decoration: none;
}
.btn:hover {
    background-color: #e6c200;
}


.pagination a:hover {
    background-color: #f5f5f5;
    border-color: #ffd700;
}
