@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');





.page-header{
    font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-style: normal;
}


.home-nyt {
    /* font-family: "Charter", "Georgia", "Times New Roman", serif; */
    font-family: 'GretaTextPro', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
}

/* Заголовок страницы */
.home-nyt .page-header {
    background-color: var(--bg-header);
    border-bottom: 3px solid var(--border-accent);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.home-nyt .page-header h1 {
    font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-style: normal;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.1;
    text-align: center;
}

.home-nyt .page-header .subtitle {
    font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-style: normal;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

/* Поисковая форма */
.home-nyt .search-section {
    background-color: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.home-nyt .search-container {
    max-width: 600px;
    margin: 0 auto;
}

.home-nyt .search-form {
    display: flex;
    gap: 0;
    align-items: stretch;
    max-width: 600px;
    margin: 0 auto;
    background-color: #f8f8f8;
    /* border: 2px solid #e0e0e0; */
    /* border-radius: 8px; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: none;
}

.home-nyt .search-input {
    flex: 1;
    border: 2px solid #0d0d0d;
    border-radius: 0;
    padding: 1rem 1.5rem;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1.1rem;
    color: #1a1a1a;
    background-color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.home-nyt .search-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #1a1a1a;
}

.home-nyt .search-button {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.home-nyt .search-button:hover {
    background-color: #000;
    transform: translateY(-1px);
}

/* Фильтры */
.home-nyt .filters-section {
    padding: 2rem 0;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.home-nyt .filter-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.home-nyt .filter-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.home-nyt .filter-header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 1rem 1.5rem;
    font-family: "Cheltenham", "Georgia", serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #e0e0e0;
}

.home-nyt .filter-select {
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 0.8rem 1rem;
    font-family: "Charter", "Georgia", serif;
    font-size: 0.95rem;
    color: #1a1a1a;
    background-color: #fff;
    width: 100%;
    transition: border-color 0.3s ease;
}

.home-nyt .filter-select:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* Результаты поиска */
.home-nyt .results-section {
    padding: 2rem 0;
}

.home-nyt .results-header {
    background-color: #f8f8f8;
    padding: 1.5rem 2rem;
    border-left: 3px solid #1a1a1a;
    margin-bottom: 2rem;
}

.home-nyt .results-title {
    font-family: "Cheltenham", "Georgia", serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-nyt .results-count {
    font-family: "Charter", "Georgia", serif;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Карточки слов */
.home-nyt .word-card {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.home-nyt .word-card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: #1a1a1a;
    border: 3px solid #000000;
}

.home-nyt .word-card-header {
    background-color: #f8f8f8;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.home-nyt .word-title {
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-nyt .word-title:hover {
    color: #000;
    text-decoration: none;
}

.home-nyt .word-card-body {
    padding: 1.5rem;
}

.home-nyt .word-meaning {
    font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: normal;
    font-size: 1rem;
    line-height: 1.6;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

/* TinyMCE контент в карточках */
.home-nyt .word-meaning.tinymce-content {
    font-size: 0.95rem;
    line-height: 1.5;
}

.home-nyt .word-meaning.tinymce-content p {
    margin-bottom: 0.5rem;
}

.home-nyt .word-meaning.tinymce-content p:last-child {
    margin-bottom: 0;
}

.home-nyt .word-meaning.tinymce-content strong,
.home-nyt .word-meaning.tinymce-content b {
    font-weight: 700;
    color: #1a1a1a;
}

.home-nyt .word-meaning.tinymce-content em,
.home-nyt .word-meaning.tinymce-content i {
    font-style: italic;
}

.home-nyt .word-meaning.tinymce-content ul,
.home-nyt .word-meaning.tinymce-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.home-nyt .word-meaning.tinymce-content li {
    margin-bottom: 0.25rem;
}

.home-nyt .word-meaning.tinymce-content h1,
.home-nyt .word-meaning.tinymce-content h2,
.home-nyt .word-meaning.tinymce-content h3,
.home-nyt .word-meaning.tinymce-content h4,
.home-nyt .word-meaning.tinymce-content h5,
.home-nyt .word-meaning.tinymce-content h6 {
    font-family: "Cheltenham", "Georgia", serif;
    font-weight: 700;
    margin: 0.5rem 0 0.25rem 0;
    color: #1a1a1a;
}

.home-nyt .word-meaning.tinymce-content h1 { font-size: 1.1rem; }
.home-nyt .word-meaning.tinymce-content h2 { font-size: 1rem; }
.home-nyt .word-meaning.tinymce-content h3 { font-size: 0.95rem; }
.home-nyt .word-meaning.tinymce-content h4 { font-size: 0.9rem; }
.home-nyt .word-meaning.tinymce-content h5 { font-size: 0.85rem; }
.home-nyt .word-meaning.tinymce-content h6 { font-size: 0.8rem; }

.home-nyt .word-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.home-nyt .language-badge {
    background-color: #1a1a1a;
    color: #fff;
    font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-style: normal; 
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0;
}

.home-nyt .category-badge {
    background-color: #f8f8f8;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0;
}

.home-nyt .difficulty-badge {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    font-family: "Cheltenham", "Georgia", serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0;
}

.home-nyt .word-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.home-nyt .word-date {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-nyt .detail-button {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-nyt .detail-button:hover {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Пагинация */
.home-nyt .pagination-section {
    padding: 2rem 0;
    text-align: center;
}

.home-nyt .pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-nyt .page-link {
    background-color: #fff;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    padding: 0.8rem 1.2rem;
    font-family: "Charter", "Georgia", serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    min-width: 2.5rem;
    text-align: center;
}

.home-nyt .page-link:hover {
    background-color: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    text-decoration: none;
}

.home-nyt .page-item.active .page-link {
    background-color: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Пустое состояние */
.home-nyt .empty-state {
    background-color: #f8f8f8;
    border: 2px dashed #e0e0e0;
    border-radius: 0;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.home-nyt .empty-icon {
    font-size: 3rem;
    color: #999;
    margin-bottom: 1rem;
}

.home-nyt .empty-title {
    font-family: "Cheltenham", "Georgia", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-nyt .empty-text {
    font-family: "Charter", "Georgia", serif;
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Индикатор загрузки */
.home-nyt .loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(26, 26, 26, 0.9);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 0;
    z-index: 9999;
    font-family: "Charter", "Georgia", serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Адаптивность */
@media (max-width: 768px) {
    .home-nyt .page-header h1 {
        font-size: 2rem;
    }
    
    .home-nyt .search-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .home-nyt .search-input,
    .home-nyt .search-button {
        width: 100%;
    }
    
    .home-nyt .word-card {
        margin-bottom: 1rem;
    }
    
    .home-nyt .word-title {
        font-size: 1.1rem;
    }
    
    .home-nyt .word-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .home-nyt .word-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .home-nyt .pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .home-nyt .page-link {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: 2rem;
    }
}

@media (max-width: 576px) {
    .home-nyt .page-header {
        padding: 1.5rem 0;
    }
    
    .home-nyt .page-header h1 {
        font-size: 1.8rem;
    }
    
    .home-nyt .search-section {
        padding: 1.5rem 0;
    }
    
    .home-nyt .filters-section {
        padding: 1.5rem 0;
    }
    
    .home-nyt .results-section {
        padding: 1.5rem 0;
    }
    
    .home-nyt .word-card-header {
        padding: 0.8rem 1rem;
    }
    
    .home-nyt .word-card-body {
        padding: 1rem;
    }
    
    .home-nyt .results-header {
        padding: 1rem 1.5rem;
    }
    
    .home-nyt .results-title {
        font-size: 1.2rem;
    }
}

/* Анимации */
.home-nyt .word-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardAppear 0.6s ease-out forwards;
}

.home-nyt .word-card:nth-child(1) { animation-delay: 0.1s; }
.home-nyt .word-card:nth-child(2) { animation-delay: 0.2s; }
.home-nyt .word-card:nth-child(3) { animation-delay: 0.3s; }
.home-nyt .word-card:nth-child(4) { animation-delay: 0.4s; }
.home-nyt .word-card:nth-child(5) { animation-delay: 0.5s; }
.home-nyt .word-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Сохранение существующих стилей меню */
.home-nyt .navbar {
    /* Оставляем существующие стили меню */
}

.home-nyt .navbar-brand,
.home-nyt .navbar-nav,
.home-nyt .nav-link {
    /* Сохраняем стили навигации */
} 


.detail-button{
    font-family: "Roboto", sans-serif;
  font-weight: 100;
  font-style: normal;
}

/* Стили для алфавитного поиска */
.alphabet-container {
    margin-top: 0.5rem;
}

.alphabet-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.alphabet-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border-primary);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

.alphabet-letter:hover {
    background-color: #1a1a1a;
    color: var(--bg-primary);
    border-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.alphabet-letter.active {
    background-color: #1a1a1a;
    color: var(--bg-primary);
    border-color: #1a1a1a;
    font-weight: 600;
}

.alphabet-letter.active:hover {
    background-color: var(--accent-secondary, #0056b3);
    border-color: var(--accent-secondary, #0056b3);
}

.alphabet-actions {
    text-align: center;
}

.alphabet-actions .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

/* Адаптивность для алфавитного поиска */
@media (max-width: 768px) {
    .alphabet-letters {
        gap: 0.2rem;
    }
    
    .alphabet-letter {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .alphabet-letters {
        gap: 0.15rem;
    }
    
    .alphabet-letter {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
}

/* Стили для фильтров с алфавитом */
.filters-section .filter-card {
    margin-bottom: 1rem;
}

.filters-section .filter-card .card-body {
    padding: 1rem;
}

.filters-section .filter-header {
    background-color: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-primary);
    border-radius: 0.375rem 0.375rem 0 0;
}

.filters-section .filter-header h6 {
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    color: var(--text-primary);
}

.filters-section .filter-header i {
    margin-right: 0.5rem;
    color: #1a1a1a;
}

/* Анимация для алфавитных букв */
.alphabet-letter {
    animation: fadeInUp 0.3s ease forwards;
}

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

/* Задержка анимации для каждой буквы */
.alphabet-letter:nth-child(1) { animation-delay: 0.05s; }
.alphabet-letter:nth-child(2) { animation-delay: 0.1s; }
.alphabet-letter:nth-child(3) { animation-delay: 0.15s; }
.alphabet-letter:nth-child(4) { animation-delay: 0.2s; }
.alphabet-letter:nth-child(5) { animation-delay: 0.25s; }
.alphabet-letter:nth-child(6) { animation-delay: 0.3s; }
.alphabet-letter:nth-child(7) { animation-delay: 0.35s; }
.alphabet-letter:nth-child(8) { animation-delay: 0.4s; }
.alphabet-letter:nth-child(9) { animation-delay: 0.45s; }
.alphabet-letter:nth-child(10) { animation-delay: 0.5s; }
.alphabet-letter:nth-child(11) { animation-delay: 0.55s; }
.alphabet-letter:nth-child(12) { animation-delay: 0.6s; }
.alphabet-letter:nth-child(13) { animation-delay: 0.65s; }
.alphabet-letter:nth-child(14) { animation-delay: 0.7s; }
.alphabet-letter:nth-child(15) { animation-delay: 0.75s; }
.alphabet-letter:nth-child(16) { animation-delay: 0.8s; }
.alphabet-letter:nth-child(17) { animation-delay: 0.85s; }
.alphabet-letter:nth-child(18) { animation-delay: 0.9s; }
.alphabet-letter:nth-child(19) { animation-delay: 0.95s; }
.alphabet-letter:nth-child(20) { animation-delay: 1s; }
.alphabet-letter:nth-child(21) { animation-delay: 1.05s; }
.alphabet-letter:nth-child(22) { animation-delay: 1.1s; }
.alphabet-letter:nth-child(23) { animation-delay: 1.15s; }
.alphabet-letter:nth-child(24) { animation-delay: 1.2s; }
.alphabet-letter:nth-child(25) { animation-delay: 1.25s; }
.alphabet-letter:nth-child(26) { animation-delay: 1.3s; }
.alphabet-letter:nth-child(27) { animation-delay: 1.35s; }
.alphabet-letter:nth-child(28) { animation-delay: 1.4s; }
.alphabet-letter:nth-child(29) { animation-delay: 1.45s; }
.alphabet-letter:nth-child(30) { animation-delay: 1.5s; }
.alphabet-letter:nth-child(31) { animation-delay: 1.55s; }
.alphabet-letter:nth-child(32) { animation-delay: 1.6s; }
.alphabet-letter:nth-child(33) { animation-delay: 1.65s; }
.alphabet-letter:nth-child(34) { animation-delay: 1.7s; }
.alphabet-letter:nth-child(35) { animation-delay: 1.75s; }
.alphabet-letter:nth-child(36) { animation-delay: 1.8s; }
.alphabet-letter:nth-child(37) { animation-delay: 1.85s; }
.alphabet-letter:nth-child(38) { animation-delay: 1.9s; }
.alphabet-letter:nth-child(39) { animation-delay: 1.95s; }
.alphabet-letter:nth-child(40) { animation-delay: 2s; }