/* Стили для страницы меток */
.ctp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fef9f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.ctp-header {
    text-align: center;
    margin-bottom: 40px;
}

.ctp-header h1 {
    color: #8B4513;
    font-size: 2rem;
    margin-bottom: 10px;
}

.ctp-header p {
    color: #666;
    font-size: 1rem;
}

.ctp-sorting {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.ctp-sorting span {
    font-weight: 600;
    color: #333;
}

.ctp-sort-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #e8ddd0;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    font-size: 14px;
}

.ctp-sort-btn:hover,
.ctp-sort-btn.active {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
}

.ctp-search {
    text-align: center;
    margin-bottom: 40px;
}

.ctp-search input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #e8ddd0;
    border-radius: 50px;
    background: white;
    font-size: 16px;
    transition: all 0.2s;
}

.ctp-search input:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139,69,19,0.1);
}

.ctp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.ctp-card {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.2s;
    border: 1px solid #e8ddd0;
}

.ctp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: #8B4513;
}

.ctp-card-letter {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fef5e8 0%, #fae6d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    font-weight: bold;
    color: #8B4513;
    transition: transform 0.2s;
}

.ctp-card:hover .ctp-card-letter {
    transform: scale(1.05);
}

.ctp-card h3 {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.ctp-card a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.ctp-card a:hover {
    color: #8B4513;
}

.ctp-card-count {
    font-size: 13px;
    color: #8B4513;
    background: #fef5e8;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 8px;
}

/* Стили для подписки */
.ctp-subscribe-form {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e8ddd0;
}

.ctp-subscribe-email {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e8ddd0;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.ctp-subscribe-email:focus {
    outline: none;
    border-color: #8B4513;
}

.ctp-subscribe-btn {
    width: 100%;
    padding: 8px 12px;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.ctp-subscribe-btn:hover {
    background: #654321;
}

.ctp-pagination {
    text-align: center;
    margin-top: 30px;
}

.ctp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 5px;
    background: white;
    border: 1px solid #e8ddd0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.ctp-pagination .page-numbers:hover,
.ctp-pagination .page-numbers.current {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
}

.ctp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #666;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .ctp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ctp-container {
        padding: 30px 15px;
    }
    
    .ctp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .ctp-card-letter {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .ctp-card h3 {
        font-size: 16px;
    }
    
    .ctp-sorting {
        gap: 8px;
    }
    
    .ctp-sort-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ctp-grid {
        grid-template-columns: 1fr;
    }
    
    .ctp-header h1 {
        font-size: 1.5rem;
    }
}