/* ==================== ИНСТРУКЦИИ ==================== */
.guides-page {
    padding: 100px 0 80px;
    min-height: 60vh;
}

.guides-header {
    text-align: center;
    margin-bottom: 48px;
}

.guides-header h1 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.guides-header p {
    color: #888;
    margin-bottom: 28px;
    font-size: 15px;
}

.guides-search {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 8px 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.guides-search:focus-within {
    background: #fff;
    border-color: #f5c518;
    box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.1);
}

.guides-search svg {
    color: #999;
    flex-shrink: 0;
}

.guides-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 15px;
    font-family: 'Exo 2', sans-serif;
    color: #000;
    outline: none;
}

.guides-search input::placeholder {
    color: #bbb;
}

/* Список — НА ВСЮ ШИРИНУ */
.guides-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.guide-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
}

.guide-item:hover {
    border-color: #f5c518;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.guide-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
}

.guide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-info {
    width: 100%;
}

.guide-category {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0 16px;
    color: #000;
}

.guide-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 1;
    justify-content: center;
    max-width: 140px;
}

.guide-btn-view {
    background: #000;
    color: #fff;
    border: none;
}

.guide-btn-view:hover {
    background: #333;
}

.guide-btn-download {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
}

.guide-btn-download:hover {
    border-color: #f5c518;
    background: #fff9e6;
}

/* Пусто */
.guides-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    display: none;
    grid-column: 1 / -1;
}

.guides-empty p {
    margin-top: 16px;
    font-size: 15px;
}

/* Адаптив */
@media (max-width: 1024px) {
    .guides-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .guides-page {
        padding: 90px 0 60px;
    }
    
    .guides-header h1 {
        font-size: 24px;
    }
    
    .guides-list {
        grid-template-columns: 1fr;
    }
}