* { margin: 0; padding: 0; box-sizing: border-box; }

/* Шапка */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1E3A8A; /* темно-синий */
    color: white;
    padding: 0.5rem 2rem;
    font-family: Arial, sans-serif;
}

/* Логотип и название */
.logo-link {
    display: inline-block; 
    text-decoration: none; 
    color: inherit;        
}

.logo {
    cursor: pointer;
}

.logo img {
    height: 25px;
    margin-right: 0.5rem;
}

.logo span {
    font-size: 1.2rem;
    font-weight: bold;
    vertical-align: top;
}

.logo a {
    font-size: 1.2rem;
    font-weight: bold;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

.auth-btn {
    display: inline-block;
    background-color: white;
    color: #2563EB;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #2563EB; /* контур старого цвета */
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.auth-btn:hover {
    background-color: #2563EB; /* фон становится синим */
    color: white;              /* текст белый */
    transform: translateY(-1px);
}


.btn-request {
    display: inline-block;
    background-color: #2563EB; /* синий фон */
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    margin-right: 20px;
}

.btn-request:hover {
    background-color: #1D4ED8;
    transform: translateY(-1px);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* растянуть на всю высоту экрана */
    font-family: 'Roboto', Arial, sans-serif;
}

/* Основной контент */
main {
    flex: 1;
    padding: 2rem;
}

/* Футер */
footer {
    background-color: #1E3A8A;
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    border-top: 2px solid #2563EB;
}


.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 2rem;
    background-color: #EFF6FF;
    min-height: 60vh;
    gap: 2rem;
}

.banner-text {
    flex: 1;
}

.banner-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1E3A8A;
}

.banner-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #334155;
}

.banner-btn {
    display: inline-block;
    background-color: #2563EB;
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.banner-btn:hover {
    background-color: #1D4ED8;
}

.banner-image {
    flex: 1;
    text-align: right;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


.partners {
    background-color: #F1F5F9;
    padding: 2rem;
    text-align: center;
}

.partners h2 {
    font-size: 1.8rem;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.partners-logos img {
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: transform 0.2s, filter 0.2s;
}

.partners-logos img:hover {
    transform: scale(1.1);
    filter: grayscale(0);
}


/* Страница логина */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh; /* чтобы футер прилипал, если контента мало */
    background-color: #EFF6FF; /* мягкий фон */
    padding: 2rem;
}

.login-container {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    font-family: 'Roboto', Arial, sans-serif;
}

.login-container h2 {
    color: #1E3A8A;
    margin-bottom: 2rem;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1rem;
}

.login-form input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.login-form button.banner-btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem;
}

.login-footer-text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #334155;
}

.login-footer-text a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
}

.login-footer-text a:hover {
    text-decoration: underline;
}

/* Страница создания заявки */

.request-container {
    max-width: 600px;
}

.request-title {
    text-align: center;
}

.request-form {
    text-align: left;
}

.form-textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1rem;
    resize: vertical;
}

.form-section-title {
    margin: 1rem 0 0.5rem;
    font-weight: 500;
    color: #1E3A8A;
}

.form-textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* кнопка */
.form-submit {
    width: 100%;
}

/* ошибка */
.form-error {
    color: red;
    margin-bottom: 1rem;
    text-align: center;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1rem;
    background-color: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* ===== Select2 в стиле сайта ===== */

.select2-container {
    width: 100% !important;
    margin-bottom: 1.5rem;
    font-family: 'Roboto', Arial, sans-serif;
}

.select2-container--default .select2-selection--single {
    height: 44px;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #2563EB;
}

.select2-container--default .select2-selection__rendered {
    color: #334155;
    line-height: normal;
    padding-left: 0;
}

.select2-container--default .select2-selection__arrow {
    height: 100%;
}

/* выпадающий список */
.select2-dropdown {
    border: 1px solid #CBD5E1;
    border-radius: 5px;
}

.select2-results__option--highlighted {
    background-color: #2563EB;
    color: white;
}


/* Страница тикет */
.ticket-container {
    max-width: 700px;
    text-align: left;
}

.ticket-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1E3A8A;
}

.ticket-field {
    margin-bottom: 1rem;
}

.ticket-label {
    color: #1E3A8A;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.ticket-value {
    color: #334155;
}

.ticket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ticket-back {
    text-align: center;
    margin-top: 2rem;
}



/* Страница тикетов */
.ticket-list-container {
    max-width: 900px;
    text-align: left;
}

.ticket-title {
    text-align: center;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.ticket-filters {
    margin-bottom: 1.5rem;
}

.ticket-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.ticket-grid-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.ticket-card {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    text-decoration: none;
    color: #334155;
    transition: background-color 0.2s, transform 0.2s;
}

.ticket-card:hover {
    background-color: #EFF6FF;
    transform: translateY(-1px);
}

.form-select,
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1rem;
}

.banner-btn {
    margin-top: 0.5rem;
}

/* Фикс выравнивания фильтров и Select2 */

.ticket-filters-grid {
    align-items: stretch;
}


.ticket-filters-grid .form-input,
.ticket-filters-grid .form-select,
.ticket-filters-grid .select2-container--default .select2-selection--single,
.ticket-filters-grid .banner-btn {
    height: 44px;
}


.ticket-filters-grid .select2-container {
    margin-bottom: 0;
}

.ticket-filters-grid
.select2-container--default
.select2-selection--single {
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
}

.ticket-filters-grid .select2-selection__rendered {
    padding: 0;
    line-height: 1.2;
}


.ticket-filters-grid .banner-btn {
    margin-top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* История изменений */

.history-container {
    max-width: 700px;
    margin: 24px auto 0;
    padding: 20px;
    background: var(--card-bg, #1f1f1f);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.history-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.history-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.history-item:last-child {
    border-bottom: none;
}

.history-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #9aa0a6;
    margin-bottom: 4px;
}

.history-date {
    white-space: nowrap;
}

.history-user {
    color: #c7d2fe;
}

.history-description {
    font-size: 14px;
    color: #e5e7eb;
    line-height: 1.4;
}

.history-empty {
    font-size: 14px;
    color: #9aa0a6;
    text-align: center;
    padding: 12px 0;
}

/* Страница отчетов */
.reports-page {
    max-width: 600px;
    margin: 40px auto;
    padding: 24px;
}

.reports-page h2 {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

/* Ссылки-отчеты */
.reports-page a {
    display: block;
    padding: 16px 20px;
    margin-bottom: 16px;

    background: #1f2937;
    color: #f9fafb;
    text-decoration: none;

    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

/* Hover-эффект */
.reports-page a:hover {
    background: #2563eb; /* синий акцент */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Эффект нажатия */
.reports-page a:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Фильтры с датой и лейблом внутри инпута */
.input-label-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-label-container input {
    width: 100%;
    padding-top: 20px;
    box-sizing: border-box;
    border: 1px solid #CBD5E1;
}

.input-label-container label {
    position: absolute;
    top: 2px;
    left: 6px;
    font-size: 12px;
    color: #555;
    pointer-events: none;
}

/* страница "о нас" */

.about-page {
    align-items: flex-start;
}

.about-container {
    max-width: 900px;
}

.about-title {
    margin-bottom: 20px;
    text-align: center;
}

.about-subtitle {
    margin: 30px 0 15px;
    font-size: 1.2rem;
}

.about-block {
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-block p {
    margin-bottom: 10px;
    text-align: left;
}

.about-list {
    padding-left: 20px;
    text-align: left;
}

.about-list li {
    margin-bottom: 10px;
    text-align: left;
}

.about-contacts {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 0.95rem;
}