
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #D8D8D8;
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    color: #333333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #F5F5F0;
    border: 1px solid #999999;
}

header {
    background: #D8CC91;
    padding: 20px;
    border-bottom: 3px solid #A99A5C;
}

.logo {
    font-size: 30px;
    font-weight: bold;
    color: #494329;
    letter-spacing: 2px;
}

.subtitle {
    margin-top: 5px;
    color: #706743;
    font-size: 10px;
}

main {
    padding: 15px;
}

.panel {
    margin-bottom: 20px;
    border: 1px solid #AAAAAA;
    background: #FFFFFF;
}

.panel-title {
    padding: 9px 12px;
    background: #D9D4C1;
    border-bottom: 1px solid #AAA48C;
    font-weight: bold;
    color: #494329;
}

.panel-content {
    padding: 15px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-fields {
    display: flex;
    gap: 8px;
}

.form-fields input {
    flex: 1;
    min-width: 0;
    padding: 9px;
    border: 1px solid #999999;
    font-family: Verdana, sans-serif;
    font-size: 12px;
}

.form-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

button {
    padding: 9px 15px;
    background: #D8CC91;
    border: 1px solid #A99A5C;
    color: #494329;
    font-weight: bold;
    cursor: pointer;
    font-family: Verdana, sans-serif;
    font-size: 12px;
}

button:hover {
    background: #C9BA72;
}

/* FAQ */

.faq {
    position: relative;
}

.faq summary {
    display: inline-block;
    padding: 9px 15px;
    background: #E6E2D4;
    border: 1px solid #AAA48C;
    color: #494329;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary:hover {
    background: #D9D4C1;
}

.faq-content {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    width: 340px;
    max-width: calc(100vw - 50px);
    margin-top: 5px;
    padding: 15px;
    background: #F5F5F0;
    border: 1px solid #999999;
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.15);
    line-height: 1.5;
}

.faq-content strong {
    display: block;
    margin-top: 8px;
    color: #494329;
}

.faq-content strong:first-child {
    margin-top: 0;
}

.faq-content p {
    margin: 3px 0 10px;
    color: #555555;
}

.my-info,
.hint {
    margin-top: 12px;
    color: #666666;
}

.error {
    color: #A00000;
}

/* Таблица */

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 10px;
    background: #E6E2D4;
    text-align: left;
    border-bottom: 1px solid #B5B0A0;
}

td {
    padding: 10px;
    border-bottom: 1px solid #DDDDDD;
    overflow-wrap: anywhere;
}

tbody tr:nth-child(even) {
    background: #F1F0EA;
}

tbody tr:hover {
    background: #F8F2D8;
}

a {
    color: #526B91;
    text-decoration: none;
}

a:hover {
    color: #A07822;
    text-decoration: underline;
}

.number {
    width: 45px;
    text-align: center;
    color: #888888;
}

.views {
    width: 110px;
    text-align: right;
    font-weight: bold;
}

.empty {
    text-align: center;
    padding: 25px;
    color: #888888;
}

/* Постраничная навигация */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 15px 5px 5px;
}

.pagination a,
.current-page {
    display: inline-block;
    min-width: 30px;
    padding: 7px 9px;
    text-align: center;
    border: 1px solid #AAAAAA;
    background: #E6E2D4;
    color: #494329;
}

.pagination a:hover {
    background: #D8CC91;
    text-decoration: none;
}

.current-page {
    background: #D8CC91;
    border-color: #A99A5C;
    font-weight: bold;
}

.list-info {
    padding: 8px;
    text-align: center;
    color: #888888;
    font-size: 10px;
}

/* Подвал */

footer {
    padding: 12px;
    background: #E5E2D6;
    border-top: 1px solid #BBBBBB;
    text-align: center;
    color: #888888;
    font-size: 10px;
}

/* Мобильная версия */

@media (max-width: 550px) {

    body {
        padding: 5px;
    }

    main {
        padding: 8px;
    }

    .form-fields {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button,
    .faq summary {
        width: 100%;
        text-align: center;
    }

    .faq {
        width: 100%;
    }

    .faq-content {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 5px;
    }

    .logo {
        font-size: 24px;
    }

    th,
    td {
        padding: 7px 5px;
    }

    .views {
        width: 75px;
    }
}
