/* Улучшенная версия styles.css с реструктуризацией */

:root {
    --primary: #2563eb;
    --light-blue: #0ed5ff;
    --primary-dark: #1d4ed8;
    --secondary: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --light: #1f2937;
    --dark: #f3f4f6;
    --gray: #9ca3af;
    --border: #374151;
    --bg-dark: #111827;
    --card-dark: #1e293b;
    --text-light: #f9fafb;
    --text-muted: #d1d5db;
    --success: #10b981;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: var(--light);
    color: var(--text-light);
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--light);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.app-container {
    position: relative;
    /* z-index: 1; */
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-image: url(/img/bg2.png);
    background-repeat: no-repeat;
    background-size: 100% 130px;
    background-position: top -16px right 0px;
    min-height: 130px;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.logo {
    width: 300px;
    height: 60px;
    background-image: url(/img/logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    flex-shrink: 0;
}

.header-text {
    width: 500px;
    height: 60px;
    background-image: url(/img/text.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    flex-shrink: 0;
}

.header-text > p {
    position: absolute;
    bottom: -18px;
    right: 0px; 
    font-size: 12pt;
}

/* ===== STATS SECTION ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light);
}

.stat-item {
    background: var(--card-dark);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--light-blue);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* ===== MAIN CONTENT LAYOUT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Tabs */
.tabs {
    display: flex;
    background: var(--light);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(58, 124, 165, 0.1);
}

/* Content Areas */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: none;
    background: var(--bg-dark);
}

.content-area.active {
    display: block;
}

/* Улучшенная пагинация */
.pagination-pages {
    display: flex;
    gap: 0.25rem;
    margin: 0 1rem;
}

.page-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    background: var(--card-dark);
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    min-width: 40px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-ellipsis {
    padding: 0.5rem;
    color: var(--gray);
}

.pagination-info {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===== QUESTIONS & CARDS ===== */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.3s ease;
}

.questions-list.loading {
    opacity: 0.5;
}

/* Question Cards */
.question-card {
    background: var(--card-dark);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-left: 4px solid var(--primary);
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #2563eb;
}

.question-card.answered {
    border-left-color: var(--secondary);
    background: linear-gradient(135deg, #111f17 0%, var(--card-dark) 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.question-card.answered:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}

.question-card.pending {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, #2a261a 0%, var(--card-dark) 100%);
}

.question-card.removing {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.question-meta-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.question-id {
    font-weight: 600;
    color: var(--light-blue);
    background: rgba(58, 124, 165, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.contact-info {
    font-size: 0.8rem;
    color: var(--gray);
    margin-left: 0.5rem;
    text-decoration: none;
    border: 1px solid var(--gray);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.contact-info:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

.question-meta-compact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.question-topic {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap; /* ИЗМЕНИТЬ НА: */
    white-space: normal;
    /* max-width: 150px; */
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    line-height: 1.2;
}

.question-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.question-text {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.question-contact {
    color: #888;
    font-size: 0.9em;
    margin-left: 8px;
    font-style: italic;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(136, 136, 136, 0.1);
}

.question-contact:hover {
    background: rgba(136, 136, 136, 0.2);
}

.question-contact[data-contact-type="email"]:before {
    content: "";  /*ы📧  */
}
 

.question-contact[data-contact-type="unknown"]:before {
    content: "📞 ";
}

.question-contact:before {
    content: "";  /*ы📧  */
}

/* Для Telegram ников */
.question-contact[data-contact-type="telegram"]:before {
    content: "✈️ ";
}

/* Стиль для показанного полного email */
.question-contact.revealed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

/* Voting */
.question-voting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.questions-list, .answered-list {
    transition: opacity 0.3s ease;
}

.vote-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
}

.vote-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

.vote-btn.voted {
    background: var(--secondary);
    transform: scale(1.05);
}

.vote-count {
    font-weight: 700;
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
    color: var(--light-blue);
}

/* Admin Actions */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.btn-approve {
    background: var(--secondary);
    color: white;
}

.btn-reject {
    background: var(--danger);
    color: white;
}

.btn-answered {
    background: var(--primary);
    color: white;
}

.btn-delete {
    background: var(--danger);
    color: white;
}

/* ===== SIDEBAR & FILTERS ===== */
.topics-sidebar {
    background: var(--light);
    padding: 0 1rem 1rem 1rem;
    /* border-right: 1px solid var(--border); */
    overflow-y: auto;
}

.topic-filter {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-light);
}

.topic-filter:hover,
.topic-filter.active {
    background: var(--primary);
    color: white;
}

.topic-filter[onclick] {
    background: rgba(58, 124, 165, 0.1) !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    margin: 0.25rem;
    padding: 0.5rem 0.75rem !important;
}

.topic-filter[onclick].active {
    background: var(--primary) !important;
    color: white !important;
}

/* Sorting */
.sort-container {
    margin-top: 1rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border);
}

.sort-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.sort-buttons {
    display: flex;
    gap: 0.5rem;
}

.sort-btn {
    background: rgba(58, 124, 165, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
}

.sort-btn.active {
    background: var(--primary);
    color: white;
}

.sort-btn:hover {
    background: var(--primary);
    color: white;
}

/* ===== BUTTONS & INTERACTIVE ELEMENTS ===== */
/* Ask Question Button */
.ask-question-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 220px;
    height: 60px;
    border-radius: 5px;
    background-image: url(/img/btn.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 100; /* Убедимся что кнопка над overlay */
    transition: all 0.3s ease;
}

.ask-question-btn:hover {
    transform: scale(1.05);
    /* box-shadow: 0 6px 16px rgba(10, 34, 167, 0.4);  */
    box-shadow: 0 6px 16px #2563eb;
}

/* Admin Panel */
.admin-panel {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1000;
}

.admin-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(220, 38, 38, 0.3);
    color: var(--gray);
    border: 1px solid rgba(220, 38, 38, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.admin-toggle:hover {
    background: rgba(220, 38, 38, 0.5);
    color: white;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.admin-icon {
    font-size: 1.2rem;
}

.admin-text {
    display: none;
}

@media (min-width: 768px) {
    .admin-text {
        display: inline;
    }
}

/* Полноэкранная админ-панель */
.admin-controls {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--card-dark);
    z-index: 1000; /* Увеличиваем z-index */
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    border-left: 1px solid var(--border);
}

.admin-controls.show {
    right: 0;
}

.admin-controls .close-admin {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    z-index: 1002;
}

.admin-controls .close-admin:hover {
    color: var(--danger);
}

.admin-controls h3 {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-header h3 {
    margin: 0;
    color: var(--text-light);
}

.btn-logout:hover {
    background: #b91c1c;
}

/* Улучшаем кнопку выхода */
.btn-logout {
    padding: 0.5rem 1rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Затемнение фона */
.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Меньше чем у панели, но больше чем у основного контента */
    display: none;
}

.admin-overlay.show {
    display: block;
}

/* Контент админ-панели */
.admin-content {
    padding: 2rem 1.5rem;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.admin-stats {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.admin-stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.admin-stat-value {
    font-weight: 600;
    color: var(--primary);
}

.admin-controls input,
.admin-controls select,
.admin-controls textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    background: var(--light);
    color: var(--text-light);
}

.admin-controls button {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
}

.pagination-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.pagination-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

.page-info {
    color: var(--text-light);
    font-weight: 500;
}

/* ===== MODALS & FORMS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-dark);
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--light);
    color: var(--text-light);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
}

.submit-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

.required {
    color: var(--danger);
    font-weight: bold;
}

.input-hint {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
    font-style: italic;
}

/* Валидация форм */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: var(--danger);
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: var(--success);
}

/* ===== ANSWER SECTION ===== */
.answer-section {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #1a261d 0%, #2d3b32 100%);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    border: 1px solid var(--secondary);
    animation: answerSlideIn 0.3s ease;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.answer-badge {
    background: var(--secondary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.answer-date {
    font-size: 0.8rem;
    color: var(--success);
    opacity: 0.8;
}

.answer-content {
    color: var(--text-light);
}

.answer-text {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    color: #e0f2e9;
    font-weight: 500;
    word-break: break-word;
}

.answer-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.answer-author {
    color: var(--success);
    font-weight: 500;
}

.answer-author::before {
    content: " ";
}

.answer-time {
    color: var(--gray);
}

.answer-time::before {
    content: " ";
}

.answer-form-container {
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
    animation: slideDown 0.3s ease;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 6px;
}

.answer-form-container textarea {
    background: var(--card-dark);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 0.75rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
    width: 100%;
}

.answer-form-container textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== UTILITY CLASSES ===== */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.error {
    background: rgba(140, 47, 57, 0.2);
    color: var(--danger);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    text-align: center;
    border: 1px solid var(--danger);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    color: white;
    z-index: 3000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
    border-left: 4px solid;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: var(--secondary);
    border-left-color: #3a6349;
}

.notification.error {
    background: var(--danger);
    border-left-color: #70232c;
}

.notification.info {
    background: var(--primary);
    border-left-color: #2c5e80;
}

.notification.warning {
    background: var(--warning);
    border-left-color: #6b5518;
    color: #e1e5eb;
}

/* ===== ANIMATIONS ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes answerSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    .main-content {
        flex-direction: row;
        padding: 1rem;
    }
    
    .topics-sidebar {
        width: 30%;
        flex-shrink: 0;
        height: 100%;
    }

    main.content-main {
        width: 70%;
    }
    
    .content-area {
        flex: 1;
    }
    
    .stats {
        grid-template-columns: repeat(5, 1fr);
    }
    
    /* .admin-controls {
        width: 350px;
    } */
}

/* Адаптивность для больших экранов */
@media (min-width: 1200px) {
    .question-text {
        font-size: 1.3rem;
    }
    
    .question-card {
        padding: 1.25rem;
    }
    
    .vote-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .vote-count {
        font-size: 1.6rem;
    }
}

@media (min-width: 1920px) {
    .question-text {
        font-size: 1.4rem;
    }
    
    .question-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .app-container {
        max-width: 1600px;
    }
}
@media (min-width: 1024px) {
    .partners {
        row-gap: 1rem;
        column-gap: 12rem;
    }
}

/* Mobile header */
@media (max-width: 1024px) {
    .header {
        flex-direction: column;
        justify-content: center;
        background-size: cover;
        min-height: 100px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        display: none;
    }
    
    .header-text {
        width: 300px;
        height: 50px;
        background-position: center;
        margin: 0 auto;
    }
    .partners {
        row-gap: 1rem;
        column-gap: 8rem;
    }
}

/* Мобильная версия */
@media (max-width: 767px) {
    .question-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .question-voting {
        margin-left: 0;
        justify-content: flex-end;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .question-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-actions {
        justify-content: center;
    }
    
    .admin-panel {
        top: 0.25rem;
        right: 0.25rem;
    }
    
    .admin-toggle { 
        font-size: 0.8rem;  
        background: rgba(220, 38, 38, 0.3);
        color: var(--gray);
        border: 1px solid rgba(220, 38, 38, 0.5);
        /* padding: 0.5rem 1rem; */
        cursor: pointer;
        font-weight: 500;
        font-size: 1.1rem;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        transition: all 0.3s ease; 
        border-radius: 50%;
        position: fixed; 
        width: 45px;
        height: 45px;        
        top: 1rem;
        right: 1rem;
        opacity: 1;
        z-index: 1001;
    }
    
    .admin-controls {
        top: 0;
        right: -100%; /* Скрываем за пределами экрана */
        width: 85%;
        max-width: 320px;
        height: 100vh;
        transition: right 0.3s ease; /* Добавляем анимацию */
    }

    .admin-controls.show {
        right: 0; /* Показываем при активации */
    }
    

    .ask-question-btn {
        width: 60%;
        /* width: 180px; */
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }

    /* Кнопки сортировки как табы на мобильных */
    .sort-buttons {
        display: flex;
        background: var(--light);
        border-radius: 4px;
        padding: 0.25rem;
        border: 1px solid var(--border);
    }
    
    .sort-btn {
        flex: 1;
        padding: 0.75rem;
        border: none;
        background: none;
        color: var(--gray);
        border-radius: 4px;
        font-weight: 500;
    }
    
    .sort-btn.active {
        background: var(--primary);
        color: white;
    }
    
    .sort-label {
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    .answer-section {
        padding: 0.75rem;
        margin: 0.75rem -0.5rem -0.5rem;
        border-radius: 0 0 8px 8px;
    }
    
    .answer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .answer-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .answer-text {
        font-size: 1rem;
    }

    .partners {
        row-gap: 1rem;
        column-gap: 3rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .header-text {
        width: 250px;
        height: 40px;
    }
    
    .header {
        min-height: 80px;
        padding: 0.5rem;
    }

    .header-text > p {
        display: none;
    }
    
    .sort-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .ask-question-btn {
        width: 60%;
        height: 45px;
        bottom: 0.75rem;
        left: 20%;
        /* right: 0.75rem; */
    }

    .partners {
        row-gap: 2rem;
        column-gap: 6rem;
    }
}

@media (max-width: 360px) {
    .ask-question-btn {
        width: 120px;
        height: 40px;
        bottom: 0.5rem;
        right: 0.5rem;
        border-radius: 4px;
    }
    
    /* Альтернативный вариант - текстовая кнопка для очень маленьких экранов */
    .ask-question-btn {
        width: auto;
        padding: 0 1rem;
        background-image: none;
        background-color: var(--primary);
        color: white;
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    .ask-question-btn::before {
        content: "✏️ ";
    }
}

span.question-username {
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Swipe animations */
.question-card.swipe-left {
    transform: translateX(-100%);
    opacity: 0;
}

.question-card.swipe-right {
    transform: translateX(100%);
    opacity: 0;
}

/* Admin statistics improvements */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-stat-card {
    background: var(--light);
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--border);
}

.admin-stat-card .stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.admin-stat-card .stat-label {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* Footer */
.footer {
    background: #1a1d24;
    color: var(--text-light);
    padding: 1rem 1rem 5rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 10; /* Добавляем z-index чтобы был над overlay но под админ-панелью */
}



.partner-logo {
    width: 100px;
    height: 40px;
    /* background: rgba(255,255,255,0.1); */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    /* border: 1px solid var(--border);*/
} 

/* Стили для поиска */
.search-container {
    margin: 1rem 0;
    padding: 0 0.5rem;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--card-dark);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    background: var(--light);
    color: var(--danger);
}

.no-results-container {
    text-align: center;
    /* padding: 3rem 1rem; */
    color: var(--text-muted);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-container h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.no-results-container p {
    margin-bottom: 2rem;
}

.suggest-new-question {
    background: var(--card-dark);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.ask-question-btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.ask-question-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.similar-questions {
    margin: 2rem 0;
    text-align: left;
}

.similar-questions h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.similar-question {
    background: var(--light);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.similar-question:hover {
    border-color: var(--primary);
    background: var(--card-dark);
}

.similar-question-text {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.similar-question-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray);
}

.similarity {
    color: var(--success);
    font-weight: 500;
}

.search-context {
    background: var(--light);
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    border-left: 3px solid var(--warning);
}

.search-context strong {
    color: var(--warning);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.search-context-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Стили для похожих вопросов */
.similar-questions {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.similar-questions h4 {
    margin: 0 0 1rem 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

.similar-questions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.similar-question {
    padding: 1rem;
    background: var(--card-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.similar-question:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    background: var(--light);
}

.similar-question-text {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    line-height: 1.4;
}

.similar-question-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.similarity {
    color: var(--primary);
    font-weight: 600;
}

.votes {
    color: var(--success);
}

.topic {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
}

/* Анимация для подсвеченного вопроса */
.question-card.highlighted {
    animation: highlightPulse 2s ease-in-out;
    box-shadow: 0 0 0 3px var(--primary);
}

@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 0px rgba(37, 99, 235, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.2); }
    100% { box-shadow: 0 0 0 3px var(--primary); }
}

.partners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* gap: 1rem; */
    margin-top: 1rem;
    /* row-gap: 1rem;
    column-gap: 12rem; */
}
 
.partner-logo { 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center; 
}
.partner-logo:nth-child(1) {
    background-image: url("/img/logo/1 insyres.png"); 
}
.partner-logo:nth-child(2) {
    background-image: url("/img/logo/2 biosmart.png"); 
}
.partner-logo:nth-child(3) {
    background-image: url("/img/logo/3 гаоди.png"); 
}
.partner-logo:nth-child(4) {
    background-image: url("/img/logo/4 ISS.png"); 
}
.partner-logo:nth-child(5) {
   background-image: url("/img/logo/5 аргус.png"); 
}
.partner-logo:nth-child(6) {
    background-image: url("/img/logo/6 альянс.png"); 
}
.partner-logo:nth-child(7) {
    background-image: url("/img/logo/7 кейгард.png"); 
}
.partner-logo:nth-child(8) {
    background-image: url("/img/logo/8 луис_.png"); 
}
.partner-logo:nth-child(9) {
    background-image: url("/img/logo/9 урал ресурс.png"); 
}
.partner-logo:nth-child(10) {
    background-image: url("/img/logo/10 форс.png"); 
}
.partner-logo:nth-child(11) {
    background-image: url("/img/logo/11 мкис.png"); 
}
.partner-logo:nth-child(12) {
    background-image: url("/img/logo/12 AGRG.png"); 
}

/* Добавьте в styles_black.css */
.draft-indicator {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--primary);
}

.draft-indicator button {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    margin-left: auto;
}

.draft-indicator button:hover {
    text-decoration: underline;
}

/* Стиль для текстового поля с черновиком */
.answer-form-container textarea {
    border: 2px solid var(--border);
    transition: border-color 0.3s ease;
}

.answer-form-container:has(.draft-indicator) textarea {
    border-color: var(--primary);
}

/* Стили для индикатора открытой формы ответа */
.answer-form-container[style*="display: block"] {
    border: 2px solid var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.answer-form-saved {
    animation: formSaved 0.5s ease;
}

@keyframes formSaved {
    0% { background: rgba(16, 185, 129, 0.3); }
    100% { background: transparent; }
}

/* Стили для группы настроек */
.admin-settings-group {
    background: var(--card-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.admin-settings-group h4 {
    margin: 0 0 1rem 0;
    color: var(--text-light);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.setting-toggle {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--light);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.setting-toggle:last-child {
    margin-bottom: 0;
}

.setting-toggle:hover {
    background: var(--primary-light);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 1rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--success);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    flex: 1;
}

.toggle-title {
    display: block;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.toggle-description {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
}

.toggle-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: var(--light);
    color: var(--gray);
}

input:checked ~ .toggle-status {
    background: var(--success);
    color: white;
}

/* Секции админки */
.admin-section {
    background: var(--card-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.admin-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Стили для новой админ-панели */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.admin-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.admin-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.tab-pane {
    display: none;
    padding: 1rem 0;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.input-with-button {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input-with-button input,
.input-with-button select {
    flex: 1;
    min-width: 0;
}


.all-topics-list {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.topics-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.topic-chip {
    background: var(--light);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    word-break: break-word;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    /* background: var(--card-dark); */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center; 
    border-color: var(--primary);
    background: var(--primary-light); 
    transform: translateY(-2px); 
    filter: drop-shadow(0 0 2rem rgba(255, 255, 255, 0));
}

.action-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light); 
    transform: translateY(-2px); 
    filter: drop-shadow(0 0 2rem rgb(255, 0, 0));
}

.action-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.action-text {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
}

.moderation-queue {
    /* max-height: 300px; */
    max-height: 100%;
    overflow-y: auto;
}

.moderation-item {
    background: var(--light);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
}

.moderation-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.detailed-stats {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.detail-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-stat:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    color: var(--text-light);
    font-weight: 500;
}

.detail-value {
    color: var(--primary);
    font-weight: 600;
}

.admin-auth-section {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: var(--text-light);
}

/* Адаптивность */
@media (max-width: 768px) {
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        min-width: auto;
        text-align: left;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        color: var(--text-light);
    }
    
    .input-with-button {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-icon {
    font-size: 1.2rem; 
    margin-left: -0.5rem;
}
}


/* Добавьте в styles_black.css */

/* Контейнер для боковых логотипов */
.partners-sidebar {
    position: fixed;
    top: 0;
    width: calc((100vw - 1400px) / 2);
    height: 100vh;
    z-index: 5;
    pointer-events: none;
    display: none;
    overflow: hidden;
}

.partners-sidebar-left {
    left: 0;
}

.partners-sidebar-right {
    right: 0;
}

/* Показываем только на больших экранах */
@media (min-width: 1400px) {
    .partners-sidebar {
        display: block;
    }
}

/* Бегущий ряд логотипов */
.partners-vertical-track {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
    animation: slideVertical 40s linear infinite;
    width: 100%;
    /* Убираем задержку для второй колонки */
}

.partners-sidebar-right .partners-vertical-track {
    animation-direction: reverse;
}

/* .partners-vertical-track:hover {
    animation-play-state: paused;
} */

.partner-sidebar-logo {
    width: 80%;
    max-width: 120px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(0.3);
    pointer-events: all;
}

.partner-sidebar-logo:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: grayscale(0);
}

/* Фиксированная скорость анимации независимо от высоты */
@keyframes slideVertical {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh); /* Только на высоту экрана */
    }
}

/* Задержки для разных колонок */
/* .partners-vertical-track:nth-child(2) {
    animation-delay: -15s; /* Смещение на половину времени */
/*} */

/* Затемнение краев */
.partners-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 100%);
    z-index: 2;
}

.partners-sidebar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%);
    z-index: 2;
}

/* Адаптивность */
@media (min-width: 1920px) {
    .partners-sidebar {
        width: calc((100vw - 1600px) / 2);
    }
    
    .partner-sidebar-logo {
        max-width: 140px;
        height: 70px;
    }
}

/* Эффект параллакса при скролле */
.app-container {
    position: relative; 
}
 
/* Затемнение при открытой админ-панели */
.admin-overlay.show ~ .partners-sidebar {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* Оптимизация анимации */
.partners-vertical-track {
    will-change: transform; /* Подсказка браузеру для оптимизации */
    backface-visibility: hidden; /* Убирает мерцание */
    perspective: 1000px;
}

.partner-sidebar-logo {
    transform: translateZ(0); /* Аппаратное ускорение */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Адаптация скорости для разных экранов */
@media (max-height: 600px) {
    .partners-vertical-track {
        animation-duration: 30s; /* Быстрее для маленьких экранов */
        gap: 2rem;
    }
}

@media (min-height: 1200px) {
    .partners-vertical-track {
        animation-duration: 50s; /* Медленнее для больших экранов */
        gap: 4rem;
    }
}